tailwind-v4-shadcn

Configure Tailwind v4 theming with shadcn/ui in React + Vite projects.

1|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/wredzio/core2 --skill tailwind-v4-shadcn-wredzio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/wredzio/core2/tree/main/.claude/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/wredzio/core2 --skill tailwind-v4-shadcn-wredzio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers bootstrap a modern Tailwind v4 + shadcn/ui setup using a CSS-variable themed architecture. It eliminates complexity around configuring v4 theming, enables automatic dark mode, and unifies semantic color tokens across a React + Vite project.

Core Features & Use Cases

  • Four-step theming pattern: define CSS variables at root, map to Tailwind with @theme inline, apply base styles, and enable automatic dark mode.
  • Zero-tailwind-config workflow: relies on CSS-first config and a minimal components.json entry, removing the need for tailwind.config.ts.
  • Dark mode & semantic colors: includes ThemeProvider integration and semantic color classes that respond automatically to theme changes.
  • Migration-friendly: provides a clear pattern for upgrading from Tailwind v3 and reference guides for smoother adoption.

Quick Start

Follow these steps to bootstrap Tailwind v4 + shadcn/ui in a React + Vite project:

  1. Install dependencies: pnpm add tailwindcss @tailwindcss/vite
  2. Initialize shadcn/ui: pnpm dlx shadcn@latest init
  3. Delete legacy config if present: rm tailwind.config.ts
  4. Ensure components.json is configured with an empty tailwind config: { "tailwind": { "config": "" } }

Frequently Asked Questions about tailwind-v4-shadcn

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

FAQPage Schema
How do I configure Tailwind v4 theming with shadcn/ui in a React and Vite project?

To configure Tailwind v4 theming with shadcn/ui, define CSS variables at the root, map them using @theme inline, apply base styles, and integrate a ThemeProvider. This enables automatic dark mode and semantic color tokens without needing a tailwind.config.ts file.

What is the best way to set up automatic dark mode using Tailwind v4 and shadcn/ui?

The best way to set up automatic dark mode is by integrating a ThemeProvider and defining semantic color classes as CSS variables. This architecture responds automatically to theme changes without requiring complex JavaScript configurations.

Do I need a tailwind.config.ts file when using Tailwind v4 with shadcn/ui?

No, you do not need a tailwind.config.ts file. Tailwind v4 uses a CSS-first configuration workflow and a minimal components.json entry with an empty tailwind config, removing the need for legacy JavaScript configuration.

How do I migrate from Tailwind v3 to v4 theming for my shadcn/ui components?

To migrate from Tailwind v3 to v4, delete your legacy tailwind.config.ts file, install the @tailwindcss/vite plugin, and adopt the CSS-first theming pattern using @theme inline mappings and root CSS variables for your shadcn/ui components.

Can I use CSS variables for semantic color tokens in a zero-config Tailwind v4 workflow?

Yes, you can use CSS variables for semantic color tokens. The Tailwind v4 zero-config workflow relies on CSS-first rules where you define root variables and map them directly in your CSS using @theme inline.

Why are my shadcn/ui semantic colors not updating when switching to dark mode in Tailwind v4?

If semantic colors are not updating in dark mode, ensure your CSS variables are properly mapped using @theme inline and that a ThemeProvider is integrated to manage the root variable definitions and automatic theme switching.