v4.0.1
📦 tailwind-cssView on GitHub →
✨ 1 features🐛 16 fixes🔧 7 symbols
Summary
This release improves the 'open' variant with pseudo-class support and provides numerous bug fixes for utility generation, framework-specific scanning (Svelte/Angular), and configuration migration.
Migration Steps
- Run the upgrade tool to benefit from improved JavaScript config migration and leading-none utility mapping.
✨ New Features
- Include :open pseudo-class in the existing open variant for better native element support.
🐛 Bug Fixes
- Remove invalid min-w-none and min-h-none utilities.
- Discard CSS variable shorthand utilities that do not use valid CSS variables.
- Ensure font-size utilities with /none modifier (e.g., text-sm/none) correctly set line-height.
- Prevent generation of CSS for font-size utilities with unknown modifiers.
- Fix duplicate font weight utility suggestions and improve sorting of suggested classes.
- Enable container query variant suggestions.
- Disable bare value suggestions when the --spacing variable is not in use.
- Prevent scanning of .gitignore files outside of initialized repositories.
- Improve utility detection for Svelte/Angular class shorthands and functions inside arrays.
- Prevent @tailwindcss/browser from polluting the global namespace.
- Exclude tailwind-merge from being scanned when using the Vite plugin.
- Ensure CSS theme variables are accessible within shadow roots.
- Fix crash occurring when a project is located in the root (/) directory.
- Ensure custom variants maintain a non-empty selector list.
- Fix migration of JavaScript config files across different drives.
- Refine upgrade logic to migrate leading-[1] to leading-none and prevent incorrect arbitrary leading utility migrations.
🔧 Affected Symbols
openmin-w-nonemin-h-nonetext-sm/noneleading-none@tailwindcss/browservite-plugin