Skip to content

Version 4.0.4 - Breaks desktop first support #16340

Answered by austinwilcox
austinwilcox asked this question in Help
Discussion options

You must be logged in to vote

@wongjn I was able to get it working now thanks to the tailwind play you supplied. Thank you! The issue came with this part of our tailwind config:

screens: {
  "2xl": { max: "1536px" },
  xl: { max: "1280px" },
  lg: { max: "1024px" },
  md: { max: "900px" },
  sm: { max: "600px" },
}

As soon as I changed it to this:

screens: {
  "2xl": "1536px",
  xl: "1280px" ,
  lg: "1024px",
  md: "900px",
  sm: "600px",
}

and then ran a script that updated all *: to max-*: I got it working.

Should it be added in the documentation/upgrade that support for max within the screens option is no longer supported?

Here is the bash script I ran to mass update the directives in case anyone else runs into the…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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 austinwilcox
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 #16316 on February 07, 2025 10:35.