DESIGN.md Specification
Give coding agents a persistent design-system brief built from exact tokens and human-readable rationale.
- Source repo
- google-labs-code/design.md
- Stars
- ★ 29k
- Last updated
- 15d ago 0.4.0
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 63/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A design-system team wants exact tokens and the reasoning behind its visual decisions stored in one version-controlled artifact.
- Not a fit if
- Teams that need a stable, finalized format spec; DESIGN.md is still alpha
- Environments without public npm registry access or with unsynced mirrors
- Teams expecting built-in model or IDE integration; you must wire it in yourself
- Website
- stitch.withgoogle.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-18latest release 0.4.0 (2026-07-27)+26.3 ★/day over 7 days
- Source review
- 63/100 · Some gaps
What does this agent do, and when should you use it?
DESIGN.md is a visual-identity description format for coding agents, not a standalone AI agent. Each file combines YAML front matter for colors, typography, radii, spacing, and component tokens with Markdown sections explaining the design rationale. The @google/design.md CLI exposes lint, diff, export, and spec commands and emits machine-actionable JSON by default. Its linter checks issues such as broken references, WCAG contrast, orphaned tokens, and section ordering, while diff detects token changes and finding regressions. Exporters target Tailwind v3 JSON, Tailwind v4 CSS, and the W3C DTCG format, and a TypeScript linter API is available through @google/design.md/linter. It suits teams that want a version-controlled design brief shared with coding workflows, provided they can absorb changes while the format remains at alpha status.
The tool reads a local DESIGN.md file or standard input, parsing its YAML token layer and ordered Markdown rationale sections. lint runs eleven rules and returns a report containing findings, summary, and the parsed designSystem; it exits with code 1 when errors exist. diff compares two DESIGN.md files, reports added, removed, and modified tokens across colors, typography, rounded, spacing, and components, and flags a regression when errors or warnings increase. export emits json-tailwind, css-tailwind, tailwind, or dtcg, while spec prints the format specification and optionally its active lint-rule table. TypeScript applications can also import lint from @google/design.md/linter and pass it a Markdown string.
- A design-system team wants exact tokens and the reasoning behind its visual decisions stored in one version-controlled artifact.
- A frontend team needs a CI check for broken token references, structural errors, and component text contrast in DESIGN.md files.
- A reviewer comparing two design-system revisions needs a structured account of token changes and any increase in lint findings.
- A Tailwind maintainer wants to generate either a v3
theme.extendJSON object or a v4@themeCSS block from one source. - A team using the W3C Design Tokens Format Module needs to export its DESIGN.md values as DTCG
tokens.json. - A TypeScript tool author wants to call
lint(markdownString)and consume a parsed design-system report programmatically.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install @google/design.mdnpm install "@google/design.md"npx @google/design.md lint DESIGN.mdnpx @google/design.md diff DESIGN.md DESIGN-v2.md
- Config files
tailwind.theme.jsontokens.json- Install notes cover
- Windows
How do you install or deploy this agent?
A command-line environment capable of running npm or npx is required; the source does not specify a Node.js version or any credentials. Install with npm install @google/design.md. On Windows shells that treat @ specially, use npm install "@google/design.md". You can also run npx @google/design.md lint DESIGN.md without a prior install; this resolves the package from the public npm registry and therefore requires network access. If npm reports ENOVERSIONS, run npm config get registry; a normal internet installation should use https://registry.npmjs.org/.
How do you use this agent?
Create a DESIGN.md containing YAML front matter followed by the supported Markdown rationale sections. Run the first validation with npx @google/design.md lint DESIGN.md, or pipe input with cat DESIGN.md | npx @google/design.md lint -. Compare revisions using npx @google/design.md diff DESIGN.md DESIGN-v2.md. Export with npx @google/design.md export --format json-tailwind DESIGN.md > tailwind.theme.json, npx @google/design.md export --format css-tailwind DESIGN.md > theme.css, or npx @google/design.md export --format dtcg DESIGN.md > tokens.json. On Windows/PowerShell, where the .md executable name may collide with Markdown file associations, use npx -p @google/design.md designmd lint DESIGN.md; package.json scripts should likewise call the designmd alias.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- One Markdown artifact keeps machine-readable token values beside the human rationale that explains how to apply them.
- Structured JSON output and documented exit codes make lint and regression results suitable for automated workflows.
- Eleven explicit rules cover reference resolution, WCAG AA contrast, section ordering, unused colors, and likely schema-key mistakes.
- A single source exports to Tailwind v3, Tailwind v4, and W3C DTCG formats and is also accessible through a TypeScript linter API.
- Unknown prose sections and valid custom token names are preserved or accepted, leaving room for extensions.
- The specification, token schema, and CLI are still alpha and under active development, creating migration risk for early adopters.
- Distribution depends on npm/npx; direct npx use or initial installation needs registry access, and corporate mirrors can trigger
ENOVERSIONS. - The
design.mdbinary can collide with Windows Markdown file associations, requiring users and package scripts to use thedesignmdalias. - A successful export does not fail because of lint findings in the source, so quality gating requires a separate
lintinvocation. - No native ChatGPT, Codex, Claude, or model-API integration is documented; adopters must arrange for their coding workflow to read and apply the file.
How does this agent compare with similar options?
Unlike a token-only interchange file, DESIGN.md places design rationale in Markdown alongside its normative token values, while still exporting to the W3C Design Tokens Format Module's DTCG JSON. It is not a replacement for Tailwind at runtime; it acts as an upstream design source that can emit Tailwind v3 theme.extend JSON or Tailwind v4 @theme CSS.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| DESIGN.md Specification This agent | 63 · Some gaps | CLIFree | ★ 29k | 15d ago | TypeScript | — |
| XIAS — UX/UI Agent Skills | 74 · Some gaps | Agent plugin / skillFree + model costs | ★ 3.3k | 15d ago | JavaScript | Claude Code |
| Dembrandt UX Skills | 60 · Some gaps | Agent plugin / skillFree | ★ 251 | 4d ago | JavaScript | Claude Code |
| Open Design | 70 · Some gaps | Desktop appFree + model costs | ★ 111k | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
The CLI is described as local lint, diff, export, and spec operations on DESIGN.md; the README also explains stdin and output formats. No credential access or external write path appears in the supplied source, supporting higher least-privilege, data-flow transparency, and external-effects scores. Sensitive design data, pre-change confirmation, and recovery are not addressed, and dependency-security evidence is limited. Copyright and the Apache-2.0 file support attribution, while publisher identity remains unknown.
The README gives concrete commands, options, exit codes, rules, and expected JSON shapes, and the listed CLI entrypoint agrees with the documented subcommands. Scores are reduced because only some dependencies are pinned and examples do not cover error output or recovery guidance; the sample is insufficient to verify every rule implementation.
The format targets coding-agent design-system work and documents lint, diff, export, and spec-injection use cases, along with format and export boundaries. Scores are reduced because trigger guidance and environment-specific agent guidance are limited; cross-platform advice mainly covers Windows command invocation.
The README is well organized and includes specification, installation and usage, examples, rules, interoperability, and an alpha-status note; LICENSE identifies Apache-2.0. Scores are reduced because package and alpha version references do not provide a full change history, maintenance responsibility and update path are unclear, and FAQ-like troubleshooting is mostly limited to npm ENOVERSIONS.
Structured JSON lint findings, token diff reports, multiple export formats, and spec output for agent prompts directly support design-system review and migration, with outputs suited to machine consumption. Scores are reduced because the material does not quantify gains over manual review or maintenance cost, and the format is alpha.
The README specifies schema, rule severities, command options, exit codes, and sample output; the entrypoint lists corresponding subcommands, while the workflow describes build and smoke steps, providing some corroboration. Scores are reduced because sample results were not execution-verified in this static review, the supplied excerpts cannot verify each implementation detail, and product claims are not always explicitly separated from demonstrated evidence.
- The format is still marked alpha, and its specification, token schema, and CLI may change; check the current version against migration needs before adoption.
- This assessment uses only the supplied static excerpts; commands, builds, and tests were not run, so dependency risks and actual failure behavior are not established.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Bumps version from 0.3.0 to 0.4.0. All changes since 0.3.0: Bug Fixes - Missing design files fail gracefully instead of throwing a stack trace. Reading a non-existent or unreadable file now outputs a clean error message and structured JSON with exit code 2. (#123, #145, @rmyndharis, @Emp1500) Fixes #132. - Successful exports always return exit code 0. Export command exit codes are now decoupled from source document linter warnings or errors, ensuring valid serialized builds pass pipeline gates. (#126, #152, @rmyndharis, @arpitjain099) …View on GitHub ↗ -
Release notes excerpt
Bumps version from 0.2.0 to 0.3.0. All changes since 0.2.0: Bug Fixes - Nested token declarations no longer crash the linter. Nested YAML like colors: { background: { light: '#fff' } } is now parsed correctly with dot-separated paths (e.g. colors.background.light). (#103, @vikks) - Non-string YAML values no longer crash the linter. Spacing values like unit: 8 (parsed as a number by YAML) previously caused raw.match is not a function. The type guard in parseDimensionParts now handles this. (#79, @SyedaQurratAI) Fixes #106. …View on GitHub ↗ -
Release notes excerpt
Changelog [0.2.0] — 2026-05-26 Added - Tailwind CSS v4 export — New --format css-tailwind emits a CSS @theme { ... } block using Tailwind v4's native CSS-variable token namespaces (--color-*, --font-*, --text-*, --leading-*, --tracking-*, --font-weight-*, --radius-*, --spacing-*). ([#45](https://github.com/google-labs-code/design.md/pull/45)) — by [@sbrsubuvga](https://github.com/sbrsubuvga) …View on GitHub ↗
FAQ
Is this itself an AI agent that performs design work?
Does it require an API key or paid model service?
How do lint findings affect automation?
lint exits with code 1 when errors are present and 0 otherwise, so warnings alone do not produce its failure exit code. diff exits with code 1 when the later file has more errors or warnings.Can a DESIGN.md contain custom content?
Will export refuse a file that has lint findings?
lint separately when those findings must gate the workflow.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.