tailwind-v4-shadcn

Configure Tailwind v4 and shadcn/ui with dark mode and CSS variables for React.

Updated May 29, 2026
One-click install
npx skills add https://github.com/sjmontano/SafeRoutes-Popayan --skill tailwind-v4-shadcn-sjmontano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind-v4-shadcn
Source: https://github.com/sjmontano/SafeRoutes-Popayan/tree/main/.agents/skills/tailwind-v4-shadcn
Command: npx skills add https://github.com/sjmontano/SafeRoutes-Popayan --skill tailwind-v4-shadcn-sjmontano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Production-ready setup for Tailwind v4 + shadcn/ui in React projects to streamline theming, dark mode, and component scaffolding.

Core Features & Use Cases

  • Production-tested templates for Vite + React + Tailwind v4 integration
  • CSS variable architecture with @theme inline mapping for semantic colors
  • Dark mode support via ThemeProvider and system/theme toggling, with ready-to-use patterns

Quick Start

Create a new React project and integrate the Tailwind v4 + shadcn/ui setup following the provided templates.

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

To configure Tailwind v4 with shadcn/ui, you map semantic CSS variables using @theme inline, integrate a ThemeProvider for dark mode, and apply production-ready templates like components.json to your Vite-based React app.

Does the shadcn/ui setup support dark mode and system theme toggling in Tailwind v4?

Yes, the shadcn/ui setup supports dark mode and system theme toggling in Tailwind v4 by integrating a dedicated ThemeProvider and utilizing semantic CSS variables mapped through the @theme inline directive.

What is the @theme inline directive used for in Tailwind v4 theming?

The @theme inline directive in Tailwind v4 theming is used to map semantic CSS variables to your design tokens, enabling consistent color management and seamless dark mode transitions across shadcn/ui components.

Can I apply this Tailwind v4 and shadcn/ui setup to an existing Vite and React app?

Yes, you can apply this Tailwind v4 and shadcn/ui setup to an existing Vite and React app by integrating the provided production-tested templates, configuring the CSS variable architecture, and adding the required ThemeProvider.

What's the best way to structure semantic CSS variables for shadcn/ui components?

The best way to structure semantic CSS variables for shadcn/ui is using a CSS variable architecture mapped via @theme inline, which ensures your React components react dynamically to dark mode and theme toggling.

Why do I need a ThemeProvider when setting up dark mode with Tailwind v4 and shadcn/ui?

You need a ThemeProvider when setting up dark mode with Tailwind v4 and shadcn/ui to manage system and theme toggling states, ensuring your semantic CSS variables update correctly across the React component tree.