tailwind-v4-shadcn

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

2|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/Lostovayne/Complete-Cursor-Clone-Next16 --skill tailwind-v4-shadcn-lostovayne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/Lostovayne/Complete-Cursor-Clone-Next16/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/Lostovayne/Complete-Cursor-Clone-Next16 --skill tailwind-v4-shadcn-lostovayne

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the complexity of configuring Tailwind v4 with shadcn/ui for production-ready React projects.

Core Features & Use Cases

  • Production-ready Tailwind v4 + shadcn/ui setup pattern for modern React apps.
  • Four-step architecture guidance: CSS variables at root, @theme inline mappings, base layer composition, and automatic dark mode behavior.
  • Clear migration and debugging guidance for common gotchas, themes, and plugin usage.

Quick Start

Follow the four-step architecture to initialize a Tailwind v4 + shadcn/ui project, configure Vite, map CSS variables with @theme inline, and enable dark mode via a ThemeProvider.

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 with shadcn/ui in a Vite and React project?

To configure Tailwind v4 with shadcn/ui, you map CSS variables via @theme inline and integrate a ThemeProvider to manage dark mode. This production-tested setup uses a four-step architecture focusing on root variables, inline mappings, base layer composition, and automatic dark mode behavior.

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

The best way to set up dark mode in Tailwind v4 and shadcn/ui is by implementing a ThemeProvider within your React application. This provider manages the theme state and works with your CSS variable mappings to enable automatic dark mode behavior across your components.

Does shadcn/ui work with Tailwind v4 using Vite as the bundler?

Yes, shadcn/ui works with Tailwind v4 using Vite as the bundler. This Skill provides production-ready architecture guidance specifically for modern front-end workflows using Vite, ensuring proper plugin directives and CSS variable mappings are configured correctly.

Why does my Tailwind v4 theme not apply correctly to shadcn/ui components?

Your Tailwind v4 theme may not apply correctly to shadcn/ui components if CSS variables are not mapped properly using @theme inline. Correct configuration requires defining variables at the root, applying inline mappings, and composing the base layer correctly to resolve common theming gotchas.

How do I migrate an existing shadcn/ui project to Tailwind v4?

To migrate an existing shadcn/ui project to Tailwind v4, follow the four-step architecture to update your CSS variable mappings using @theme inline. This approach provides clear migration guidance for updating plugin directives and resolving common configuration gotchas.