unpreset / unocss-preset-theme

The dynamic theme presets for UnoCSS.
https://unocss-preset-theme.todev.cc
131 stars 11 forks source link

cannot use with hsl colors from v4 #10

Closed awwwdev closed 1 year ago

awwwdev commented 1 year ago

Thanks for the preset and freeing us from writing "dark:..." 😅 I used to use this with radix colors ("@radix-ui/colors") and those where defined in hsl. and since radix came with it's own opacity levels, I didn't need to use text-opacity, ... in version 4 and 5 it removes the hsl wrapper, concats the opcity var and put it inside a rgba() wrapper which won't work for hsl colors. I'm not sure hsl can be used in unocss itself or not but it would be nice there could be an option to use hsl colors with your preset.