tailwind-v4-shadcn

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Tailwind v4 + shadcn/ui setup in modern React projects can be verbose and error-prone. This guide delivers a production-ready starting point with a consistent CSS variable architecture, dark mode support, and a Vite-based config to accelerate onboarding.

Core Features & Use Cases

  • Production-ready setup for Tailwind v4 + shadcn/ui in React projects.
  • Explicit dark mode support and semantic color tokens via CSS variables mapped with @theme inline.
  • Prebuilt templates and references to cover migration from v3 and plugin usage.

Quick Start

Follow the steps to scaffold a React + Vite project and apply Tailwind v4 with shadcn/ui configuration.

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 React project?

To set up Tailwind v4 with shadcn/ui in a React project, you need to configure a stable index.css, map semantic color tokens via @theme inline, and update your Vite configuration with the proper Tailwind plugins to achieve a production-ready styling stack.

Does Tailwind v4 work with shadcn/ui for dark mode and CSS variables?

Yes, Tailwind v4 works with shadcn/ui to support dark mode and CSS variables by using the @theme inline directive to map semantic color tokens. This approach ensures consistent theme architecture across your React application.

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

The best way to migrate from Tailwind v3 to v4 with shadcn/ui is to follow a non-invasive migration path. This involves updating your CSS variables architecture, applying the @theme inline mapping, and adjusting your tailwind plugin usage to maintain production readiness.

Why does my shadcn/ui dark mode configuration break after upgrading to Tailwind v4?

Your shadcn/ui dark mode configuration may break after upgrading to Tailwind v4 if your CSS variables are not properly mapped using the @theme inline directive. Applying the correct Tailwind plugin usage and theme mapping ensures dark mode functions as expected.

Can I use Vite to configure Tailwind v4 plugins for a shadcn/ui React app?

Yes, you can use Vite to configure Tailwind v4 plugins for a shadcn/ui React app. The setup requires proper Vite configuration alongside a stable index.css to enable plugin usage and deliver a production-ready styling environment.

What are the limitations of migrating Tailwind v3 to v4 with existing shadcn-ui CSS variables?

A key limitation when migrating is that existing CSS variables require remapping through the @theme inline directive to function in Tailwind v4. Without following a non-invasive migration path, semantic color tokens and dark mode support may fail to apply correctly.