tailwind-v4-shadcn

Configure Tailwind v4 with shadcn/ui for React projects using CSS-first theming.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/GitCoder052023/TailStack --skill tailwind-v4-shadcn-gitcoder052023
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/GitCoder052023/TailStack/tree/main/packages/core/.cursor/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/GitCoder052023/TailStack --skill tailwind-v4-shadcn-gitcoder052023

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers through configuring Tailwind v4 with shadcn/ui for React projects, replacing legacy config approaches with a CSS-first theming flow to enable semantic color tokens and automatic dark mode.

Core Features & Use Cases

  • CSS-first Tailwind v4 integration with Vite plugin and semantic token mapping.
  • Dark mode ready via a ThemeProvider and automatic theme switching.
  • Migration guidance for moving from v3 to v4 and best practices for theming.
  • Use Case: Initialize a modern ERN stack app or modernize an existing React project to adopt semantic colors and a streamlined Tailwind workflow.

Quick Start

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

  • Install the Tailwind v4 package and Vite plugin.
  • Initialize shadcn/ui with required options (style, base color, CSS variables, and empty config for v4).
  • Add ThemeProvider and wrap your App.
  • Add initial shadcn components (button, card, etc.).

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, you install the Tailwind v4 package and Vite plugin, initialize shadcn/ui with CSS variables enabled, and configure a CSS-first architecture using an empty tailwind.config.ts file.

What is the CSS-first architecture for Tailwind v4 theming?

The CSS-first architecture for Tailwind v4 replaces legacy JavaScript configurations by mapping semantic color tokens directly in CSS using @theme inline directives within a single base layer configuration.

Can I migrate an existing React project from Tailwind v3 to v4 using shadcn/ui?

Yes, you can migrate existing React projects from Tailwind v3 to v4 using this CSS-first approach, which provides guidance for moving legacy configurations to semantic color tokens and an empty tailwind.config.ts workflow.

How do I configure dark mode with Tailwind v4 and shadcn/ui?

To configure dark mode with Tailwind v4 and shadcn/ui, you implement a ThemeProvider to wrap your App and use CSS-variable-based semantic tokens to enable automatic theme switching.

Do I need an empty tailwind.config.ts file for Tailwind v4 shadcn/ui setup?

Yes, an empty tailwind.config.ts file is required for the Tailwind v4 shadcn/ui setup because the configuration is enforced through a CSS-variable-based workflow with @theme inline mappings instead of JavaScript objects.

What are the limitations of using semantic color tokens in Tailwind v4?

Using semantic color tokens in Tailwind v4 requires adhering to a strict CSS-first workflow with @theme inline mappings, meaning any legacy JavaScript-based theme configurations must be fully migrated to the single base layer CSS configuration.