tailwind-design-system · git:20261120.76a1b83 · 2026-11-20 · sha256 781a36afb9354cd0

tailwind-design-system git:20261120.76a1b83A

Immutable. This exact content never changes and is served at /api/v1/blob/781a36afb9354cd0.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_56us45l4hwlpookn/781a36afb9354cd0965b1bd686424b9ce500f6d1add905193a964ab205017280.json

Then /plugin install tailwind-design-system@markdownregistry-56us45l4hwlpookn in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
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).