-
Notifications
You must be signed in to change notification settings - Fork 226
Description
What version of @tailwindcss/forms are you using?
v0.5.7
Describe your issue
I read the discussion #22. The thread has been closed by adding class strategy.
Sorry to bring this up again
However, the class strategy is not easily overridable because it was placed later in the CSS file (at the components layer).
No matter the strategy used, tailwindcss-forms should always be a base, ready to be overridden by other stylings.
Why the need for overrides?
I can't talk for others, as you'll see some of them on the discussion links above, but for me, tailwindcss-forms adds colors that almost always need overriding because they stand out like sore thumbs.
What should we do?
Can we move CSS declarations of class strategy from components layer to base layer?
Basically, modify the code here:
tailwindcss-forms/src/index.js
Line 353 in c9d9da3
| addComponents(getStrategyRules('class')) |
from
addComponents to addBase.
Why do I, or other similar people, use tailwindcss-forms at all?
tailwindcss has its ecosystem, and some 3rd-party components expect tailwindcss-forms to be there as the base. We still want to work with tailwindcss-forms and the people creating those components, even if we are not a fan of the approaches.