What problem does it solve?
Simplifies installing, migrating, and configuring Tailwind CSS v4 by consolidating the CSS-first @theme workflow, build tool integration, plugin migration, and troubleshooting into a single, practical reference.
Core Features & Use Cases
- CSS-first configuration: Move configuration from JavaScript files into an @theme block in your stylesheet for easier theming and runtime variables.
- Migration guidance: Clear steps for converting tailwind.config.js and v3 conventions to v4, including utility and variant changes.
- Build tool integration: Setup examples for Vite, PostCSS, and the standalone CLI, plus framework-specific guidance for Next.js, React, Vue, and SvelteKit.
- Custom theming & utilities: Define design tokens, custom utilities, variants, and plugin registration using @theme, @utility, and @plugin directives.
- Performance & compatibility: Recommendations for Lightning CSS integration, automatic content detection, and modern color space usage (oklch).
Quick Start
Add @import "tailwindcss" to your main stylesheet and create an @theme block with your tokens, then enable the appropriate Vite or PostCSS plugin to build Tailwind v4.