tailwindcss
4.3.5 · 6 Nov 2026MIT191M / weekRepositoryHomepagenpmAtom feed
Upgrading tailwindcss From 2.2.3 to 4.3.5
134 releases in betweenevery note read
- 13
- changes to make
- 0
- advisories fixed
- 188
- new
- 770
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking3.3.2
- Breaking3.0.9
- Breaking2.2.5
- Breaking4.0.0-alpha.32
- Breaking4.0.0-alpha.32
- Breaking4.0.0-alpha.32
- Breaking4.0.0-beta.9
- Deprecated4.2.0
- Deprecated4.1.0
- Deprecated4.1.0
Security
- 3.4.15
Bump versions for security vulnerabilities
Release by release
- Fixed
Canonicalization: Improve performance in projects with many functional variant values (e.g. a
matchVariantplugin with thousands of values) - Fixed
- Fixed
Ensure
@tailwindcss/oxide-wasm32-wasiloads instead of hanging forever (e.g. withNAPI_RS_FORCE_WASI=erroror in WebContainers) - Fixed
Remove
as: '*.css'from the@tailwindcss/turbopacksetup in its README, because it breaks CSS modules - Fixed
Ignore
<!--and-->between top-level rules in CSS instead of throwing or swallowing the next rule (e.g.a { color: red } --> b { color: blue }) - Fixed
Ensure
@tailwindcss/oxide-wasm32-wasidetects changed and new source files after the first scan (e.g. in WebContainers) - Fixed
Prevent type errors with
skipLibCheck: falsecaused by imports of unshipped modules in the@tailwindcss/nodetype declarations
- Fixed
- 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
54 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
2 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.