Tailwind v4 and shadcn/ui let you build a website with a dark mode theme. This guide shows you how to install the tools and set up colors that switch between light and dark. You will use a simple four-step process to make everything work.
The colors are stored as CSS variables. A theme provider toggles a class on the page to change them. Tailwind utilities like bg-background and text-primary then update automatically.
This setup follows best practices for contrast and semantic naming. It helps you avoid common problems when moving from older versions.
Global
mkdir -p ~/.claude/skills/tailwind-theme-builderProject
mkdir -p .claude/skills/tailwind-theme-builderSource Repository
Frontend Designanthropics/skills
Create striking frontend interfaces with bold design and polished code every time
Vercel React Best Practicesvercel-labs/agent-skills
Optimize React and Next.js apps using proven Vercel performance guidelines
Vercel Composition Patternsvercel-labs/agent-skills
Clean React components with composition instead of boolean props
Shadcnshadcn/ui
Manage shadcn UI components easily with CLI commands and clear styling rules
Design Taste Frontendleonxlnx/taste-skill
Enforce premium frontend design with metric-based rules and smart component architecture
Impeccablepbakaus/impeccable
Polish your frontend interfaces with expert design critique and code
Minimalist Uileonxlnx/taste-skill
Build warm minimal web interfaces with editorial typography and flat bento grids
Industrial Brutalist Uileonxlnx/taste-skill
Raw mechanical UIs fusing Swiss print with military terminal aesthetics and high data density