Tailwind v4 desktop-first breakpoint basically broken??? #18914
Replies: 1 comment
-
Fixed issue, added pull request: #18917 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
So all of our TW3 code uses webflow-like breakpoints, e.g. desktop fist, then you add tablet tweaks, then you add mobile tweaks. (Honestly, much easier to design this way, IMO). In TW3, this was awesome. You just add:
to your theme, and all is good!
But in TW4--no such luck. It's all min, not max (e.g. mobile first only)
This seems like such a crazy flaw in the basic design of TW4. I spend hours today trying to find a workaround.
The summary is,
TW3 (old way):
TW4 (new way):
Has anyone figured out a workaround? I know I can use the weird
@max-md:flex-col
syntax, but this breaks everything and is super ugly.Like I want to write this kind of thing--not rocket science. Use a
flex-row
, unless it's a phone, in which case use aflex-col
Any help would be greatly appreciated! (Sadly, I think it's a design flaw in TW4...)
Beta Was this translation helpful? Give feedback.
All reactions