Support merging prefixed classnames with non prefixed classnames #543
Answered
by
dcastil
sirajtahra
asked this question in
Ideas
-
Hi! It's a quite common use case when building a component library with tailwind v4 to add a prefix to the classnames so it works without any conflicts with the consuming project. Let's say you're building a button component with a prefix
Currently, only a single prefix is supported which doesn't work nicely with non prefixed classNames. |
Beta Was this translation helpful? Give feedback.
Answered by
dcastil
Mar 9, 2025
Replies: 1 comment 1 reply
-
Hey @sirajtahra! Here is the new approach to use with the new Tailwind CSS v4 syntax: #537 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sirajtahra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @sirajtahra!
Here is the new approach to use with the new Tailwind CSS v4 syntax: #537 (comment)