Tailwind CSS v4 (CSS-first) configuration and theming. Use when editing theme colors, light/dark or dark-only themes, @theme/@import/@plugin config, or syncing colors with a project brand skill.
Ships in tailwind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Tailwind v4 is CSS-first: configuration and theme live in CSS, not a
tailwind.config.js. The entry stylesheet starts with @import "tailwindcss";
and customization happens in @theme, @plugin, @source, @utility, and
@custom-variant directives. This skill covers v4 only.
Related: for building shadcn/ui + React components, forms (React Hook Form
- Zod), accessibility, and responsive layouts, use the
ui-stylingskill. This skill focuses on the Tailwind layer itself — config, theme colors, and syncing with a project brand skill.
The project's entry CSS is the file containing @import "tailwindcss"; (often
app.css, globals.css, styles.css, or index.css). All config lives there.
@theme { --color-*, --font-*, --spacing-*, --radius-*, --breakpoint-* }. Each token generates utilities (e.g. --color-brand-500 → bg-brand-500, text-brand-500).@theme inline { ... } when a token's value is var(--something), so utilities resolve the variable at use-time (required for light/dark).@source "../foo", exclude with @source not "...", safelist with @source inline("bg-red-500").@plugin "@tailwindcss/typography"; and @config "./tailwind.config.js";.@import "tailwindcss" prefix(tw);, @utility, @custom-variant.See references/v4-configuration.md for the full reference.
Use this flow whenever changing base theme colors.
Check the project for .claude/skills/brand/ (also match .claude/skills/*brand*/).
ls -d .claude/skills/*brand*/ 2>/dev/null
Find the entry CSS, then locate within it:
@theme / @theme inline blocks, and:root { --* } and .dark { --* } (or [data-theme]) variable blocks.grep -rl '@import "tailwindcss"' --include=*.css .
grep -n '@theme\|:root\|\.dark\|--color-' <entry.css>
@theme { --color-primary: ... }. No runtime switching.@theme inline { --color-primary: var(--primary) } with the real values in :root (light) and .dark (dark)..dark toggle.Decision rule and full examples: references/theme-colors.md and
references/light-dark-theming.md (the dark-only section covers single-theme
projects).
Edit the value in the place that matches the pattern:
@theme.:root and/or .dark (not the @theme inline mapping).Keep paired values consistent — if a token exists in both :root and .dark,
decide whether the change applies to one mode or both.
When a brand skill exists, record the change there so brand and CSS never drift.
Detection tiers and write-back rules are in references/brand-sync.md.
Confirm the old value is gone and the new one is present in both the CSS and (if applicable) the brand record:
grep -rn '<old-value>\|<new-value>' <entry.css> .claude/skills/*brand*/
references/v4-configuration.md — CSS-first configuration referencereferences/theme-colors.md — flat @theme colors, palette overrides, semantic tokensreferences/light-dark-theming.md — light/dark and dark-only patternsreferences/brand-sync.md — brand detection, source-of-truth rule, fallbackWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/tailwind:tailwindfrom tailwind
npx claudepluginhub kettleofketchup/kettleofskills --plugin tailwind