Arbitrary values #218
shaunforage
started this conversation in
General
Replies: 2 comments 2 replies
-
Sadly not really possible :( Tailwind’s JIT engine doesn’t support dynamic strings. Exploring some documentation-based approaches to work around this though |
Beta Was this translation helpful? Give feedback.
1 reply
-
It could work if you add the classes to the https://tailwindcss.com/docs/content-configuration#safelisting-classes For the convenience dynamic values offers, I would go through the burden to manually whitelist the needed values. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Love the work on cva so far.
Just wondering if there is a way to use arbitrary values with variants. Basically I want a variant with some set options while allowing a rem value also. I am imagining a syntax where you can use the value within the classname.
Beta Was this translation helpful? Give feedback.
All reactions