endigma / unocss-preset-radix

A preset for UnoCSS to let you use Radix color palette
https://endigma.github.io/unocss-preset-radix/
MIT License
31 stars 6 forks source link

black / white as 0 value #22

Open silveltman opened 8 months ago

silveltman commented 8 months ago

I really like the addition of hue-fg. I would also like a 0 (zero) value, which would be the same for all palettes; white is light mode, black in dark mode.

endigma commented 8 months ago

This is a pretty trivial PR if you want to add it yourself, I'd accept it

silveltman commented 7 months ago

Sorry for the late response. I tried it, but I can't quiet grasp your code unfortunately

endigma commented 7 months ago

You are gonna want to add it to genCSS for adding the variable to the light/dark selectors and either generateColors or just manually adding the entry into the theme.colors bit of index.ts.

The codebase is a bit of a mess, I plan to clean it up soon.

silveltman commented 6 months ago

Kindly let me know when you do, I can take another try then