What is tailwind-v4-shadcn?
Tailwind v4 shadcn is a skill from secondsky for wiring Tailwind CSS v4 to shadcn/ui with Vite and React. It prescribes a four-step variable architecture, an empty Tailwind config entry, a theme provider, plugin directives, a setup checklist, troubleshooting notes and copyable template files.
It is a setup and repair recipe for one stack. Version 4 moved theming into CSS, and projects often break when older configuration habits carry over. The skill tells the agent exactly where each variable and directive belongs.
The four steps it enforces
- Declare colour variables on the root and dark selectors, wrapped in hsl.
- Map them with the theme inline block so utility classes exist.
- Apply base styles that reference the variables without wrapping again.
- Let the dark class swap values, with no paired dark variants for semantic colours.
When to reach for it
Best for
- A new Vite and React project adopting shadcn components.
- Debugging missing utilities, black or white colours and a theme toggle that does nothing.
- Setting foundations before using a component skill.
Not for
- Next.js, Vue or plain HTML projects, since the templates assume Vite and React.
- Broader token strategy across products, where a design system skill goes further.
Age and accuracy
The file is dated December 2025 and pins package ranges from that period. Its setup time and token savings figures are the author claims. Check rules such as avoiding the apply directive against current Tailwind documentation.
If the page you are building lives in WordPress rather than React, UiChemy Composer writes HTML, CSS and JS inside the page editor. Click Get Started on uichemy.com.
How to install Tailwind v4 and shadcn/ui Skill: Theme Setup Without Breakage
/plugin marketplace add https://github.com/secondsky/claude-skillsThe README says Cursor needs adaptation and points to another installer.Add the marketplace
Run the command above in Claude Code, as shown in the README.
Install the plugin
Run /plugin install tailwind-v4-shadcn@claude-skills.
Codex route
Run codex plugin marketplace add secondsky/claude-skills, then enable it from the plugins screen.
Name the skill
The file asks you to tell the agent to check it before starting setup.
Check that it loaded
Ask why bg-primary has no effect. The reply should check the inline theme mapping.
Key features
- Ordered quick startInstalls packages, configures the Vite plugin, edits components.json and removes the old config file.
- Theme variable patternKeeps colour definitions at root level and maps every one into Tailwind through an inline theme block.
- Dark mode providerSupplies a theme provider template with stored preference and a toggle step.
- Do and never listsStates hard rules such as using the Vite plugin and never double wrapping colour functions.
- Semantic status coloursDefines destructive, success, warning and info variables for consistent state styling.
- Symptom tableLinks visible faults to causes and fixes, from absent background utilities to failing builds.
- Plugin directive helpShows the CSS plugin directive for typography and forms, and the wrong forms to avoid.
- Templates and referencesShips six template files and deeper notes on migration, gotchas, plugins and dark mode.
Frequently asked questions
What is the tailwind-v4-shadcn skill?
It is a skill for setting up Tailwind CSS v4 with shadcn/ui on Vite and React. It covers variable theming, dark mode, component configuration, plugin syntax, frequent errors, templates and a checklist the agent can work through.
Why are my Tailwind v4 colours all black or white?
The skill lists double wrapping as the cause: variables already contain the hsl function, then base styles wrap them again. Reference the variable directly and confirm the root and dark definitions hold complete colour values.
Do I keep tailwind.config.ts with this skill?
No. The skill instructs you to delete it for theme colours and to leave the config entry in components.json empty. If your project depends on other JavaScript configuration, review that before letting the agent remove anything.
Does it help migrate from Tailwind v3?
It includes a migration guide reference covering changes and hard-coded colours moved into variables. Run the migration on a branch and compare screens, because the main file focuses on the target setup more than on every old option.
How do I install tailwind-v4-shadcn?
Add the secondsky marketplace in Claude Code and install the plugin by name. Codex CLI users can add the same repository as a marketplace. The README describes separate methods for tools without native marketplace support.
Are the package versions current?
Treat them as a snapshot. The file shows a last updated date in December 2025 with matching version ranges. Ask the agent to compare against your lock file and the official documentation, then run an interface review on the result.


