tailwind-v4-shadcn

Configures Tailwind v4 and shadcn/ui with CSS variables for React/Vite projects.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/YanchiHuang/image-creator-workshop --skill tailwind-v4-shadcn-yanchihuang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/YanchiHuang/image-creator-workshop/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/YanchiHuang/image-creator-workshop --skill tailwind-v4-shadcn-yanchihuang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and rules (resource) components.

What problem does it solve?

This Skill streamlines the setup of Tailwind CSS v4 and shadcn/ui, preventing common configuration errors and ensuring a robust, maintainable project foundation.

Core Features & Use Cases

  • Production-Ready Stack: Integrates Tailwind v4 with shadcn/ui using best practices for CSS variables and dark mode.
  • Error Prevention: Addresses 8 documented errors related to configuration, dark mode, and migration from v3.
  • Use Case: When starting a new React project or migrating an existing one to Tailwind v4, use this Skill to quickly establish a correct and efficient styling system.

Quick Start

Run the setup command to initialize Tailwind v4 and shadcn/ui in your project.

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

Configure Tailwind CSS v4 with shadcn/ui by implementing a CSS variable architecture for theming and automatic dark mode. This setup establishes a modern styling foundation for new and existing React projects using Vite.

Why does my dark mode configuration break after migrating to Tailwind v4?

Dark mode configuration breaks during Tailwind v4 migration due to common setup errors. Addressing documented migration issues from Tailwind v3 ensures correct CSS variable implementation and resolves automatic dark mode switching problems.

What's the best way to migrate an existing React project from Tailwind v3 to v4?

The best way to migrate from Tailwind v3 to v4 involves addressing 8 documented configuration errors and implementing a new CSS variable architecture. This ensures a robust, maintainable styling foundation with shadcn/ui.

Do I need Vite and React to use shadcn/ui with Tailwind v4?

Yes, Vite and React are required prerequisites for this Tailwind v4 and shadcn/ui configuration. The setup implements CSS variables and automatic dark mode specifically within this stack to prevent common integration errors.

How do CSS variables work for theming in Tailwind v4 and shadcn/ui?

CSS variables work for theming in Tailwind v4 and shadcn/ui by defining design tokens that enable automatic dark mode switching. This architecture prevents configuration errors and provides a maintainable styling foundation for React projects.

What are the common setup errors when integrating Tailwind v4 and shadcn/ui?

Common setup errors when integrating Tailwind v4 and shadcn/ui include configuration issues, dark mode failures, and migration conflicts from Tailwind v3. Addressing these 8 documented errors establishes a correct and efficient styling system.