[V4] breakpoint CSS using (width <= ... ) or max-width #15653
-
In v3 we could do something like this to get max breakpoints. tailwind.config = {
theme: {
extend: {
screens: {
'xl-': { max: "1535px" },
'lg-': { max: "1279px" },
'md-': { max: "1023px" },
'sm-': { max: "767px" },
'xs-': { max: "639px" },
}
}
}
} In v4 how do you define
Do we perhaps need a Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
In v4 we've removed support for making breakpoints max-width by default to keep things simple, and instead encourage people to use the |
Beta Was this translation helpful? Give feedback.
-
return please opportunity to use desktop first breakpoints |
Beta Was this translation helpful? Give feedback.
In v4 we've removed support for making breakpoints max-width by default to keep things simple, and instead encourage people to use the
max-*
variants, likemax-sm:hidden
.