v4.1.18
π¦ tailwind-cssView on GitHub β
β¨ 5 featuresπ 11 fixesπ§ 9 symbols
Summary
This release focuses on bug fixes and stability improvements for the CLI, Vite plugin, and JS configuration compatibility. Key updates include better CSS error reporting, source map fixes in watch mode, and improved canonicalization of utility classes.
β¨ New Features
- Support environment API in @tailwindcss/vite
- Include filename and line numbers in CSS parse errors
- Preserve case of theme keys from JS configs and plugins
- Handle future and experimental config keys during upgrade
- Canonicalization: combine text-* and leading-* classes
π Bug Fixes
- Ensure validation of source(β¦) happens relative to the file it is in
- Skip comments in Ruby files when checking for class names
- Skip over arbitrary property utilities with a top-level ! in the value
- Write source maps correctly on the CLI when using --watch
- Handle special defaults (like ringColor.DEFAULT) in JS configs
- Improve backwards compatibility for content theme key from JS configs
- Try to canonicalize any arbitrary utility to a bare value
- Validate candidates similarly to Oxide
- Correctly handle duplicate CLI arguments
- Donβt emit color-mix fallback rules inside @keyframes
- CLI: Don't hang when output is /dev/stdout
π§ Affected Symbols
source()@tailwindcss/viteringColor.DEFAULTcontenttext-*leading-*@keyframesfutureexperimental