tailwind-v4-shadcn

Migrate React projects to Tailwind v4 with shadcn/ui using CSS-first theming.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/Yoriichi-Dang/dashboard_web_template --skill tailwind-v4-shadcn-yoriichi-dang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/Yoriichi-Dang/dashboard_web_template/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/Yoriichi-Dang/dashboard_web_template --skill tailwind-v4-shadcn-yoriichi-dang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers through adopting Tailwind v4 with shadcn/ui in React-based projects, providing a CSS-first architecture, semantic color tokens, and automated theming to simplify modern frontend styling.

Core Features & Use Cases

  • Migration guidance: Learn how to move from Tailwind v3 patterns to v4 with a CSS-first configuration using @theme inline.
  • Theming and dark mode: Implement a ThemeProvider and CSS variable strategy for automatic dark mode with system support.
  • Bootstrapping UI: Set up Vite-ready Tailwind v4 + shadcn/ui scaffolding, including component scaffolds and utility helpers.
  • Use case: Start a new Next.js or Vite React project with a production-ready, semantically colored UI that adapts to light/dark modes automatically.

Quick Start

Install Tailwind v4 and shadcn/ui, initialize shadcn, configure components.json, add a ThemeProvider, wrap your app, and begin adding components.

Frequently Asked Questions about tailwind-v4-shadcn

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

FAQPage Schema
How do I migrate shadcn/ui to Tailwind v4 in a React project?

To migrate shadcn/ui to Tailwind v4, adopt a CSS-first configuration using @theme inline, remove the empty tailwind.config.ts file, and rely on the @tailwindcss/vite plugin for your React project setup.

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

The CSS-first theming architecture in Tailwind v4 replaces JavaScript configuration files by defining semantic color tokens and design variables directly in CSS using the @theme inline directive.

Does Tailwind v4 work with shadcn/ui dark mode automatically?

Yes, Tailwind v4 works with shadcn/ui dark mode by implementing a ThemeProvider and a CSS variable strategy that automatically adapts the UI to light and dark modes with system support.

Can I use Tailwind v4 and shadcn/ui with Vite and Next.js?

Yes, you can use Tailwind v4 and shadcn/ui with Vite and Next.js projects by installing the @tailwindcss/vite plugin, initializing shadcn, and configuring components.json for scaffolding.

Do I need to delete tailwind.config.ts when moving to Tailwind v4?

Yes, when moving to Tailwind v4 with shadcn/ui, you need to remove the empty tailwind.config.ts file because the framework now uses a CSS-based configuration via @theme inline.

Why are my Tailwind v4 semantic color tokens not applying correctly?

Tailwind v4 semantic color tokens may fail if you retain the old JavaScript configuration instead of using @theme inline, or if the ThemeProvider is not properly wrapping your React application.