# google-labs-code/design.md

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/google-labs-code-design-md).**

16,128 stars · 1,515 forks · TypeScript · Apache-2.0

## Links

- GitHub: https://github.com/google-labs-code/design.md
- Homepage: https://stitch.withgoogle.com/docs/design-md/specification
- awesome-repositories: https://awesome-repositories.com/repository/google-labs-code-design-md.md

## Description

design.md is a design system specification format and toolchain that defines a visual identity through structured, machine-readable design tokens embedded in a human-readable Markdown document. It combines exact token values with prose explanations of design intent, enabling coding agents to consistently apply brand styles across a project while keeping the rationale accessible to human designers.

The project provides a linter that validates design specification files for structural correctness, broken token references, and WCAG color contrast compliance, outputting structured findings. It also includes a diff tool that compares two design specification files and reports token-level additions, removals, and modifications to detect visual regressions. Design tokens can be exported to Tailwind CSS configuration files (v3 JSON or v4 CSS theme blocks) and to the W3C Design Tokens Community Group JSON format for cross-tool interoperability.

The specification format itself defines design tokens with typed values, descriptions, and rationale in a YAML frontmatter block, with support for cross-token reference resolution to ensure consistency. The toolchain covers the full lifecycle of design token management—storing, validating, diffing, and exporting—to maintain a single source of truth for colors, typography, and spacing.

## Tags

### Software Engineering & Architecture

- [Structured Token Specifications](https://awesome-repositories.com/f/software-engineering-architecture/design-token-architectures/structured-token-specifications.md) — Defines a structured specification format for design tokens with typed values, descriptions, and rationale in YAML frontmatter.

### Artificial Intelligence & ML

- [Visual Identity Descriptions](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-skill-extensions/machine-readable-capability-exposure/visual-identity-descriptions.md) — Combines machine-readable design tokens with human-readable rationale so coding agents understand both exact values and design intent. ([source](https://cdn.jsdelivr.net/gh/google-labs-code/design.md@main/README.md))

### Part of an Awesome List

- [Design Token Exporters](https://awesome-repositories.com/f/awesome-lists/data/data-export/json-exports/design-token-exporters.md) — Converts design tokens into Tailwind CSS configuration files and W3C DTCG JSON format for cross-tool interoperability.
- [Design Specification Validations](https://awesome-repositories.com/f/awesome-lists/devtools/design-and-development-assets/design-specification-validations.md) — Lints a DESIGN.md file for structural correctness, broken token references, and WCAG contrast compliance. ([source](https://cdn.jsdelivr.net/gh/google-labs-code/design.md@main/README.md))
- [Design Token Management](https://awesome-repositories.com/f/awesome-lists/devtools/design-token-management.md) — Stores, validates, and diffs design tokens to maintain a single source of truth for colors, typography, and spacing.

### Development Tools & Productivity

- [Design Specification Validators](https://awesome-repositories.com/f/development-tools-productivity/configuration-file-validators/structural-file-validators/design-specification-validators.md) — Validates DESIGN.md files against a schema for required fields, token types, and structural correctness.
- [Design Intent Wrappers](https://awesome-repositories.com/f/development-tools-productivity/lock-files/human-readable/design-intent-wrappers.md) — Wraps design token definitions in prose sections that explain design intent and usage guidelines for human readers.
- [Design Specification Differs](https://awesome-repositories.com/f/development-tools-productivity/visual-design-tools/design-variation-tools/design-specification-differs.md) — Compares two design specification files and reports token-level changes to detect visual regressions.

### Testing & Quality Assurance

- [Design Token Diff Detections](https://awesome-repositories.com/f/testing-quality-assurance/regression-testing-suites/expectation-based-regression-detection/design-token-diff-detections.md) — Ships a diff tool that compares two design specification files and reports token-level changes to detect visual regressions.

### User Interface & Experience

- [WCAG Contrast Checkers](https://awesome-repositories.com/f/user-interface-experience/contrast-validators/wcag-contrast-checkers.md) — Checks color token pairs against WCAG contrast ratio thresholds and reports failures with structured findings.
- [Token Configuration Exports](https://awesome-repositories.com/f/user-interface-experience/css-component-libraries/tailwind-css-integration/token-configuration-exports.md) — Converts design tokens into Tailwind CSS configuration files for v3 JSON or v4 CSS theme blocks.
- [Design Token Aliasing](https://awesome-repositories.com/f/user-interface-experience/design-token-aliasing.md) — Resolves cross-token references within the specification to ensure consistency and detect broken links.
- [Design Token Interoperability](https://awesome-repositories.com/f/user-interface-experience/design-token-interoperability.md) — Exports design tokens to the W3C Design Tokens Community Group JSON format for cross-tool interoperability.
- [Exporters](https://awesome-repositories.com/f/user-interface-experience/design-token-management/design-tokens/exporters.md) — Converts design tokens into Tailwind CSS configs and W3C DTCG JSON for cross-platform use.
- [Multi-Format Exporters](https://awesome-repositories.com/f/user-interface-experience/design-token-management/design-tokens/multi-format-exporters.md) — Converts design tokens into Tailwind CSS configuration files and W3C DTCG JSON format for cross-tool interoperability. ([source](https://cdn.jsdelivr.net/gh/google-labs-code/design.md@main/README.md))
- [Specifications](https://awesome-repositories.com/f/user-interface-experience/design-token-management/design-tokens/specifications.md) — Defines a machine-readable specification format for design tokens with typed values and rationale.
- [Token-Level Diffing](https://awesome-repositories.com/f/user-interface-experience/design-versioning-systems/token-level-diffing.md) — Compares two design specification files and reports token-level additions, removals, and modifications to detect regressions. ([source](https://cdn.jsdelivr.net/gh/google-labs-code/design.md@main/README.md))
- [Token-Level Version Diffing](https://awesome-repositories.com/f/user-interface-experience/design-versioning-systems/token-level-version-diffing.md) — Compares two design specification files to detect token-level additions, removals, and modifications for regression checking.
- [Agent-Oriented Specifications](https://awesome-repositories.com/f/user-interface-experience/ui-architecture/design-utilities/design-system-specifications/agent-oriented-specifications.md) — Defines a visual identity with structured tokens and rationale so coding agents can consistently apply brand styles across a project.
- [Agent-Targeted Formats](https://awesome-repositories.com/f/user-interface-experience/ui-architecture/design-utilities/design-system-specifications/agent-targeted-formats.md) — Provides a structured format for describing visual identity to coding agents using design tokens and human-readable rationale.
- [Design Specification Linters](https://awesome-repositories.com/f/user-interface-experience/ui-design-linters/design-specification-linters.md) — Validates design specification files for structural correctness and WCAG contrast compliance.
