Skip to content
Back to skills

Tailwind Design System

ASecurity

Sets up Tailwind theme tokens, component classes and typed variants so a UI stays consistent without piles of repeated utility strings.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsreactvue

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill tailwind-design-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tailwind Design System?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tailwind Design System
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-tailwind-design-system/badge)](https://www.skillsdirectory.com/skills/workspace-templates-tailwind-design-system)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tailwind-design-system
description: Sets up Tailwind theme tokens, component classes and typed variants so a UI stays consistent without piles of repeated utility strings.
---

# Tailwind design system

Make the design decisions explicit, then make the code follow them.

## Steps

1. Audit first. Search the markup for arbitrary values (`bg-[#1a2b3c]`, `w-[13px]`) and list the most used raw colors, font sizes and radii. Show the counts before changing anything.
2. Define tokens in the theme, not in components. Tailwind v4: `@theme { --color-brand-500: ...; --radius-card: ...; }` in the main CSS file. v3: `theme.extend` in the config. Name tokens by role (`surface`, `text-muted`, `brand`), not by value (`blue-dark`).
3. Support dark mode through semantic variables that switch under `.dark` or `prefers-color-scheme`, so components never write `dark:` pairs for ordinary colors.
4. Extract a component only when a pattern appears three or more times. Prefer a framework component (React, Vue, Svelte) over `@apply`.
5. Build variants with a typed helper such as `cva` (class-variance-authority) and merge overrides with `tailwind-merge`. Variants are named by intent: `intent: primary | quiet | danger`, `size: sm | md`.
6. Replace the raw values you found in step 1 with tokens, one file group at a time.

## Rules

- No new arbitrary values without a comment saying why a token does not fit.
- Never build class names by string concatenation: Tailwind cannot see a class that only exists at runtime. Map each option to a full class string.
- Keep focus rings and contrast intact: body text at least 4.5:1.

## Report

Tokens added, components extracted, raw values removed (before and after counts).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.