@tailwindcss/postcss
4.3.4 · 2 Nov 2026MIT59.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @tailwindcss/postcss From 4.0.0 to 4.3.4
46 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 62
- new
- 424
- fixes
Before you upgrade
Tick each one off as you go- deprecated4.2.0
- deprecated4.1.0
- deprecated4.1.0
Release by release
- new
Add
@tailwindcss/turbopack, a Turbopack loader for using Tailwind CSS with Next.js - fixed
Ensure watch mode detects changes to symlinked
@sourcefiles whose real paths aren't otherwise scanned - fixed
Ensure variants using
@scopewrap generated utilities instead of nesting inside them - fixed
Ensure nested
@scoperules preserve their scoping semantics when flattened
- new
- fixed
Support
--watch --poll[=ms]in@tailwindcss/cliwhen filesystem events are unreliable or unavailable - fixed
Canonicalization: Match arbitrary hex colors against theme colors case-insensitively (e.g.
bg-[#fff]andbg-[#FFF]→bg-white) - fixed
Prevent Preflight from overriding Firefox's native
iframe:focus-visibleoutline styles - fixed
Ensure
theme('colors.foo')in JS plugins resolves correctly when both--color-fooand--color-foo-barexist
- fixed
- fixed
Support bare spacing values for
auto-rows-*andauto-cols-*utilities (e.g.auto-rows-12andauto-cols-16) - fixed
Prevent
@tailwindcss/cliin--watchmode from crashing on Windows when@sourcepoints to a directory that doesn't exist - fixed
Prevent
@tailwindcss/vitefrom crashing in Deno v2.8.x whencontext.parentURLis not a valid URL - fixed
Ensure
@tailwindcss/cliin--watchmode rebuilds when the input CSS file changes in an ignored directory
- fixed
- new
Add
--silentoption to suppress output in@tailwindcss/cli - fixed
Remove deprecation warnings by using
Module#registerHooksinstead ofModule#registeron Node 26+ - fixed
Canonicalization: Don't crash when plugin utilities throw for unsupported values
- fixed
Allow
@applyto be used with CSS mixins
- new
- fixed
Ensure imports in
@importand@pluginstill resolve correctly when using Vite aliases in@tailwindcss/vite
- fixed
- new
Add
.envand.env.*to default ignored content files - fixed
Canonicalization: Improve canonicalizations for
tracking-*utilities by preferring non-negative utilities (e.g.-tracking-tighter→tracking-wider) - fixed
Fix crash due to invalid characters in candidate (exceeding valid unicode code point range)
- fixed
Ensure query params in imports are considered unique resources when using
@tailwindcss/webpack
- new
- new
Support Vite 8 in
@tailwindcss/vite - fixed
Don't crash when candidates contain prototype properties like
row-constructor - fixed
Canonicalize
calc(var(--spacing)*…)expressions into--spacing(…) - fixed
Fix crash in canonicalization step when handling utilities containing
@propertyat-rules (e.g.shadow-sm border) - fixed
Skip full reload for server only modules scanned by client CSS when using
@tailwindcss/vite - fixed
Improve canonicalization for bare values exceeding default spacing scale suggestions (e.g.
w-1234 h-1234→size-1234) - fixed
Fix canonicalization resulting in empty list (e.g.
w-5 h-5 size-5→''instead ofsize-5)
- new
11 other lines we could not sort, mostly version bumps
- 4.3.1
Generate
0instead ofcalc(var(--spacing) * 0)for spacing utilities likem-0andleft-0 - 4.3.1
Generate
var(--spacing)instead ofcalc(var(--spacing) * 1)for spacing utilities likem-1andleft-1 - 4.1.15
Remove the
postinstallscript from oxide - 4.1.13
Drop warning from browser build
- 4.1.13
Drop exact duplicate declarations when emitting CSS
- 4.1.0
Ignore
node_modulesby default (can be overridden by@source …rules) - 4.1.0
@sourcerules that include file extensions or point insidenode_modules/folders no longer consider your.gitignorerules - 4.0.15
The
--theme(…)function now returns CSS variables from your theme variables unless used inside positions where CSS variables are invalid (e.g. inside@mediaqueries) - 4.0.10
Removed
max-w-autoandmax-h-autoutilities as they generate invalid CSS - 4.0.10
Replaced the existing candidate extractor with a brand new extractor to improve maintainability, correctness, and performance
1 internal line (docs, tests, tooling) left out.