endigma / unocss-preset-radix

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

Extend does not default to true #11

Closed steakscience closed 1 year ago

steakscience commented 1 year ago

Hi,

The docs say extend defaults to true. In the code, it defaults to false:

https://github.com/endigma/unocss-preset-radix/blob/b9d809f9737883f9c93df364a1f2c87d04dbe873/src/index.ts#L32-L36

steakscience commented 1 year ago

However, it looks like if you extend (ie extend = true), radix colors will not work

UnoCSS will try to be too clever and text-gray8 will use the default preset's gray-800 instead of radix's gray8

endigma commented 1 year ago

I don't know of a way to get rid of the conflicting colors, the use case for this was another user who wanted their own theme to be preserved I think. If this is important to you I can look back into modifying the object more surgically.

steakscience commented 1 year ago

Personally, I ended up manually adding radix colors into my own theme to avoid this issue.

Not sure either what the best solution is. I can close this issue.