Custom breakpoints using raw in Tailwind v4? #16768
-
Hi, since updating to Tailwind 4, my 'raw' breakpoint is not working properly.
Is this not possible now using the new Tailwind approach? i.e. with CSS variables:
I've tried the above with no luck, even tried '--breakpoint-limited-height'. If it's used in an @apply block, it silently breaks the whole block it's in and doesn't generate the rest of the CSS.
Simply using limitedHeight above, makes the whole @apply fail silently on builds. Not a major one but it would be ideal to retain this breakpoint, it was a really useful one when building some tricky bits of UI. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The equivalent in v4 is registering the media query via @custom-variant limitedHeight (@media (max-height: 800px) and (min-width: 1024px)); |
Beta Was this translation helpful? Give feedback.
The equivalent in v4 is registering the media query via
@custom-variant
like: