Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Optional class for piecemeal migration from other frameworks #11

Closed
chasegiunta opened this issue Nov 19, 2020 · 3 comments
Closed

Comments

@chasegiunta
Copy link
Contributor

Upon trying to migrate an app/site over to Tailwind, we may want to utilize tailwindcss-forms (since it seems like the path forward), but this is currently an all-or-nothing approach. The Bootstrap app I'm currently migrating is so vast that I'm not sure about everywhere that form fields are even being used.

I'm wondering if it's possible to configure something to use similar to tailwind-custom-forms where we can opt into a class required on form elements where we want tailwindcss-forms to take over.

@ulken
Copy link

ulken commented Dec 8, 2020

I would prefer a (parent) selector strategy similar to how !important works. That way resets/custom styles would only be applied to descendants of the selector.

@daniel-zahariev
Copy link

I think the best approach here would be to add the styles as utility classes instead of adding them to base.

@adamwathan
Copy link
Member

Added a new class strategy in v0.3.0 that should handle this, thanks to @chasegiunta 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants