tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
83.27k stars 4.22k forks source link

Bring back `max-w-screen-*` utilities #15013

Closed philipp-spiess closed 5 days ago

philipp-spiess commented 6 days ago

This PR brings back the max-w-screen-* utilities from v3 that read from the --breakpoint namespace.

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

Note that this does not do Intellisense recommendations for the functional utility.

Test Plan

Unit tests are upgraded including some from the compat test that extends the --breakpoint namespace from screen keys. Also tested this in the Vite playground.