tailwind-v4-shadcn

Bootstrap Tailwind v4 and shadcn/ui with a CSS-variable theming pattern.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill standardizes and accelerates the setup of Tailwind v4 with shadcn/ui by replacing fragile configs with a robust CSS-variable theming architecture, reducing migration risk and onboarding time.

Core Features & Use Cases

  • Four-step theming pattern (root CSS variables, @theme inline mapping, base styles, automatic dark mode) for reliable, theme-aware UI.
  • Production-ready templates and reference docs to speed up initial project bootstrapping and ongoing maintenance.
  • Real-world applicability across React projects needing consistent theming, accessible color tokens, and smooth dark-mode behavior.

Quick Start

Install Tailwind v4 and shadcn/ui, then follow the four-step CSS-variable architecture outlined in this guide.

Frequently Asked Questions about tailwind-v4-shadcn

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

FAQPage Schema
How do I set up Tailwind v4 with shadcn/ui using CSS variables for theming?

To set up Tailwind v4 with shadcn/ui, apply a CSS-first configuration using a four-step pattern: define root CSS variables, map them with @theme inline, apply base styles, and enable automatic dark mode for reliable theme-aware UI.

Why does my Tailwind v3 to v4 migration break my shadcn/ui dark mode?

Tailwind v3 to v4 migration breaks dark mode when relying on fragile JavaScript configs instead of a CSS-variable architecture. Enforcing CSS-first configuration with @theme inline mapping and ThemeProvider integration prevents these common migration pitfalls.

What's the best way to configure dark mode for shadcn/ui in a React project?

The best way to configure dark mode for shadcn/ui in React is through a CSS-variable theming architecture. This approach ensures consistent theming, accessible color tokens, and smooth dark-mode behavior by using automatic dark-mode integration.

Do I need a JavaScript config file for Tailwind v4 and shadcn/ui theming?

You do not need a JavaScript config file for Tailwind v4 and shadcn/ui theming. The setup enforces a CSS-first configuration approach, replacing fragile config files with a robust CSS-variable architecture for reliable theming.

Can I use Tailwind v4 CSS variables for consistent theming across teams?

You can use Tailwind v4 CSS variables for consistent theming across teams. This skill provides production-ready templates and reference docs that standardize the setup, reducing migration risk and accelerating project onboarding.

What are the limitations of using CSS variables for shadcn-ui themes in Tailwind v4?

There are no inherent limitations to using CSS variables for shadcn-ui themes in Tailwind v4. This approach replaces fragile configs with a robust architecture, reducing migration risk and ensuring smooth dark-mode behavior across React projects.