Change8

v4.1.7

Breaking Changes
📦 tailwind-cssView on GitHub →
1 breaking2 features🐛 9 fixes🔧 8 symbols

Summary

This release focuses on improving the upgrade migration path, including better performance via caching and kebab-case normalization for named values, alongside several CSS extraction and CLI bug fixes.

⚠️ Breaking Changes

  • Upgrade migration now changes the casing of utilities with named values to kebab-case to align with updated theme variables.

Migration Steps

  1. Run the upgrade tool to migrate bare values to named values.
  2. Verify kebab-case utility names if using named values in theme variables.

✨ New Features

  • Upgrade: Migrate bare values to named values.
  • Upgrade: Added cache to improve template migration performance.

🐛 Bug Fixes

  • Allow '_' before numbers during candidate extraction.
  • Prevent duplicate suggestions when using @theme and @utility together.
  • Ensure media queries within ::before and ::after pseudo selectors create valid CSS rules in production.
  • Ensure standalone CLI cleans up temporary files.
  • Ensure -rotate-* utilities properly negate arbitrary values.
  • Ignore custom variants using :merge(…) selectors in legacy JS plugins.
  • Ensure classes containing '.' are properly extracted from Clojure files.
  • Upgrade: Fix error when using @import … source(…).
  • Upgrade: Don't migrate strings matching utility names in Vue attribute bindings other than 'class'.

🔧 Affected Symbols

@theme@utility@importsource():merge()-rotate-*::before::after