Skip to content

Unexpected behavior when using additional screens for theme: #16495

Answered by wongjn
TomFreudenberg asked this question in Help
Discussion options

You must be logged in to vote

The max-* and min-* variants no longer work when you have "complex" screen configuration, see the Restrictions section in #9558 for details.

As a workaround, you could convert the complex screen variants to custom variants with addVariant() in a Tailwind plugin:

addVariant('ws', '@media (min-aspect-ratio: 3/2) and (max-height: 399px)');

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by TomFreudenberg
Comment options

You must be logged in to vote
2 replies
@wongjn
Comment options

wongjn Feb 13, 2025
Collaborator

@TomFreudenberg
Comment options

Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #16491 on February 13, 2025 10:40.