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
Disable CSS Grid using grid: false
#1451
Comments
This would be a very drastic departure from how Tailwind is currently configured because there is no Even the config presented above doesn't fully disable grid, since the If we really wanted to provide a short-hand for this sort of thing we'd probably need a whole new section of the config for it like a I think trying to simplify this is unfortunately way more trouble than it's worth, so no plans to work on this any time soon sorry. |
At least can be this in docs? I had to figure out reading too much |
It is in the docs, there's a "Disabling" section at the bottom of every utility page: https://tailwindcss.com/docs/grid-template-rows/#disabling Out of curiousity what is your use case for disabling the grid utilities? Is it just because you need to support older browsers and don't want to use the classes by accident or something else? |
Yes, in each page. I had to figured out related to grid pages. At least one is not documented (currently in mobile, but in referenced issue I commented about)
I want to use only flex for my grid system. And wanted to reduce the resulting bundle by removing unused features, but keep in the config file in case I have to turn on back. |
This issue is in reference to this comment:
#1274 (comment)
@nelson6e65 wanted to disable CSS Grid from being output into the CSS file.
This is the config he had to implement to accomplish this:
That is a lot of config just to completly disable CSS Grid.
Ideally you should be able to add this to your config file and that would disable all CSS Grid specific CSS from being output:
The text was updated successfully, but these errors were encountered: