[v4] tailwindcss-forms plugin applies reset classes at incorrect layer #16247
Unanswered
chasegiunta
asked this question in
Help
Replies: 1 comment 4 replies
-
Hey! Yeah in v4 we don't separate between components specifically anymore that means that plugins like the You can do what you're trying to do here by also adding your custom classes into the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
v4.0.1
What build tool (or framework if it abstracts the build tool) are you using?
Vite / Vue
What version of Node.js are you using?
v20.18.2
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/5y73wPxEOR?file=css
Describe your issue
When using tailwindcss-forms
class
strategy (via@plugin
directive), the reset classes are being applied at theutilities
layer, rather than thebase
orcomponents
layer. This causes unreliability when trying to setup custom baseform-
classes, or override those styles on a case-by-case basis within markup. This didn't seem to be an issue on v3 (perhaps the reset classes were applied at thecomponents
layer?) so it might be considered a regression.Beta Was this translation helpful? Give feedback.
All reactions