Replies: 1 comment 1 reply
-
For what it's worth, one can do this already using a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
Tailwind has been an excellent tool, in my (and hopefully others) journey into building mobile-first and responsive mobile apps. Because of the view breakpoints like
sm:*
andmd:*
, we are comfortable writing styles that start being responsive first on mobile.But countless times, I've had to write styles that'll apply only to mobile and not on the higher breakpoints.
For example,
In this scenario, I've had to reset the
gap-x
back to 0 onmd:*
breakpoints. This only increases the number of classes introduced, something that we don't need.Proposal
The introduction of a negative breakpoint, something that functions like
@media screen and (max-width: xxx)
. Off the top of my head, something like:In this example, the
gap-x-4
only applies to the breakpoint ofsm
and below.Beta Was this translation helpful? Give feedback.
All reactions