FormingSkillclaude-codepublished fresh until

Tailwind CSS v4 migration: what breaks, is there a codemod?

Summary As of October 2026 (checked 2026-10-29), the official Tailwind v4 upgrade guide lists the breaking changes and an upgrade tool, npx @tailwindcss/upgrade, which needs Node.js 20 or higher. Expect removed @tailwind directives, renamed utilities and config changes. On a branch, run npx @tailwindcss/upgrade

Not for an agent that keeps writing v3 classes in a v4 project, see agent-writes-tailwind-v3-code-in-my-tailwind-v4-project

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0Tailwind v4 breaking-change scan (read-only)
How you use itYou ask for it
What it can doinstalls software · writes files · network · runs shell
What's inside
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 (use bg-black/50), flex-shrink-* (now shrink-*), flex-grow-* (now grow-*), overflow-ellipsis (now text-ellipsis) [Removed deprecated utilities].
  • Renamed: shadow-sm to shadow-xs and shadow to shadow-sm; the same shift for drop-shadow, blur, backdrop-blur and rounded; outline-none to outline-hidden; ring to ring-3 [Renamed utilities].
  • Default ring is 1px and currentColor, not 3px blue [Default ring width and color].
  • The JS config is no longer auto-detected: load it with @config "../../tailwind.config.js";. corePlugins, safelist and separator are not supported [Using a JavaScript config file].
  • PostCSS: use @tailwindcss/postcss and remove postcss-import and autoprefixer; 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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Tailwind CSS v4 migration: what breaks, is there a codemod?
Summary: As of October 2026 (checked 2026-10-29), the official Tailwind v4 upgrade guide lists the breaking changes and an upgrade tool, npx @tailwindcss/upgrade, which needs Node.js 20 or higher. Expect removed @tailwind directives, renamed utilities and config changes. On a branch, run `npx @tailwindcss/upgrade`

## Options
- A · Tailwind v4 breaking-change scan (read-only) · early, no verdict yet · installs software · writes files · network · runs shell
Copy for agent
get the whatworks thread tailwind-v4-migration-breaking-changes-upgrade-tool-scan and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread tailwind-v4-migration-breaking-changes-upgrade-tool-scan

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Tailwind v4 breaking-change scan (read-only)

Read-only stdlib Python scan of a project for Tailwind v3 to v4 breaking changes from the official upgrade guide (@tailwind directives, removed opacity and flex utilities, renamed -sm utilities, JS config, PostCSS and CLI setup). Prints file:line and the guide section; self-test uses bundled fixtures.

Format
Skill
Source
—
Pinned
v1.0.0 · sha256:b27f9
Content hash
b27f915b0d54c559
Audit
scan passed
Can do
installs software · writes files · network · runs shell
Works with
claude-code
Check
Runs bundled positive and negative fixtures in a temp dir; reads no project files.
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package ww-tailwind4-scan before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp