tailwind-v4-shadcn

Migrate React projects to Tailwind v4 and shadcn/ui theming with CSS variables.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tailwind v4 + shadcn/ui theming with CSS variables provides a scalable, maintainable approach to color tokens and automatic dark mode across React apps while avoiding legacy v3 migration pitfalls.

Core Features & Use Cases

  • Four-step architecture: root CSS variables, theme inline mappings, unwrapped base styles, and automatic dark mode.
  • Semantic color tokens that switch with dark mode, simplifying maintenance and reducing hardcoded color classes.
  • Works with standard React + shadcn/ui components and helps prevent common migration issues like missing configs or deprecated patterns.

Quick Start

Create a new React project and apply the four-step Tailwind v4 + shadcn/ui theming pattern to enable automatic dark mode.

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 theming with shadcn/ui using CSS variables?

Tailwind v4 theming with shadcn/ui is set up using a four-step architecture: defining root CSS variables, mapping them via @theme inline, applying unwrapped base styles, and configuring automatic dark mode. This eliminates tailwind.config.ts usage.

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

Automatic dark mode in Tailwind v4 and shadcn/ui works by using semantic color tokens mapped through @theme inline. These tokens switch automatically based on CSS variables, simplifying maintenance and reducing hardcoded color classes in React components.

Do I need to remove tailwind.config.ts when migrating to Tailwind v4 with shadcn/ui?

Yes, you must remove tailwind.config.ts when migrating to Tailwind v4 with shadcn/ui. The four-step architecture enforces CSS variables and @theme inline mappings instead, preventing common migration issues and deprecated v3 patterns.

What is the best way to migrate shadcn/ui themes to Tailwind v4 without breaking colors?

The best way to migrate shadcn/ui themes to Tailwind v4 is implementing the four-step architecture: root CSS variables, @theme inline mappings, unwrapped base styles, and automatic dark mode. This approach avoids legacy v3 pitfalls and maintains semantic color tokens.

Can I use Tailwind v4 semantic color tokens with standard React shadcn/ui components?

Yes, Tailwind v4 semantic color tokens work with standard React shadcn/ui components. The four-step theming architecture ensures compatibility with shadcn/ui patterns while enabling automatic dark mode and eliminating hardcoded color classes.

Why are my Tailwind v4 shadcn/ui colors not switching in dark mode?

Tailwind v4 shadcn/ui colors may not switch in dark mode if you are using legacy v3 configurations or missing @theme inline mappings. The four-step architecture enforces semantic color tokens and root CSS variables to ensure automatic dark mode switching.