Skip to content

Why not working {min-,max-,}w-screen-{breakpoint} following the pattern of {min-,max-,}w-{container_breakpoint} #18709

Answered by rozsazoltan
rozsazoltan asked this question in Help
Discussion options

You must be logged in to vote
  • - Reintroduce `max-w-screen-*` utilities that read from the `--breakpoint` namespace as deprecated utilities ([#15013](https://github.com/tailwindlabs/tailwindcss/pull/15013))
  • #15013

Bring back max-w-screen-* utilities

Since these utilities are only added back for compatibility reasons, it's put into the compatibility layer.

Also, lets not forget that we can access the variables directly anyway, e.g., max-w-(--breakpoint-lg) or w-(--breakpoint-lg), because in reality, that's all that's happening behind the scenes with max-w-screen-lg as well.

For containers
<div class="w-lg bg-sky-400">...</div>
<div class="w-32 min-w-lg…

Replies: 1 comment 2 replies

Comment options

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

@rozsazoltan
Comment options

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