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)| Author | Jeremy Dawes (Jezweb) |
|---|---|
| Licence | MIT |
| Source | jezweb/claude-skills · SKILL.md on GitHub |
| Works in | Claude 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
What it does
- Inspect the existing integration and preserve required configuration before migration.
- Map foreground/background token pairs and wire theme state.
- 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 folder | What it is for |
|---|---|
SKILL.md | Instructions, 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.md | Instructions, 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
- Start Claude Code in a terminal with
claude. - Add the marketplace (once per computer):
/plugin marketplace add jezweb/claude-skills - 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 - 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-skillsThe 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.
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
Antfu skill
Community · Anthony FuApply Anthony Fu's JavaScript and TypeScript tooling preferences to a compatible project.Jezweb shadcn/ui skill
Community · Jeremy Dawes (Jezweb)Add themed components in dependency order and combine them into forms, tables and navigation.Landing Page skill (Jezweb)
Community · Jeremy Dawes (Jezweb)Draft a standalone HTML landing page with responsive sections, metadata and theme controls.Jezweb Design Review skill
Community · Jeremy Dawes (Jezweb)Review rendered layout, typography, color and responsive consistency with screenshot evidence.Clone Website skill
Community · JCodesMoreRebuild an authorized website as editable local components after inspecting layout, assets and interactions.Huashu Design skill
Community · 花叔 (alchaincyf)Explore visual directions and build HTML prototypes, presentations and motion with review gates.