DESIGN.md: A format spec for describing visual identity to coding agents

✍️ OpenClawRadar📅 Published: April 24, 2026🔗 Source
DESIGN.md: A format spec for describing visual identity to coding agents
Ad

Google Labs released DESIGN.md, a format specification for describing a visual identity to coding agents. The file combines machine-readable design tokens (YAML front matter) with human-readable design rationale (markdown prose). Tokens give agents exact values; prose explains why those values exist and how to apply them.

Format Overview

A DESIGN.md file has two layers delimited by --- fences at the top: YAML front matter for tokens and a markdown body with ## sections. Example excerpt:

---
name: "Heritage"
colors:
  primary: "#1A1C1E"
  secondary: "#6C7278"
  tertiary: "#B8422E"
  neutral: "#F7F5F2"
typography:
  h1:
    fontFamily: "Public Sans"
    fontSize: "3rem"
  body-md:
    fontFamily: "Public Sans"
    fontSize: "1rem"
  label-caps:
    fontFamily: "Space Grotesk"
    fontSize: "0.75rem"
rounded:
  sm: "4px"
  md: "8px"
spacing:
  sm: "8px"
  md: "16px"

The tokens are the normative values. Prose provides context for application.

Key Features

  • Token types: Colors (hex sRGB), Typography objects (fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, fontFeature, fontVariation), Dimensions (number+unit), Token references ({path.to.token}).
  • Components: Map a name to sub-token properties, e.g. components.button-primary.backgroundColor: "{colors.tertiary}".
  • Section order (optional but enforced): Overview, Colors, Typography, Layout & Spacing, Elevation & Depth, Shapes, Components, Do's and Don'ts.
Ad

CLI Tools

Validate a DESIGN.md with the linter:

npx @google/design.md lint DESIGN.md
{
  "findings": [
    {
      "severity": "warning",
      "path": "components.button-primary",
      "message": "textColor (#ffffff) on backgroundColor (#1A1C1E) has contrast ratio 15.42:1 — passes WCAG AA."
    }
  ],
  "summary": { "errors": 0, "warnings": 1, "info": 1 }
}

Detect regressions between versions:

npx @google/design.md diff DESIGN.md DESIGN-v2.md
{
  "tokens": {
    "colors": {
      "added": ["accent"],
      "removed": [],
      "modified": ["tertiary"]
    },
    "typography": { "added": [], "removed": [], "modified": [] }
  },
  "regression": false
}

Use Case

An agent reading the Heritage example will produce a UI with deep ink headlines in Public Sans, a warm limestone background (#F7F5F2), and Boston Clay (#B8422E) call-to-action buttons — all from a single file.

📖 Read the full source: HN AI Agents

Ad

👀 See Also

Bernstein: A Kubernetes-like orchestrator for AI coding agents with verification and model policies
Tools

Bernstein: A Kubernetes-like orchestrator for AI coding agents with verification and model policies

Bernstein is an orchestrator for AI coding agents that includes independent verification of agent outputs, model policy controls, 13 agent adapters, and deterministic Python-based scheduling. The project has 5000+ tests and features like circuit breakers, cost anomaly detection, and PII scanning.

OpenClawRadar
OpenBridge: Free Open-Source Remote Control for Claude Code via Slack/Discord
Tools

OpenBridge: Free Open-Source Remote Control for Claude Code via Slack/Discord

OpenBridge is a free, open-source tool that lets you control Claude Code from Slack or Discord, organizing projects as channels and conversations as threads. It runs locally or on a VPS and works with existing Claude Code/Codex subscriptions without extra API fees.

OpenClawRadar
Claudeck: Browser UI for Claude Code with Agents, Cost Tracking, and Plugin System
Tools

Claudeck: Browser UI for Claude Code with Agents, Cost Tracking, and Plugin System

Claudeck is a browser-based UI that wraps the Claude Code SDK, featuring autonomous agent orchestration, cost tracking, git worktree isolation, persistent memory, and a plugin system. Install with npx claudeck@latest.

OpenClawRadar
HN SOTA: Tracking Coding Model Popularity via Hacker News Comments
Tools

HN SOTA: Tracking Coding Model Popularity via Hacker News Comments

HN SOTA is a daily updated pipeline that scrapes Hacker News comments, uses Gemini to identify coding models from the OpenRouter list, and logs sentiment per mention into a public Google Sheet. The top 10 models by mentions over a 10-day trailing window are displayed.

OpenClawRadar