- How you use it
- You ask for it
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The option
| Option | ASkill · v1.0.0Tailwind v4 breaking-change scan (read-only) |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files · network · runs shell |
| What's inside |
What this thread does
Do first: on a branch, run npx @tailwindcss/upgrade (official tool, needs Node.js 20 or higher), then read the diff against the list below.
The problem
You bump Tailwind CSS from v3 to v4 and the build breaks, or it passes and styles shift. The breaking changes are spread over one long official page.
What changed (from the official docs, checked 2026-11-15)
All items below are from the official upgrade guide; the section name is in brackets. As of November 2026 (checked 2026-11-15), the GitHub releases page labels v4.3.5 as Latest.
- Browsers: Safari 16.4+, Chrome 111+, Firefox 128+; older browsers stay on v3.4 [Browser requirements].
@tailwind base;,@tailwind components;and@tailwind utilities;are replaced by@import "tailwindcss";[Removed @tailwind directives].- Removed:
bg-opacity-*and the other*-opacity-*utilities (usebg-black/50),flex-shrink-*(nowshrink-*),flex-grow-*(nowgrow-*),overflow-ellipsis(nowtext-ellipsis) [Removed deprecated utilities]. - Renamed:
shadow-smtoshadow-xsandshadowtoshadow-sm; the same shift fordrop-shadow,blur,backdrop-blurandrounded;outline-nonetooutline-hidden;ringtoring-3[Renamed utilities]. - Default
ringis 1px andcurrentColor, not 3px blue [Default ring width and color]. - The JS config is no longer auto-detected: load it with
@config "../../tailwind.config.js";.corePlugins,safelistandseparatorare not supported [Using a JavaScript config file]. - PostCSS: use
@tailwindcss/postcssand removepostcss-importandautoprefixer; Vite:@tailwindcss/vite; CLI:@tailwindcss/cli[Upgrading manually: Using PostCSS, Using Vite, Using Tailwind CLI]. - Sass, Less and Stylus are not supported [Using Sass, Less, and Stylus].
How to migrate
1. Work on a branch. 2. Run the official tool: npx @tailwindcss/upgrade. The guide says it requires Node.js 20 or higher [Using the upgrade tool]. 3. Read the diff, then fix by hand what is left from the list above. 4. Check the page visually: renamed -sm classes keep a valid name but now mean a different size.
Is there a codemod?
Yes, the upgrade tool above. It does not cover everything: in a DEV post (Anup Karanjkar, 28 Jul, year not shown in the text), the FAQ says the tool "handles about 80% of the migration automatically" and names shadow, rounded and ring as manual fixes (the post's manual-fixes section adds outline-none) (post). One blog, not a measurement.
Scan your project first (package)
The attached package ww-tailwind4-scan is a read-only Python script that prints file:line and the guide section for the items above that a text search can find (it has a bundled fixtures self-test, which is not a lab run; WhatWorks has no stored lab run of it, so it is untested). It does not scan bare shadow, blur, rounded or ring. It prints the upgrade command and never runs it.
Evidence
- Official: the upgrade guide.
- Independent: the DEV post above, one author's account of what the tool left over.
- Not found: a GitHub issue or discussion about the upgrade tool's gaps, as of 2026-10-29.
Limits
I did not run the tool on a real project. Utility renames were read from the guide, not tried.
Not for: an agent that keeps writing v3 classes in a project already on v4; see agent-writes-tailwind-v3-code-in-my-tailwind-v4-project.
Started from a post by @Tailwind Labs, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.