v4.3.1
📦 tailwind-cssView on GitHub →
✨ 1 features🐛 22 fixes🔧 22 symbols
Summary
This release introduces a new --silent option for the CLI and fixes numerous bugs related to canonicalization, plugin utilities, CSS features like @apply and @variant, and build tool integrations like Vite and Webpack/Rspack.
✨ New Features
- Added --silent option to suppress output in @tailwindcss/cli.
🐛 Bug Fixes
- Removed deprecation warnings by using Module#registerHooks instead of Module#register on Node 26+.
- Canonicalization no longer crashes when plugin utilities throw for unsupported values.
- Allowed @apply to be used with CSS mixins.
- Ensured not-* correctly negates @container queries, including style(…) queries.
- Ensured drop-shadow-* color utilities work with custom shadow values containing calc(…).
- Fixed 'Sourcemap is likely to be incorrect' warnings when using @tailwindcss/vite.
- Ensured @tailwindcss/webpack can be installed in Rspack projects without requiring webpack as a peer dependency.
- Canonicalization avoids suggesting invalid calc(…) expressions (e.g. px-[calc(1rem+0px)] → px-[calc(1rem+0)]).
- Canonicalization avoids suggesting large spacing-scale values for arbitrary lengths (e.g. left-[99999px] → left-[99999px], not left-24999.75).
- Ensured @tailwindcss/cli in --watch mode recovers when a tracked dependency is deleted and restored.
- Ensured standalone @tailwindcss/cli binaries are ignored when scanning for class candidates.
- Ensured class candidates are extracted from Twig addClass(…) and removeClass(…) calls.
- Prevented crashes in the Ruby or Vue preprocessors when scanning files containing invalid UTF-8 bytes.
- Allowed @variant to be used inside addBase.
- Ensured @source globs with symlinks are preserved.
- Ensured later @source rules can re-include files excluded by earlier @source not rules.
- Upgrade process no longer migrates empty class rules to invalid @utility rules.
- Ensured transitions between inset-shadow-none and other inset shadows work correctly.
- Ensured explicitly referenced @source directories are scanned even when ignored by git.
- Ensured @source globs ending in **/* preserve dynamic path segments to avoid scanning too many files.
- Canonicalization no longer folds calc(…) divisions when the result would require high precision (e.g. w-[calc(100%/3.5)] → w-[calc(100%/3.5)], not w-[28.571428571428573%]).
- Served ESM type declarations to ESM importers of @tailwindcss/postcss.