Using tailwind colors in javascript #18141
Answered
by
wongjn
dirkcremers
asked this question in
Help
-
Hey there, This might be a dumb question, but I haven’t been able to figure it out.
Now with the new Tailwind v4, I’m wondering how this should be done. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
May 24, 2025
Replies: 1 comment 4 replies
-
How would you use If you would go on to reference a value in other theme values, you can use native CSS @theme {
--color-foo: var(--color-red-500);
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could do: