/caddis-extras:design-mdfrom caddis-extras
Google's DESIGN.md spec for describing a visual identity to coding agents: YAML tokens, Markdown rationale, CLI for WCAG checks and DTCG/Tailwind export. Use for agent-readable design system docs.
Ships in caddis-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Google's open spec (Apache-2.0) for writing visual identities as structured files that coding agents can consume. Combines machine-readable YAML tokens with human-readable Markdown rationale.
Not the same as design-system-tokens: that skill covers our internal three-layer token architecture (primitive→semantic→component) for building actual CSS systems. design-md is a specification format — a document you write to describe a brand to an agent, with a CLI for validation and export.
Use popular-web-designs or warm-editorial-ui instead for one-off prototypes or visual inspiration.
DESIGN.md
Single file. YAML front matter (tokens) + Markdown body (rationale).
---
version: alpha
name: "Brand Name"
description: "One-line description of the visual identity"
colors:
primary: "#6366f1"
primary-hover: "#4f46e5"
background: "#ffffff"
surface: "#f8fafc"
text: "#0f172a"
text-secondary: "#64748b"
border: "#e2e8f0"
success: "#10b981"
warning: "#f59e0b"
danger: "#ef4444"
typography:
font-heading: "Inter"
font-body: "Inter"
font-mono: "JetBrains Mono"
size-xs: "0.75rem"
size-sm: "0.875rem"
size-base: "1rem"
size-lg: "1.125rem"
size-xl: "1.25rem"
size-2xl: "1.5rem"
size-3xl: "1.875rem"
size-4xl: "2.25rem"
spacing:
xs: "0.25rem"
sm: "0.5rem"
md: "1rem"
lg: "1.5rem"
xl: "2rem"
2xl: "3rem"
rounded:
sm: "0.25rem"
md: "0.375rem"
lg: "0.5rem"
xl: "0.75rem"
full: "9999px"
---
## Overview
One paragraph: brand personality, target audience, emotional goal.
## Colors
Why each color was chosen. Contrast ratios for key pairs. Light/dark mode notes.
## Typography
Font selection rationale. Hierarchy explanation. When to use heading vs body.
## Layout
Grid system. Max content width. Whitespace philosophy.
## Elevation & Depth
Shadow system. Z-index scale. When to use each elevation level.
## Shapes
Border-radius philosophy. When to use rounded vs sharp.
## Components
Key component decisions. Button variants. Card patterns. Form style.
## Do's and Don'ts
Concrete usage rules. What breaks the brand. Common mistakes.
Use dotted paths to reference other tokens (single source of truth):
colors:
primary: "#6366f1"
button-bg: "{colors.primary}" # references primary
button-hover: "{colors.primary-hover}"
# ✓ Correct
button-primary-bg: "#6366f1"
button-primary-hover-bg: "#4f46e5"
button-secondary-bg: "transparent"
# ✗ Wrong (no nesting)
button:
primary:
bg: "#6366f1"
# which YAML treats as comments if unquoted)margin-top: "-0.5rem" not margin-top: -0.5remalpha — the schema may evolve# Install (one-time)
npx @google/design.md --help
# Validate structure and WCAG contrast
npx @google/design.md validate DESIGN.md
# Compare two versions (detect regressions)
npx @google/design.md diff DESIGN.md DESIGN.v2.md
# Export to Tailwind theme config
npx @google/design.md export --format tailwind DESIGN.md > tailwind-theme.json
# Export to W3C DTCG format
npx @google/design.md export --format dtcg DESIGN.md > tokens.json
DESIGN.md lives in the repo root or docs/DESIGN.md, use popular-web-designs for inspiration on how real brands apply similar systemsdesign-system-tokens when you need to implement the spec as actual CSS custom propertieswarm-editorial-ui when the project is your organization's internal app family — it already has a complete DESIGN.md-compatible token setWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails./algorithmic-artGenerative and algorithmic art with p5.js: flow fields, particle systems, animations, WebGL, audio-reactive visuals; exports HTML, PNG, GIF, MP4, SVG. Use for creative coding or any p5.js visual./anchor-reviewSingle-model adversarial review technique — 3-lens analysis with confidence scoring and self-challenge/api-client-patternsTyped client-side API consumption: fetch wrappers, zod validation, auth injection, TanStack Query (useQuery, useMutation, optimistic updates), tRPC, OpenAPI codegen, pagination. Use when consuming REST or tRPC APIs.