In this guide
A simple overview of Tailwind CSS v4: What's New and How to Migrate. Learn what it means, when it helps, and what to check first.
Tailwind v4 is a ground-up rewrite. Builds are dramatically faster, configuration moves into CSS, and theme values become real CSS variables you can use anywhere. Here is what changes.
CSS-First Configuration
The big shift: configure your theme in CSS with @theme instead of a JavaScript config file.
@import "tailwindcss";
@theme {
--color-brand: #84cc16;
--font-display: "Inter", sans-serif;
--spacing-128: 32rem;
}Every token becomes a CSS variable, so you can reference var(--color-brand) in custom CSS without duplicating values.
Faster Builds, Zero Config Content Detection
- The new Oxide engine compiles full builds up to 5x faster and incremental builds in microseconds.
- Automatic content detection — no more
content: []globs in most projects. - Native cascade layers (
@layer) andcolor-mix()for opacity instead of generated utilities.
Upgrading
npx @tailwindcss/upgrade@latestBreaking Changes to Watch
Some default scales shifted and a few utilities were renamed. Run the codemod, then visually diff key pages — spacing and shadows are the usual surprises.
Relevant Scaleup Infotech Services
Keep Reading
Next.js Server Actions: Mutations Without Writing API Routes
A simple overview of Next.js Server Actions: Mutations Without Writing API Routes. Learn what it means, when it helps, and what to check first.
2 min readReact 19 is Here: use(), Actions, and the Hooks You Need to Know
A simple overview of React 19 is Here: use(), Actions, and the Hooks You Need to Know. Learn what it means, when it helps, and what to check first.
1 min readPartial Prerendering in Next.js: Static Speed With Dynamic Content
A simple overview of Partial Prerendering in Next.js: Static Speed With Dynamic Content. Learn what it means, when it helps, and what to check first.
1 min read