design-md

Author, lint, and export Google's DESIGN.md design token specification files.

2|Updated Oct 20, 2017
One-click install
npx skills add https://github.com/rbudiharso/dotfiles --skill design-md-rbudiharso
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-md
Source: https://github.com/rbudiharso/dotfiles/tree/main/hermes/.hermes/skills/creative/design-md
Command: npx skills add https://github.com/rbudiharso/dotfiles --skill design-md-rbudiharso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @google/design.md.

What problem does it solve? Teams struggle to keep visual identity consistent across projects and coding agents. This Skill creates and validates DESIGN.md files — Google's open spec that combines machine-readable design tokens with human-readable rationale — so colors, typography, and components stay consistent and accessible. ## Core Features & Use Cases - Authoring: Generate a complete DESIGN.md with YAML token frontmatter (colors, typography, rounded, spacing, components) and canonical Markdown sections. - Linting & Validation: Run the @google/design.md CLI to check broken token references, WCAG AA contrast ratios, section order, and orphaned tokens. - Exporting: Convert tokens to Tailwind v3 JSON, Tailwind v4 CSS @theme blocks, or W3C DTCG JSON for use in build pipelines. - Use Case: A user pastes their brand palette and asks for a design system. The Skill writes DESIGN.md, lints it for contrast failures, and exports tailwind.theme.json for their existing project. ## Quick Start Create a DESIGN.md design token spec for my brand with a blue accent color, then lint it and export it to Tailwind format.

Frequently Asked Questions about design-md

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a DESIGN.md design token file?▼

Write a Markdown file with YAML frontmatter containing version, name, colors, typography, rounded, spacing, and components tokens, followed by canonical sections like Overview, Colors, and Components. Use token references like {colors.primary} in component definitions instead of repeating hex values.

How do I validate design tokens for WCAG contrast?▼

Run npx -y @google/design.md lint DESIGN.md to check component textColor against backgroundColor for WCAG AA 4.5:1 contrast. The lint command also catches broken token references, missing primary colors, and out-of-order sections.

Can I export DESIGN.md tokens to Tailwind?▼

Yes, the CLI exports to Tailwind v3 theme JSON via --format json-tailwind and to a Tailwind v4 CSS @theme block via --format css-tailwind. It also supports W3C DTCG JSON via --format dtcg for cross-tool token pipelines.

Why does my DESIGN.md lint fail on Windows?▼

On Windows the design.md bin name collides with the .md file association, causing a silent no-op or opening the file in an editor. Use the dot-free alias instead: npx -y -p @google/design.md designmd lint DESIGN.md.

What are common DESIGN.md authoring mistakes?▼

Common pitfalls include nesting component variants instead of using sibling keys like button-primary-hover, leaving hex colors unquoted so YAML misparses them, and typo-ing typography sub-properties which are silently dropped from exports. Token references must use full dotted paths like {colors.primary}.