Use Tailwind's inbuilt colors in CSS Variables? #3574
Unanswered
maybebansky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use Tailwind's inbuilt colors with Shad UI. If I don't use CSS variables I can do this in the tailwind config:
However I do need to use CSS variables. Is there any way of using Tailwind colors in the CSS file?
At the moment I'm manually converting the Tailwind colors to HSL. In the tailwind config:
In the CSS file:
But this isnt idea. If I want to bump a color value up or down (eg use teal 400 or 600) then I need to repeat the manual process of converting the Tailwind color and pasting it into the CSS file.
Beta Was this translation helpful? Give feedback.
All reactions