migrating-from-v3

Migrate Tailwind CSS v3 projects to v4 by converting JS config to CSS.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/djankies/claude-configs --skill migrating-from-v3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-from-v3
Source: https://github.com/djankies/claude-configs/tree/main/tailwind-4/skills/migrating-from-v3
Command: npx skills add https://github.com/djankies/claude-configs --skill migrating-from-v3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Migrate from Tailwind CSS v3 to v4, covering config migration, utility renames, and color system changes.

Core Features & Use Cases

  • Automated migration tool: @tailwind upgrades and config migration.
  • Utility renaming guidance: adapt to v4 syntax.
  • Use Case: upgrade a large Tailwind project with minimal downtime.

Quick Start

Run the official upgrade tool and follow migration steps in the guide.

Frequently Asked Questions about migrating-from-v3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a Tailwind CSS v3 project to v4?

Migrate Tailwind v3 to v4 by running the official upgrade tool (npx @tailwindcss/upgrade@next), converting your tailwind.config.js to CSS using @theme, updating utility syntax, and adjusting color systems and build configurations. Work on a separate branch, review all changes, and test thoroughly before merging.

What changes does Tailwind v4 require to my configuration?

Tailwind v4 moves configuration from JavaScript to CSS. Replace tailwind.config.js with CSS @theme declarations, update content detection behavior, migrate plugin configurations, and adjust preflight settings. The upgrade tool automates most conversions.

Does the Tailwind upgrade tool handle all v3 to v4 changes automatically?

The official @tailwindcss/upgrade tool automates config migration and most utility renames, but you should review generated changes, test your project thoroughly, and manually adjust color system changes, opacity modifications, and build-tool configurations (PostCSS, Vite, CLI) as needed.

What utilities were renamed or changed in Tailwind v4?

Tailwind v4 renamed and restructured utilities including opacity syntax and color values. The upgrade guide covers specific renames and provides migration mappings to update your class names and configuration values during the transition.

Can I upgrade a large Tailwind project without downtime?

Yes. Use a separate git branch for the upgrade, apply changes incrementally, run the official upgrade tool to automate bulk conversions, thoroughly test all components, and merge only after validation. This approach minimizes production risk.