Skill library

Agent skill Frontend

Tailwind Design System

Establish reusable styling and design decisions across web screens.

  • Design systems
  • shadcn/ui

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-typescript/skills/tailwind-design-system --skill tailwind-design-system --agent claude-code --yes

Check this file in your project.claude/skills/tailwind-design-system/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/giuseppe-trisciuoglio/developer-kit/tree/main/plugins/developer-kit-typescript/skills/tailwind-design-system --skill tailwind-design-system

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring an existing Tailwind CSS v4.1+ project configured for shadcn/ui and its generated Button source. The fixture used shadcn 4.23.1 and Tailwind CSS 4.3.5.

View operation manual

What this skill helps with

  • Establish reusable styling and design decisions across web screens.

Good for

  • Design tokens and shared styles
Skill name
tailwind-design-system
Scenario
Give a shared shadcn button a product-level API
Deliverable
A documented shared wrapper that renders theme tokens and forwards intended input behavior.
Skill name
tailwind-design-system

Define a component task with an observable result

A request with an unclear outcome

Copy any button variation into each route stylesheet.

Duplication breaks the role contract and makes keyboard or dark-mode changes inconsistent.

A workflow with observable results

  1. Trace the primitive and the token chain
  2. Wrap the existing Button around the semantic role
  3. Verify the wrapper in two themes and routes

Tailwind CSS & shadcn/ui Design System operation manual

Keep shadcn as the base primitive and enforce a named semantic role in a wrapper.

Replace the bracketed details with your own project and target.

  1. Trace the primitive and the token chain

    Identify current shadcn source and consumers before proposing an API.

    Prompt · Step 1
    Use the Giuseppe Trisciuoglio tailwind-design-system skill to inspect [shared button]. Locate the installed Button source, components.json, active v4 stylesheet and current semantic color pair. List caller needs and choose which base props the wrapper should expose. Keep the project's established v4 integration and flag any missing component before installing.
  2. Wrap the existing Button around the semantic role

    Reuse the primitive and choose the smallest public prop surface.

    Prompt · Step 2
    Use the Giuseppe Trisciuoglio tailwind-design-system skill to implement [approved shared action wrapper]. Build on the current shadcn Button, preserving native type, disabled state and event forwarding. Fix the approved variant or map a short typed role list to it. Use existing semantic aliases for the theme pair and document two project call sites.
  3. Verify the wrapper in two themes and routes

    Build and test behavior at the callers rather than assuming inherited props work.

    • Both callers use the same primitive wrapper and semantic role.
    • The wrapper preserves the intentional native button behavior.
    Prompt · Step 3
    Use the Giuseppe Trisciuoglio tailwind-design-system skill to verify [wrapped button and call sites]. Build with the actual Tailwind v4 pipeline. Inspect computed surface and text colors in light and dark, then verify keyboard activation and the expected button type in a form and outside a form. Return the wrapper API and the route-level check results.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

A caller bypasses the shared variantReference
Command or reference
SKILL.md · Step 4: Wrap shadcn/ui Components
Examples
Expose only props that fit the role and reuse the base component's behavior.
The guide's sample setup does not match the appReference
Command or reference
Official Tailwind v4 upgrade guide
Examples
Use the configured bundler integration and the v4 CSS import for the actual app.

Tailwind CSS & shadcn/ui Design System troubleshooting

Should I run @tailwindcss/vite as an init CLI?

Install it as a Vite plugin when Vite is your bundler. Tailwind v4 uses @import "tailwindcss" in its CSS entry and the appropriate integration for the project.