add color decorator to css variable
<img alt="color decorator" src="https://raw.githubusercontent.com/meouwu-dev/css-var-color-decorator/master/assets/feature-color-decorator.gif" width="640" />
convert hex to hsl
<img alt="hex2Hsl" src="https://raw.githubusercontent.com/meouwu-dev/css-var-color-decorator/master/assets/feature-hex2hsl.gif" width="640" />
When using tailwindcss css variables, we must exclude the color space function or opacity modifiers won't work (ref). However, this makes it difficult to see what color a variable is set to.
This extension adds color decorators to those variables, so you can see and edit them easily.
Convert hex to hsl with command color.hex2Hsl
cssVarColorDecorator.supportedLanguages
Use this setting to add support for other languages. Default value is ["css", "scss", "tailwindcss"]
Example:
"cssVarColorDecorator.supportedLanguages": ["css", "scss", "tailwindcss", "html"]
[ ] add support for other color formats
TODO
Initial release
added color decorator to css variables
added command color.hex2Hsl
Enjoy!