[v4] Separate prefixes for utilities and theme variables #15093
andrew-pledge-io
started this conversation in
Ideas
Replies: 1 comment
-
Hello, Thanks for considering this suggestion! |
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.
-
Hi, v4 looks great, very excited for some of the changes. In particular, it's great to see built in support for CSS variables.
Apologies if this is already possible (it didn't seem so based on the prefix section in the beta article), but it would be great to be able to declare a separate prefix for the utilities and the generated CSS variables.
Today we use the tailwindcss-variables plugin and we have configured a prefix in that plugin that prefixes the generated CSS variables.
We use a prefix on the CSS variables to:
:root
)However we don't use a prefix on the Tailwind utility classes as these reasons don't apply there and we prefer the less verbose syntax.
It would be great to make this configuration possible in v4 since I think it might be commonly desired, but also if others are using a similar setup it would help ease the migration.
Beta Was this translation helpful? Give feedback.
All reactions