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.