tailwind-css-v4

Configure Tailwind CSS v4 projects using CSS-first @theme syntax.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/brp00005/site2 --skill tailwind-css-v4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-css-v4
Source: https://github.com/brp00005/site2/tree/main/.cursor/skills/tailwind-css-v4
Command: npx skills add https://github.com/brp00005/site2 --skill tailwind-css-v4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tailwind CSS v4 introduces a complete rewrite and CSS-first configuration; this skill provides an LLm-guided reference and migration insights to write, configure, and migrate Tailwind-based projects.

Core Features & Use Cases

  • Centralized reference for installation, configuration with @theme, migration pitfalls, and practical usage in Vite, PostCSS, Webpack, and CLI workflows.
  • Guidance on migrating from v3, applying dark mode, gradients, and responsive design using v4 features.
  • Real-world scenarios and best practices for building and maintaining design systems with Tailwind.

Quick Start

Run a quick setup guide to configure Tailwind v4 in a Vite project and build a minimal CSS file using @theme-based configurations.

Frequently Asked Questions about tailwind-css-v4

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

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

Tailwind CSS v4 migration requires adopting the CSS-first @theme configuration and updating build workflows across Vite, PostCSS, Webpack, or CLI to resolve common migration pitfalls and replace v3 config files.

How does CSS-first configuration with @theme work in Tailwind v4?

CSS-first configuration with @theme in Tailwind v4 allows you to define design tokens directly in CSS instead of JavaScript, enabling native theme extension and streamlined utility generation within your stylesheet.

What's the best way to install Tailwind CSS v4 in a Vite project?

Installing Tailwind CSS v4 in a Vite project requires configuring the Vite plugin and building a minimal CSS file using @theme-based configurations, providing a quick setup guide for centralized reference.

Does Tailwind CSS v4 support dark mode and responsive design out of the box?

Tailwind CSS v4 supports dark mode and responsive design through its updated utility patterns and CSS-first configuration, allowing you to apply these features directly within your @theme-defined design system.

Can I use Tailwind v4 with PostCSS and Webpack workflows?

Tailwind v4 works with PostCSS and Webpack workflows, providing practical usage patterns and installation guidance for integrating the CSS-first @theme configuration into these existing build setups.

Why are my Tailwind v4 styles not working after upgrading?

Tailwind v4 styles may not work after upgrading due to the complete rewrite and shift to CSS-first configuration, requiring you to migrate v3 settings into @theme and resolve build setup pitfalls.