Allow setting any custom utility prefix and prefix separator #17100
Replies: 3 comments 1 reply
-
Hey! This is on purpose right now so we can apply some performance optimizations when extracting the class names from your template files. Going to migrate this to a feature idea discussion though so we can still keep track of this somewhere 👍 |
Beta Was this translation helpful? Give feedback.
-
Tailwind 3.x supports |
Beta Was this translation helpful? Give feedback.
-
The separator was needed for us when using Tailwind to generate HTML emails for Gmail. Gmail strips |
Beta Was this translation helpful? Give feedback.
-
What version of Tailwind CSS are you using?
v4.0.9
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.1.0
What version of Node.js are you using?
v20.16.0
What browser are you using?
N/A
What operating system are you using?
macOS
Reproduction URL
N/A
Describe your issue
Some CSS writing Frameworks recommend using
_
as a prefix for naming utility classes. For example, Rico Sta Cruz recommends using_className
for utilities in the RSCSS framework https://rstacruz.github.io/rscss/.Tailwind does not allow using
_
as a prefix, nor does it allow using an empty string''
as a separator instead of':'
.Expected:
_
as a prefix''
as a prefix separator instead of':'
Beta Was this translation helpful? Give feedback.
All reactions