tailwind-v4-shadcn

Configure Tailwind v4 with shadcn/ui for React projects using Vite.

2|Updated Oct 12, 2025
One-click install
npx skills add https://github.com/haotool/app --skill tailwind-v4-shadcn-haotool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/haotool/app/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/haotool/app --skill tailwind-v4-shadcn-haotool

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the setup of Tailwind CSS v4 with shadcn/ui in React projects, eliminating boilerplate and ensuring consistent theming, dark mode, and production-ready patterns.

Core Features & Use Cases

  • CSS variable architecture: centralized color tokens with a robust mapping to Tailwind utilities.
  • Dark mode with ThemeProvider: seamless theme switching across light/dark modes without manual overrides.
  • Vite + Tailwind v4 integration: ready-to-use config and templates for rapid project bootstrap.
  • Guided migration patterns: best-practice steps for moving from v3 to v4 and avoiding common gotchas.

Quick Start

Install Tailwind v4 with shadcn/ui, configure Vite, and wrap your app with a ThemeProvider to enable dark mode and semantic theming.

Frequently Asked Questions about tailwind-v4-shadcn

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

FAQPage Schema
How do I set up Tailwind v4 with shadcn/ui in a Vite React project?

To set up Tailwind v4 with shadcn/ui in Vite, configure the Vite tooling, establish a CSS variable architecture, and wrap your React app with a ThemeProvider to enable semantic theming and dark mode.

What is the best way to migrate a React app from Tailwind v3 to v4 using shadcn/ui?

The best way to migrate from Tailwind v3 to v4 involves following guided migration patterns that enforce @theme inline mappings and CSS variable architecture to avoid common v4 gotchas and ensure production-ready theming.

How does dark mode work with shadcn/ui and Tailwind v4?

Dark mode with shadcn/ui and Tailwind v4 works by integrating a ThemeProvider that enables seamless theme switching across light and dark modes without requiring manual color overrides.

Does Tailwind v4 support semantic theming with shadcn/ui components?

Tailwind v4 supports semantic theming with shadcn/ui by using a centralized CSS variable architecture that maps color tokens directly to Tailwind utilities for consistent design across React components.

Why does my Tailwind v4 theme configuration break when adding shadcn/ui?

Tailwind v4 theme configurations often break with shadcn/ui due to missing @theme inline mappings or incorrect CSS variable architecture, which this setup resolves by enforcing production-ready patterns.

Can I use this Tailwind v4 shadcn/ui setup for new React projects?

You can use this setup for new React projects or migrating existing apps, providing ready-to-use Vite config and templates that ensure immediate dark mode and semantic theming capabilities.