tailwind-v4-shadcn

Configure Tailwind v4 with shadcn/ui theming using CSS variables.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tailwind v4 with shadcn/ui requires a cohesive pattern for theming and dark mode across projects, and this Skill provides a vetted setup based on CSS variables to ensure consistent semantic tokens, automatic dark mode, and predictable utility mapping.

Core Features & Use Cases

  • Four-step theming architecture: define CSS variables at root, map with @theme inline, apply base styles, and enable automatic dark mode.
  • Production-ready starting point for React + Vite projects using Tailwind v4 and shadcn/ui components.
  • Suitable for teams migrating from v3 or starting new projects that require consistent theming, accessibility, and design-system alignment.

Quick Start

Follow the four-step pattern to initialize your project; adapt the starter to your app structure and integrate with your existing 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 configure Tailwind v4 with shadcn/ui theming in a React project?

Configure Tailwind v4 theming by applying a four-step architecture: define CSS variables at root, map them with @theme inline, apply base styles, and enable automatic dark mode for consistent component styling.

What is the @theme inline mapping pattern for Tailwind v4 CSS variables?

The @theme inline mapping pattern links your root CSS variables to Tailwind v4 utilities, ensuring predictable utility generation and deterministic component styling across your React application.

How do I set up automatic dark mode with shadcn/ui and Tailwind v4?

Automatic dark mode is enabled by defining semantic color tokens as CSS variables and mapping them through the four-step architectural pattern, allowing seamless theme switching without manual utility overrides.

Can I migrate my existing React project from Tailwind v3 to v4 theming using this setup?

Yes, this setup supports teams migrating from Tailwind v3 by providing a production-ready starting point that enforces a cohesive CSS-variable-based design system for reliable dark mode and semantic tokens.

Why are my shadcn/ui component styles inconsistent after upgrading to Tailwind v4?

Inconsistent styles usually occur without a cohesive pattern; enforcing the four-step theming architecture ensures deterministic utility mapping and prevents common pitfalls across your application.