Change8

v4.0.5

Breaking Changes
📦 tailwind-cssView on GitHub →
1 breaking1 features🐛 1 fixes🔧 2 symbols

Summary

This release optimizes CSS output by excluding unused theme variables by default and introduces a 'static' option for the @theme directive to override this behavior.

⚠️ Breaking Changes

  • Theme variables that are not used in the compiled CSS are now excluded by default to reduce file size.

Migration Steps

  1. If your project relies on theme variables being present in the CSS for external scripts or runtime manipulation, add the 'static' keyword to your @theme block: @theme static { ... }

✨ New Features

  • Added @theme static option to force the inclusion of all theme variables in the compiled CSS regardless of usage.

🐛 Bug Fixes

  • Removed an accidental console.log statement from the @tailwindcss/vite package.

🔧 Affected Symbols

@theme@tailwindcss/vite