Replies: 1 comment 1 reply
-
Hey! Yeah this is how things already work in v4 by default, take a look at the "Generated CSS" pane in this demo: https://play.tailwindcss.com/M7TxWXpLnq ![]() You can also opt-out of this using the @theme inline reference {
--color-red-50: ...;
/* ... */
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For V4, the blog post mentions that it exposes the custom properties used for config as CSS variables. Does it already or could it use the custom properties that are defined, since they are output.
For example:
This would make arbitrary theming near trivial, as the properties could just be overloaded by another stylesheet.
I don't see this being super important for most websites, but it would be hugely useful for web apps. And its a very small change (if its not already how it works, I dont know how to check 😖)
Beta Was this translation helpful? Give feedback.
All reactions