Quick and simple HSL color highlighter for tailwind configs.
Supported HSL format: xxx yy% zz%
styles.css
@layer base {
:root {
/* colors here will be highlighted */
--color-primary: 234 40% 18%;
--color-secondary: 422 40% 18%;
}
}
tailwind.config.js
theme: {
colors: {
primary: "hsl(var(--color-primary) / <alpha-value>)",
secondary: "hsl(var(--color-secondary) / <alpha-value>)",
}
}
I will not publish this extension, so to use you need to follow the steps bellow:
vsce
command to buildnpm install -g @vscode/vsce
vsce package