v4.2.3
📦 tailwind-cssView on GitHub →
✨ 1 features🐛 6 fixes🔧 8 symbols
Summary
This release focuses heavily on improving CSS canonicalization for better optimization and fixing several bugs related to utility generation and the upgrade process. Performance for scanning JSONL/NDJSON files has also been improved.
Migration Steps
- When migrating from Tailwind CSS v3 to v4, the upgrade utility now correctly uses config.content.
- Arbitrary value syntax for negative margins/padding has been standardized: -left-[9rem] should now be written as left-[-9rem].
- Arbitrary value syntax for calc functions involving negative values has been standardized: ml-[calc(-1*var(--width))] should now be written as -ml-(--width).
✨ New Features
- Support for NODE_PATH environment variable in standalone CLI.
🐛 Bug Fixes
- Improved canonicalization for tracking utilities to prefer non-negative values (e.g., -tracking-tighter becomes tracking-wider).
- Fixed a crash caused by invalid characters (exceeding valid unicode code point range) in candidates.
- Ensured query parameters in imports are treated as unique resources when using @tailwindcss/webpack.
- Fixed placeholder utilities to read from --placeholder-color instead of --background-color.
- Prevented files from being emptied when the upgrade process is killed prematurely.
- Added .env and .env.* files to the default list of ignored content files during upgrade.