Skip to content
Discussion options

You must be logged in to vote

max-w-(--breakpoint-lg) is not a workaround, it's intended

--breakpoint-* are theme variables emitted to :root, and max-w-(--some-var) is the documented syntax for pulling a theme variable into a utility (no built-in max-w-breakpoint-* class in v4)

The @theme snippet from wongjn works

also the docs recommend @theme inline when a theme variable references another variable, and bare max-w-screen already exists in v4 meaning max-width: 100vw

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by foxtrotcz
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
4 participants