jezweb avatar

Tailwind Theme Builder

This handles the full Tailwind v4 migration dance: CSS variable setup, dark mode wiring, and shadcn/ui integration without the usual footguns. The four-step CSS architecture is mandatory and well-documented here because v4 breaks if you nest things wrong or double-wrap hsl() values. What's useful is the troubleshooting table covering all 18 gotchas, from variables being ignored when :root sits inside @layer base to the PostCSS versus Vite plugin confusion. Reach for this when you're migrating from v3, setting up a new themed project, or debugging why bg-background isn't generating. It's opinionated about semantic tokens and includes the complete theme provider and toggle components.

skills.sh installs
3.3K
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add jezweb/claude-skills --skill tailwind-theme-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Tailwind Theme Builder

Set up a fully themed Tailwind v4 + shadcn/ui project with dark mode. Produces configured CSS, theme provider, and working component library.

Architecture: The Four-Step Pattern

Tailwind v4 requires a specific architecture for CSS variable-based theming. This pattern is mandatory -- skipping or modifying steps breaks the theme.

How It Works

CSS Variable Definition --> @theme inline Mapping --> Tailwind Utility Class
--background           --> --color-background     --> bg-background
(with hsl() wrapper)      (references variable)     (generated class)

Dark mode switching:

ThemeProvider toggles .dark class on <html>
  --> CSS variables update automatically (.dark overrides :root)
  --> Tailwind utilities reference updated variables
  --> UI updates without re-render

Best Practices

Sponsors

Details

Repository
github.com/jezweb/claude-skills
Categories
Frontend Development, Debugging

More from jezweb/claude-skills

All 166
1samhvw8 avatarui-design-systemsamhvw8/dot-claudeReact UI component systems with TailwindCSS + Radix + shadcn/ui. Stack: TailwindCSS (styling), Radix UI (primitives), shadcn/ui (components), React/Next.js. Cap3.2Kskills.sh installs
2browserbase avatarui-testbrowserbase/skillsAI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional corr3.1Kskills.sh installs
3freshtechbro avataranimated-component-librariesfreshtechbro/claudedesignskillsPre-built animated React component collections combining Magic UI (150+ TypeScript/Tailwind/Motion components) and React Bits (90+ minimal-dependency animated c3.1Kskills.sh installs
4chakra-ui avatarchakra-ui-refactorchakra-ui/chakra-uiReview, convert, and improve UI code using Chakra UI v3. Use this skill whenever a user wants to review Chakra UI code for issues, convert plain HTML/CSS, Tailw2.9Kskills.sh installs
5copilotkit avatarreact-corecopilotkit/copilotkit@copilotkit/react-core — mount the CopilotKit provider (from @copilotkit/react-core/v2) in a Next.js App Router / React Router v7 / TanStack Start / SPA app, dr2.8Kskills.sh installs
6callstackincubator avatarreact-devtoolscallstackincubator/agent-react-devtoolsReact DevTools CLI for AI agents. Use when the user asks you to debug a React or React Native app at runtime, inspect component props/state/hooks, diagnose rend2.7Kskills.sh installs