Tooluck logoTooluck
SKILL.md

tailwind-theme-builder

Agent skill fromjezweb/claude-skills

Set up Tailwind v4 + shadcn/ui themed UI with dark mode. Install deps, configure CSS variables via @theme inline, wire dark mode toggle, verify. Use whenever the user mentions Tailwind v4, setting up Tailwind theming, shadcn/ui colours, dark mode, or troubleshooting colours not working, tw-animate-css errors, @theme inline conflicts, @apply breaking after upgrade, or v3 → v4 migration issues.

How to install tailwind-theme-builder

install tailwind-theme-builder
# install the claude-skills pack with the skills CLI
npx skills add jezweb/claude-skills

# or add only this skill to Claude Code: copy the folder

plugins/frontend/skills/tailwind-theme-builder/

# into

~/.claude/skills/tailwind-theme-builder/ (all projects)

.claude/skills/tailwind-theme-builder/ (one project)

plugins/frontend/skills/tailwind-theme-builder/SKILL.md

MITFull file
1# Tailwind Theme Builder
2
3Set up a fully themed Tailwind v4 + shadcn/ui project with dark mode. Produces configured CSS, theme provider, and working component library.
4
5## Architecture: The Four-Step Pattern
6
7Tailwind v4 requires a specific architecture for CSS variable-based theming. This pattern is **mandatory** -- skipping or modifying steps breaks the theme.
8
9### How It Works
10
11```
12CSS Variable Definition --> @theme inline Mapping --> Tailwind Utility Class
13--background --> --color-background --> bg-background
14(with hsl() wrapper) (references variable) (generated class)
15```
16
17Dark mode switching:
18```
19ThemeProvider toggles .dark class on <html>
20 --> CSS variables update automatically (.dark overrides :root)
21 --> Tailwind utilities reference updated variables
22 --> UI updates without re-render
23```
24
25### Best Practices
26
27- **Semantic names:** Use `--primary` not `--blue-500`
28- **Foreground pairing:** Every background colour needs a foreground (`--primary` + `--primary-foreground`)
29- **WCAG contrast:** Normal text 4.5:1, large text 3:1, UI components 3:1
30- **Chart colours:** Use separate variables with `@theme inline` mapping, reference via `var(--chart-1)` in style props
31
32---
33
34## Workflow
35
36### Step 1: Install Dependencies
37
38```bash
39pnpm add tailwindcss @tailwindcss/vite
40pnpm add -D @types/node tw-animate-css
41pnpm dlx shadcn@latest init
42
43# Delete v3 config if it exists
44rm -f tailwind.config.ts
45```
46
47### Step 2: Configure Vite
48…

Excerpt shown under the repository's MIT license.

More skills in claude-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates