Change8

v4.0.8

📦 tailwind-cssView on GitHub →
1 features🐛 7 fixes🔧 5 symbols

Summary

This release improves Vite integration by refining source scanning and .gitignore handling, while also optimizing CSS output by excluding unused theme variables.

✨ New Features

  • Allow @import with theme(…) options for stylesheets that contain more than just @theme rules

🐛 Bug Fixes

  • Prevent !important from being added to CSS variable declarations when using the important modifier
  • Vite: Ignore files and directories specified in .gitignore during automatic source detection
  • Vite: Decouple candidate detection from the module graph to support multiple Vite builds
  • Vite: Ensure Astro production builds include classes used in client-only components
  • Vite: Scan raw file contents for utility classes before transforms to avoid escaping issues
  • Ensure utilities defining only CSS variables are sorted by declaration count
  • Fix duplicate translate-z-px utilities in compiled CSS

🔧 Affected Symbols

@import@themetheme()translate-z-pxvite-plugin