Replies: 2 comments 1 reply
-
Hey! What do you mean by “if Tailwind detects var(--colors-red-500)”, do you mean detecting it in the HTML? Not sure exactly what you’re asking for. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Incase someone stumbles on this thread... Just spotted this. https://twitter.com/argyleink/status/1447637157649141761 Combined with just adding something like all tailwind colours with a script into this would basically do what I was saying. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
But with the JIT compiler.
So if Tailwind detects
var(--colors-red-500)
it will create that var just like it would create the class if detected.Incase someone gets here wanting to be able to use vars, here is our current solution to expose the above var. And our use case is inline styles to set a border red based on a dynamic render time selector.
Beta Was this translation helpful? Give feedback.
All reactions