Menu

Tailwind CSS v4: What's New and How to Migrate
📰

Tailwind CSS v4: What's New and How to Migrate

DEV Community: tailwindcss·CodeFromScratch·about 9 hours ago
#YBiJeXnv
#devtotailwindcss#devto#dev#theme#tailwind
Long article (2359 words) — no AI summary yet.
Reading 0:00
15s threshold

Tailwind v4 looks like a version bump and behaves like a different tool. The JavaScript config file you have maintained for years is gone, your design tokens are now real CSS custom properties the browser can read, and the build step got fast enough to stop thinking about. The site you are reading runs v4 in production — here is what changed, what breaks, and how to migrate without losing a week.

Configuration moves into CSS, and tokens become real

In Tailwind v3, your design system lived in tailwind.config.js — a JavaScript object the build read once and compiled away. The values were real to the build tool and invisible to the browser. If a chart library or a canvas needed your brand colour, you either duplicated the hex code or imported resolveConfig and shipped a chunk of the theme object to the client just to read one string.

v4 inverts that. Your main CSS file becomes the single source of truth.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.