Agent skill Frontend
Tailwind Design System
Establish reusable styling and design decisions across web screens.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add sickn33/agentic-awesome-skills --skill tailwind-design-system --agent claude-code --yesCheck this file in your project.claude/skills/tailwind-design-system/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add sickn33/agentic-awesome-skills --skill tailwind-design-systemSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Detect the existing Tailwind major. The installed playbook's setup is v3. The fixture used Tailwind 3.4.19 and class-variance-authority 0.7.1.
View operation manualWhat 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
- Standardize action button variants in a v3 system
- Deliverable
- One button variant contract with compiled light, dark, focus and disabled states.
- Skill name
tailwind-design-system- Repository
sickn33/agentic-awesome-skills
Define a component task with an observable result
A request with an unclear outcome
Copy the v3 playbook config into our v4 stylesheet and invent a class per caller.
Mixing build styles and one-off variants makes the public component behavior hard to predict.
A workflow with observable results
- Locate the variant and token boundaries
- Implement the variant and size contract
- Check variant output in real button states
Tailwind Design System operation manual
Connect a typed CVA variant map to semantic tokens owned at the system level.
Replace the bracketed details with your own project and target.
Locate the variant and token boundaries
Read the active compiler and classify primitive, semantic and component roles.
Prompt · Step 1Use the sickn33 tailwind-design-system skill and read resources/implementation-playbook.md for [existing action buttons]. Verify the project Tailwind major and find its token declarations and active entry. Map current primary and destructive pairs to semantic roles and list supported sizes and states. Preserve the current Tailwind major and identify where a typed variant map fits.Implement the variant and size contract
Keep appearance, focus and native disabled behavior coherent.
Prompt · Step 2Use the sickn33 tailwind-design-system skill to implement [approved button variant map]. Use class-variance-authority or the existing equivalent to define base, variants, sizes and defaults from the project's semantic utilities. Keep the native button type and disabled behavior, with a visible focus state. Follow the current major's token syntax. Show the typed props and in-project call sites.Check variant output in real button states
Build the active stylesheet and inspect actual colors and focus.
- The existing compiler emits complete, readable variant utilities.
- Semantic colors and native behavior are observable for each supported state.
Prompt · Step 3Use the sickn33 tailwind-design-system skill to verify [button variants] on the local preview. Run the current CSS build, inspect the emitted default and destructive utilities and compare their computed pairs in both themes. Check keyboard focus, default size and larger size, and whether the native disabled button is excluded from Tab. Return a compact variant matrix with observed values.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
Primary and destructive colors leak between variantsReference
- Command or reference
resources/implementation-playbook.md · CVA Components- Examples
- Track each variant to its own semantic foreground and background pair.
The project uses v4 but the example uses Tailwind directivesReference
- Command or reference
resources/implementation-playbook.md · v3-style configuration- Examples
- Apply the component architecture using the current compiler's version-specific setup.
A v3 dark selector is missing from outputReference
- Command or reference
Tailwind v3 content configuration- Examples
- Check that an actual source uses the runtime theme class. In the v3 fixture, the `.dark` rule in the base layer was absent until `dark` was explicitly included.
Tailwind Design System troubleshooting
Should the v3 playbook replace an existing v4 pipeline?
Use the playbook to inform token and variant decisions. Match compiler configuration and dependencies to the project's active Tailwind major.