-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[Feature Request] Enhance compatibility with other CSS utility frameworks such as Tailwind #12512
Comments
There are some other issues about this already: #7039, #8530 Individual utilities can be disabled by setting their value in the
I think only the grid classes are generated from here, we try to avoid using the rest of them. It would be possible to add a variable to disable everything except the grid. |
Marking this as a duplicate of #7039 and #8530 If you have any additional questions, please reach out to us in our Discord community. |
For vuetify 3.5.10 It's not perfect but may be useful for certain scenarios where there is a conflict.
Here I'm adding the 'v-' prefix but it could be something else.
} |
Problem to solve
Currently, CSS utility classes such as "d-flex", "pa-5", etc. are always included in Vuetify (as far as I know). This creates conflicts when combining with other utility frameworks such as Tailwind.
I believe the only way to support it right now is to prefix every Tailwind's classes so it doesn't overlap with Vuetify.
Proposed solution
For the new Vuetify 3 it would be nice if one of these things can be done:
utility: false
or anything like that). If Vuetify itself uses these classes internally then this wouldn't be possible.prefix: 'v-'
=>v-d-flex
). Combined with PurgeCSS this might lead to good-enough results (as long as not every class is used internally).The text was updated successfully, but these errors were encountered: