Agent skill

Tailwind v4 and shadcn/ui Skill: Theme Setup Without Breakage

The Tailwind v4 shadcn skill walks an AI coding agent through a Vite and React setup, CSS variable theming, dark mode, plugin syntax and fixes for common errors.

Install
/plugin marketplace add https://github.com/secondsky/claude-skills
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

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

  1. Declare colour variables on the root and dark selectors, wrapped in hsl.
  2. Map them with the theme inline block so utility classes exist.
  3. Apply base styles that reference the variables without wrapping again.
  4. 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.