What is the Tailwind Theme Builder skill?
Tailwind Theme Builder is a jezweb skill that sets up a themed Tailwind v4 and shadcn/ui project with dark mode. It enforces a four step CSS pattern (variables, theme inline mapping, base styles, dark class toggle) and ships an 18 row gotcha table for common breakages.
Tailwind Theme Builder is a skill in jezweb's frontend plugin. It sets up a fully themed Tailwind v4 and shadcn/ui project with dark mode, and produces configured CSS, a theme provider and a working component library.
Its core is a mandatory four step architecture. CSS variables are defined at the root, mapped with a single theme inline block, applied as base styles, and switched by toggling a dark class on the html element.
What changes in your agent's output
- Colours live in root and dark class variables wrapped once in hsl(), not in a tailwind config file.
- Utilities such as bg-background and text-primary come from one theme inline block.
- The Vite plugin replaces the PostCSS route, and the old config file is deleted.
- A prevention checklist and a dark mode test list are worked through before the setup counts as done.
Who it is for
Best for
- Vite and React projects starting on Tailwind v4 with shadcn/ui and a light, dark and system toggle.
- Fixing colours that do not apply, nested theme errors, broken apply rules or animation import failures after a v3 upgrade.
- Developers who then add components through tailwind design system or tailwind patterns.
Not for
- Non React stacks. The workflow assumes Vite, React and the shadcn init command.
- Projects that must stay on Tailwind v3, because the skill deletes the v3 config file by design.
- Users of other agents: the skill's frontmatter lists compatibility as claude-code-only.
Use it with UiChemy
This skill targets React apps. For a WordPress site, build the page in Composer or import a finished design with Figma to WordPress instead. Click Get Started on uichemy.com.
How to install Tailwind Theme Builder Skill: Tailwind v4, shadcn/ui and Dark Mode
git clone https://github.com/jezweb/claude-skills.gitThe repository also describes a plugin route, so check its README if you prefer plugin installs.Clone the repository
Run the clone command above, or download the repository from GitHub.
Copy the skill folder
Copy plugins/frontend/skills/tailwind-theme-builder, including its assets and references folders, into your agent's skills directory.
Run it in a project
In a Vite and React project, ask the agent to set up a Tailwind v4 theme with shadcn/ui and dark mode.
Check that it loaded
Ask the agent to set up theming in a fresh Vite project. It should delete the v3 config, create a theme inline block and add a theme provider.
Key features
- Four step CSS architectureDefine variables at root, map them with theme inline, apply base styles and toggle a dark class. The skill calls the order mandatory.
- Dependency installAdds tailwindcss and the Tailwind Vite plugin, tw-animate-css as a dev dependency, runs the shadcn init and removes any v3 config file.
- Vite configurationWires the Tailwind plugin into the Vite config along with a path alias, using the copy-ready asset file.
- Dark mode providerA theme provider component toggles the dark class and stores the choice, with light, dark and system modes in a mode toggle.
- components.json ruleThe config path is left empty, because Tailwind v4 has no tailwind config file.
- Semantic tokensUse names like primary rather than blue-500, and pair every background with a foreground token.
- WCAG contrast targetsNormal text 4.5 to 1, large text and UI components 3 to 1.
- 18 gotcha tableSymptom, cause and fix rows, such as variables inside a base layer, double hsl() wrapping and a missing theme inline block.
- Prevention checklistEight checks including no tailwind config file, correct hsl() wrappers and a tested theme provider.
- Dark mode test listCovers light, dark and system modes, persistence after refresh, contrast and flash of the wrong theme on load.
Frequently asked questions
What is the Tailwind Theme Builder skill?
It is a SKILL.md from jezweb that sets up a Tailwind v4 and shadcn/ui project with CSS variable theming and dark mode. It outputs configured CSS, a theme provider and a component library, and it carries a table of 18 known setup mistakes.
Does it work with Tailwind v3?
No. It is built around v4 and tells the agent to delete the v3 config file. Its migration guide covers the move from v3 to v4, but staying on v3 would conflict with several of its critical rules.
How do I install Tailwind Theme Builder?
Clone the jezweb repository and copy plugins/frontend/skills/tailwind-theme-builder into your agent's skills directory. Copy the whole folder so the asset files for CSS, Vite config and the theme provider come with SKILL.md.
Why does my Tailwind v4 dark mode not switch?
The skill lists two common causes: a nested theme block inside the dark class, and colour variables placed inside a base layer. It fixes both by keeping variables at root level and using one theme inline block.
Which agents support it?
The skill's own frontmatter sets compatibility to claude-code-only, and the repository describes itself as skills for Claude Code. Other agents may read the file, but the author does not claim support for them.
Which stack does it assume?
Vite, React, TypeScript and shadcn/ui, installed with pnpm in its examples. It uses the Tailwind Vite plugin rather than PostCSS, and the tw-animate-css package because it calls tailwindcss-animate deprecated for v4.
Can it also build the component library?
It runs the shadcn init and adds a dropdown menu for the mode toggle. For design rules and pattern recipes beyond theming, look at a sibling skill such as tailwind design system.
Is it relevant to WordPress sites?
Not directly. It targets React and Vite apps. Tailwind users on WordPress can still read its token rules, but the setup steps and files do not apply to a WordPress theme.


