Replies: 6 comments 15 replies
-
Hey! You can completely customize how the media queries work in Tailwind CSS: https://tailwindcss.com/docs/screens The default is indeed to have "mobile-first", https://tailwindcss.com/docs/screens#max-width-breakpoints You can't add a And here's the demo: https://play.tailwindcss.com/Jrnrq0Ob7I?file=config Notice that for these breakpoints to override each other correctly, I have the widest breakpoint on top, and the narrowest at the bottom. This will ensure that Note: This is my personal opinion, but I don't suggest mixing But, effectively, the way I create additional custom breakpoints in this Tailwind Play linked above gives you the exact functionality you where suggesting, where you can prefix your breakpoints with a Have a read through the entire "Screens" page of the documentation – you can do some pretty cool stuff with these! |
Beta Was this translation helpful? Give feedback.
-
I definitely see the point in this idea. I would support the idea of making this a standard feature in tailwind to decrease the configuration effort. Are there any features interfering with the concept of generate |
Beta Was this translation helpful? Give feedback.
-
Thanks for the idea of |
Beta Was this translation helpful? Give feedback.
-
I would love to have these options included in the official Tailwind as well. It's nice that we can customize it while it isn't official though. |
Beta Was this translation helpful? Give feedback.
-
I know this is an old thread but is there a good reason not to use: |
Beta Was this translation helpful? Give feedback.
-
I need this for setting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, as far as I know, we can only make media requests that apply the following class if the screen size is larger than the given size.
I had the idea to add the opposite, by preceding the option with a negative sign:
-md:justify-between
Solved
The feature now exist
https://tailwindcss.com/blog/tailwindcss-v3-2#max-width-and-dynamic-breakpoints
Beta Was this translation helpful? Give feedback.
All reactions