You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone the NextJS repo at https://github.com/zoomoid/tailwindcss-4-experiments and run the project in missing-screen-widths. Observe that the first <div> using max-w-md works as intended, whereas the second <div> using max-w-screen-md (which worked fine in < 4.0.0) has no utility for its max-width.
Describe your issue
max-w-screen-* utilities for using the breakpoints as max-widths are currently not included in the set of widths in packages/tailwindcss/theme.css. Afaik those aren't noted as being deprecated.
You can add them via the @theme directive by adding
What version of Tailwind CSS are you using?
v4.0.0-alpha.9
What build tool (or framework if it abstracts the build tool) are you using?
@tailwindcss/postcss 4.0.0-alpha.9, Next.js 14.1.3
What version of Node.js are you using?
v20.11.0
What browser are you using?
Chrome, Firefox, Safari
What operating system are you using?
macOS
Reproduction URL
Clone the NextJS repo at https://github.com/zoomoid/tailwindcss-4-experiments and run the project in
missing-screen-widths
. Observe that the first<div>
usingmax-w-md
works as intended, whereas the second<div>
usingmax-w-screen-md
(which worked fine in < 4.0.0) has no utility for its max-width.Describe your issue
max-w-screen-*
utilities for using the breakpoints as max-widths are currently not included in the set of widths inpackages/tailwindcss/theme.css
. Afaik those aren't noted as being deprecated.You can add them via the
@theme
directive by addingor for any additional breakpoints created by yourself following the same schema. Afterwards,
max-w-screen-*
will work as expected again.The text was updated successfully, but these errors were encountered: