From c3c6deb6bfef5f6ceb540dfcb16b329a99d57ec3 Mon Sep 17 00:00:00 2001 From: Zach Shallbetter Date: Tue, 1 Dec 2026 16:01:19 -0800 Subject: [PATCH] docs(spec): clarify the role of YAML tokens [skip ci] --- README.md | 2 +- docs/spec.md | 2 +- packages/cli/src/linter/spec-gen/spec.mdx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 72dd934..92d18a9 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ A DESIGN.md file has two layers: 1. **YAML Design tokens** — Machine-readable design tokens, delimited by `---` fences at the top of the file or interleaved as fenced ` ```yaml ` code blocks within each `##` section. 2. **Markdown body** — Human-readable design rationale organized into `##` sections. -The tokens are the normative values. The prose provides context for how to apply them. +The YAML defines the values of tokens declared in DESIGN.md. The prose explains how to apply them and can point to implementation files using [external references](docs/spec.md#external-references). ### Token Schema diff --git a/docs/spec.md b/docs/spec.md index fd9ba1d..4d86ac3 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -5,7 +5,7 @@ DESIGN.md is a self-contained, plain-text representation of a design system. It defines the visual identity of a brand and product, thereby ensuring that these stylistic choices can be followed across design sessions and between different AI agents and tools. As a human-readable, open-format document, it serves as a living source of truth that both humans and AI can understand and refine. -A DESIGN.md file contains two parts: human-readable markdown prose and machine-readable YAML design tokens. The markdown body sections provide human-readable design rationale and guidance. Prose may use descriptive color names (e.g., "Midnight Forest Green") that correspond to systematic token names (e.g., `primary`). The tokens are the normative values; the prose provides context for how to apply them. +A DESIGN.md file contains two parts: human-readable markdown prose and machine-readable YAML design tokens. The markdown body sections provide human-readable design rationale and guidance. Prose may use descriptive color names (e.g., "Midnight Forest Green") that correspond to systematic token names (e.g., `primary`). The YAML defines the values of tokens declared in DESIGN.md. These values describe the design system. The prose explains how to apply them and can point to implementation files using [external references](#external-references). # Design Tokens diff --git a/packages/cli/src/linter/spec-gen/spec.mdx b/packages/cli/src/linter/spec-gen/spec.mdx index ec38e01..01b44e2 100644 --- a/packages/cli/src/linter/spec-gen/spec.mdx +++ b/packages/cli/src/linter/spec-gen/spec.mdx @@ -5,7 +5,7 @@ import { frontmatterExample, interleavedExample, colorsExample, typographyExampl DESIGN.md is a self-contained, plain-text representation of a design system. It defines the visual identity of a brand and product, thereby ensuring that these stylistic choices can be followed across design sessions and between different AI agents and tools. As a human-readable, open-format document, it serves as a living source of truth that both humans and AI can understand and refine. -A DESIGN.md file contains two parts: human-readable markdown prose and machine-readable YAML design tokens. The markdown body sections provide human-readable design rationale and guidance. Prose may use descriptive color names (e.g., "Midnight Forest Green") that correspond to systematic token names (e.g., `primary`). The tokens are the normative values; the prose provides context for how to apply them. +A DESIGN.md file contains two parts: human-readable markdown prose and machine-readable YAML design tokens. The markdown body sections provide human-readable design rationale and guidance. Prose may use descriptive color names (e.g., "Midnight Forest Green") that correspond to systematic token names (e.g., `primary`). The YAML defines the values of tokens declared in DESIGN.md. These values describe the design system. The prose explains how to apply them and can point to implementation files using [external references](#external-references). # Design Tokens