Skip to content

Tailwind Theme Builder skill

Set up semantic Tailwind v4 tokens and light, dark and system themes in a Vite React project.

Community · Jeremy Dawes (Jezweb)
AuthorJeremy Dawes (Jezweb)
LicenceMIT
Sourcejezweb/claude-skills · SKILL.md on GitHub
Works inClaude Code
Read from the source on

The tailwind-theme-builder skill configures Tailwind v4 theming for a Vite React and shadcn/ui project.

Its recipe maps semantic CSS variables through @theme inline and supplies a theme provider. The source's Vite-only recommendations are not a universal ban on Tailwind's supported PostCSS integration.

From the skill's SKILL.md: tailwind-theme-builder

This is a community skill by Jeremy Dawes (Jezweb), not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Inspect the existing integration and preserve required configuration before migration.
  2. Map foreground/background token pairs and wire theme state.
  3. Check light, dark and system modes, persistence and measured contrast.

What you get

  • Theme CSS, Vite configuration, a theme provider, cn() utility and component configuration.

When to use it

  • Build a compatible themed interface or diagnose a broken token mapping.

When not to use it

  • Deleting legacy configuration blindly or applying a Vite recipe unchanged to another framework.

What it needs

  • A compatible React/Vite project, Tailwind v4, its Vite integration and shadcn/ui tooling; install dependencies separately.

Files in the skill

File or folderWhat it is for
SKILL.mdInstructions, migration reference and CSS, provider, utility and Vite configuration assets.
assets/Instructions, migration reference and CSS, provider, utility and Vite configuration assets.
references/migration-guide.mdInstructions, migration reference and CSS, provider, utility and Vite configuration assets.

Licence as found in the repository on 2026-11-27: MIT.

Example prompts

Type one of these after installing; naming the skill makes sure it is used.

  • Set up semantic tokens in this Vite project without losing existing styles.
  • Diagnose why bg-primary does not follow the dark theme.
  • Test light, dark and system modes after refreshing the page.

How to install tailwind-theme-builder

Preserve assets and migration context

Install the frontend plugin or complete folder. Inspect the existing stack before copying assets or deleting v3 files; retain project-specific behavior and use the appropriate official integration.

A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:

Claude Code: from the plugin marketplace

  1. Start Claude Code in a terminal with claude.
  2. Add the marketplace (once per computer):
    /plugin marketplace add jezweb/claude-skills
  3. Install the plugin. Claude Code opens its details first: check what it will add (skills, hooks, MCP servers), then choose whether it is for you, for everyone on this repository, or for you in this repository only.
    /plugin install frontend@jezweb-skills
  4. Type / and look for /frontend:tailwind-theme-builder, or simply ask for the task.

From your shell instead of a session:

claude plugin marketplace add jezweb/claude-skills
claude plugin install frontend@jezweb-skills

The plugin installs as a whole, so other skills come with it, including react-patterns, react-native, shadcn-ui, product-showcase, design-loop, landing-page, design-review, design-system.

Claude Code: copy the folder into your skills folder

Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).

git clone --depth 1 https://github.com/jezweb/claude-skills.git
mkdir -p ~/.claude/skills
cp -R claude-skills/plugins/frontend/skills/tailwind-theme-builder ~/.claude/skills/

Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /tailwind-theme-builder or just describe the task.

On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.

Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

Sources for these steps

Checked against each vendor's documentation on 2026-11-14:

Trace the token chain

A semantic variable, its @theme inline mapping and a generated utility are different layers. Inspect computed styles to find the broken link before replacing configuration.

Verify theme behavior in the browser

Check system preference, manual override, persistence and initial paint. Confirm storage failures are handled by the actual project; copied examples do not establish production readiness.

Questions about tailwind-theme-builder

Is this a universal Tailwind installer?

No. It is a Vite-focused recipe. Tailwind also documents PostCSS integration; choose the path appropriate to the project.

Should I delete the old config immediately?

Inspect its project-specific settings first. Migrate required behavior rather than blindly executing the example deletion.

Does dark mode prove accessible contrast?

No. Measure relevant foreground/background pairs in every theme and inspect focus and disabled states.

Is one HSL wrapping style mandatory everywhere?

The source assets use complete color values. Keep that representation consistent; do not double-wrap them or impose it on unrelated token systems.

More AI skills

Related skills

Skill categories

Buy me a coffee