What problem does it solve?
Tailwind CSS v4 and shadcn/ui theme setups commonly fail in subtle ways, especially around CSS variable architecture and dark mode switching, causing broken semantic colors, missing utilities, and build-breaking configuration mistakes.
Core Features & Use Cases
- Production-tested Tailwind v4 + shadcn/ui foundation: Implements the correct CSS-first setup for React projects using Tailwind v4 with shadcn/ui.
- Reliable dark mode and theme switching: Provides a verified pattern using a ThemeProvider and the
.dark class on the html element so colors swap automatically.
- Semantic color tokens via CSS variables: Ensures semantic utilities (e.g.,
bg-primary, text-foreground) exist by mapping CSS variables to Tailwind via @theme inline.
- Common v4 gotchas prevented: Avoids frequent issues like wrong config usage, incorrect
@theme placement, duplicate @layer base, and double hsl() wrapping.
Quick Start
Activate the skill and ask the AI to generate an updated src/index.css and components.json for Tailwind v4 + shadcn/ui using semantic CSS variables and verified dark mode patterns.