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

Any plans to include alpha palette? #8

Closed prodkt closed 1 year ago

prodkt commented 1 year ago

Keep running into the issue of there not being alpha values included in this package. Is there any chance this is on your radar with plans to implement? If not, all good but would be very helpful to know so we can pivot. Thanks

endigma commented 1 year ago

There's actually a PR open for it, but it got caught up on some sort of typescript thing. See #5.

r0nsha commented 1 year ago

@endigma Hey, I needed alpha colors and overlay colors in my UI so I implemented it in my own fork. I don't know if this is what you want to happen, but I made it so alpha colors are added automatically according to your palette, and that blackA and whiteA are added to :root by default.

Here are the generated overlay colors: image

And here's a small section of the generated alpha sections in my app: image

I'll also open a PR, let me know what you think :)

prodkt commented 1 year ago

Appreciate ya @endigma on the implementation!