v4.1.13
📦 tailwind-css
✨ 3 features🐛 6 fixes⚡ 2 deprecations🔧 6 symbols
Summary
This release focuses on refining variant handling, improving CSS output efficiency, and migrating legacy theme keys to the new @custom-variant syntax. It also includes several bug fixes for transitions, completions, and folder indexing.
Migration Steps
- Update 'aria' theme keys to use '@custom-variant' syntax.
- Update 'data' theme keys to use '@custom-variant' syntax.
- Update 'supports' theme keys to use '@custom-variant' syntax.
✨ New Features
- Added suggestions for known 'matchVariant' values in completions.
- Added default ignore rule for '.vercel' folders (overridable via @source).
- Improved CSS output by dropping exact duplicate declarations.
🐛 Bug Fixes
- Prevented 'visibility' from transitioning when using the 'transition' utility.
- Discarded matched variants with unknown named values or non-string values.
- Hidden internal fields from completions in 'matchUtilities'.
- Invalidated variants starting with '@-' (e.g., @-2xl:flex).
- Disallowed custom variants starting or ending with '-' or '_'.
- Fixed 'sr-only' utility to use modern 'clip-path' instead of deprecated 'clip'.
🔧 Affected Symbols
matchVariantmatchUtilitiessr-onlytransition@custom-variant@source⚡ Deprecations
- The 'clip' property in 'sr-only' is replaced by 'clip-path'.
- Legacy 'aria', 'data', and 'supports' theme keys are being migrated to '@custom-variant'.