What problem does it solve? Setting up Tailwind v4 with shadcn/ui theming and dark mode involves a strict four-step CSS architecture, and common mistakes like nesting :root inside @layer base or double-wrapping hsl() silently break the theme. This Skill provides the exact configuration pattern, ready-to-copy asset files, and a catalog of 18 diagnosed gotchas to get a working themed UI without trial and error. ## Core Features & Use Cases - Four-Step Theme Architecture: Enforces the mandatory pattern of root-level CSS variables, @theme inline mapping, base layer styles, and a theme provider for class-based dark mode. - Ready-to-Copy Assets: Ships complete index.css, vite.config.ts, theme-provider.tsx, components.json, and a cn() utility for immediate project setup. - 18-Gotcha Troubleshooting Guide: Maps symptoms like missing bg-background classes, broken dark mode, and tw-animate-css build failures to their exact causes and fixes. - Use Case: When migrating a project from Tailwind v3 to v4 and colours stop working, use this Skill to diagnose the issue (e.g., leftover tailwind.config.ts or PostCSS plugin) and apply the correct v4 configuration. ## Quick Start Set up Tailwind v4 with shadcn/ui theming and dark mode in my Vite React project, including the theme provider and toggle component.