Skip to content

Custom breakpoints using raw in Tailwind v4? #16768

Answered by wongjn
rhysmatthew asked this question in Help
Discussion options

You must be logged in to vote

The equivalent in v4 is registering the media query via @custom-variant like:

@custom-variant limitedHeight (@media (max-height: 800px) and (min-width: 1024px));

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rhysmatthew
Comment options

Answer selected by rhysmatthew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants