v4.0.0-alpha.26
Pre-release
Pre-release
Added
- Add support for prefixes (#14501)
- Expose timing information in debug mode (#14553)
- Add support for
blocklistin JS config files (#14556) - Add
color-schemeutilities (#14567) - Add support for
importantoption in JS config files (#14448) - Upgrade (experimental): Convert
@import "tailwindcss/tailwind.css"to@import "tailwindcss"in CSS files (#14514) - Upgrade (experimental): Apply all utility upgrades to
@applyin CSS files (#14574) - Upgrade (experimental): Update variant order in template files (#14524)
- Upgrade (experimental): Convert
bg-gradient-*utilities tobg-linear-*in template files (#14537) - Upgrade (experimental): Convert legacy prefixes to variant prefixes in template files (#14557)
- Upgrade (experimental): Convert bare CSS variables in arbitrary values to
var(…)in template files (#14526) - Upgrade (experimental): Convert legacy important modifier syntax to trailing syntax (#14502)
Fixed
- Use the right import base path when using the CLI to reading files from stdin (#14522)
- Ensure that
@utilityis top-level and cannot be nested (#14525) - Only setup a single compiler in
@tailwindcss/postcssfor initial builds (#14565) - Ensure editing imported CSS files triggers a rebuild (#14561)
- Ensure
@applyand CSS functions work inside imported stylesheets (#14576) - Upgrade (experimental): Don't wrap custom CSS after utilities in a layer (#14512)
- Upgrade (experimental): Don't add empty
layer()to@importat-rules when the styles do not need to be imported into a layer (#14513) - Upgrade (experimental): Don't wrap comment nodes in
@layerwhen running codemods (#14517) - Upgrade (experimental): Fix scenario where selectors can be lost in multi-selector rules (#14518)
- Upgrade (experimental): Ensure custom CSS before
@tailwindrules is wrapped with@layer basewhen prepending@import "tailwindcss"to the top of the file (#14536)
Changed
- Disallow bare values with decimal places (#14562)