DESIGN.md Glossary
A reference glossary of 18 core terms used across the DESIGN.md specification, design token pipelines, and DesignMD Pro’s validator and exporters. Every entry links to a free, production DESIGN.md in the catalog so you can inspect the actual extracted tokens.
Quick index
| Term | Area | Real website example |
|---|---|---|
| Design Token | Tokens & Standards | Linear |
| DTCG (Design Tokens Community Group) | Tokens & Standards | WorkOS |
| Primitive Token | Tokens & Standards | Webflow |
| Token Reference | Tokens & Standards | GitHub |
| Component Token | Tokens & Standards | Linear |
| Symbol Table | Tokens & Standards | Auth0 |
| Semantic Color Role | Color & Contrast | GitHub |
| Surface Hierarchy | Color & Contrast | Railway, Netlify |
| Color Mode Group (Light / Dark) | Color & Contrast | Auth0 |
| WCAG Contrast Ratio | Color & Contrast | Notion |
| Type Scale | Typography | Linear |
| Font Pairing | Typography | Railway, Warp |
| Optical Sizing & Variable Axes | Typography | Notion, Linear |
| Spacing Scale | Layout & Motion | |
| Elevation & Depth | Layout & Motion | Linear, GitLab, Notion, WorkOS |
| Border Radius Scale | Layout & Motion | Apple, Netlify |
| Motion Token | Layout & Motion | Notion, Linear |
| DESIGN.md Frontmatter & Prose Split | Document Mechanics | Linear, Apple |
Design Token
A design token is a named value declared in DESIGN.md YAML frontmatter (colors, font families, type sizes, spacing steps, corner radii, or transition curves). Build tools and AI coding agents read these exact primitives instead of guessing styles.
In DESIGN.md, tokens are organized into five core YAML maps (colors, typography, rounded, spacing, and motion), plus a components map that composes them into UI specifications. Storing exact values as tokens removes ambiguity across CSS variables, Tailwind v4 @theme blocks, and AI prompts.
- Real website example: Linear declares 21 color tokens (such as
accent: "#7170ff"andsurface: "#08090a"), 15 typography styles, 8 corner radii (none: 0pxthroughfull: 9999px), 14 spacing steps (base: 4px,section: 128px), 6 motion timings, and 18 component definitions in oneDESIGN.md. - Related docs: Design Tokens, Design Tokens vs CSS Variables.
DTCG (Design Tokens Community Group)
DTCG (the W3C Design Tokens Community Group specification) defines a vendor-neutral JSON interchange format using $value, $type, $description, and {group.token} aliases for sharing design tokens across Figma, Style Dictionary, and code. DESIGN.md adopts DTCG’s curly-brace alias syntax in compact YAML tailored to LLM context windows.
Whereas DTCG JSON wraps every leaf token in an object ({ "$value": "#6363f1", "$type": "color" }), DESIGN.md infers token types from the top-level YAML group (colors, typography, rounded, spacing, motion) so the same token set consumes far fewer prompt tokens while preserving one-to-one semantic equivalence.
# DESIGN.md compact YAML vs DTCG JSON intent
colors:
primary: "#6363f1"
components:
card:
padding: "{spacing.xl}"
rounded: "{rounded.lg}"- Real website example: WorkOS defines typed color, typography, radius, and spacing maps (
primary: "#6363f1",rounded.lg: 16px,spacing.xl: 24px) and binds them incomponentsusing{colors.on-surface},{spacing.xl}, and{rounded.lg}aliases that map directly to DTCG pipelines or CSS custom properties. - Related docs: Design Tokens, Figma Integration.
Primitive Token
A primitive token stores a raw, context-free visual value such as a numbered gray step (gray-700) or a base dimension (xs: 4px). It lists what exists in a palette or scale without prescribing where in the UI to use it.
Primitive tokens work well as the foundation of a color ramp or dimension ladder, while semantic roles sit on top of them to explain intent. When documenting a site in DESIGN.md, keeping primitives alongside semantic roles helps agents see the full neutral ramp without guessing intermediate grays.
- Real website example: Webflow publishes a numbered grayscale ramp (
gray-300: "#ababab",gray-400: "#898989",gray-700: "#363636",gray-800: "#222222",gray-900: "#171717") next to its semanticprimary(#146ef5),surface(#ffffff), andon-surface(#080808) roles. - Related docs: Token Naming, Design Tokens.
Token Reference
A token reference is a curly-brace dot-path expression such as {colors.primary} or {typography.body-md} that points one token or component property to another token’s resolved value, avoiding duplicated literals and letting the validator catch unresolved or circular chains.
Outside components, references must resolve to a primitive leaf value (for example {colors.primary}, not a whole group). Inside components, references may point either to leaf values or to composite tokens such as {typography.label-md}, and may appear embedded inside CSS strings such as "1px solid {colors.outline}".
- Real website example: GitHub composes its
chip-pillcomponent strictly from references (padding: "{spacing.md}",rounded: "{rounded.full}",textColor: "{colors.on-surface-variant}",typography: "{typography.label-md}", andbackgroundColor: "{colors.surface-container}") with no repeated hex codes. - Related docs: Design Tokens, Validator & Lint Rules.
Component Token
A component token is an entry under components in DESIGN.md that binds semantic color, typography, spacing, border, and radius references to a specific UI element such as a navigation bar, primary button, badge, or card.
Component tokens turn abstract palettes and scales into concrete, verifiable component definitions. DesignMD Pro’s validator also inspects foreground/background pairs inside every component definition (textColor vs backgroundColor) for WCAG contrast compliance.
- Real website example: Linear includes 18 component entries, such as
nav(height: "{spacing.header-height}",textColor: "{colors.on-surface-muted}",typography: "{typography.label-sm}",backgroundColor: "{colors.background}") andpanel(padding: "{spacing.xl}",rounded: "{rounded.lg}",backgroundColor: "{colors.surface-container-low}"). - Related docs: Components, Complete Example.
Symbol Table
The symbol table is the flat dot-path index (such as colors.primary or colors.light.surface-container) built by the DESIGN.md parser after flattening nested groups and resolving all {token} aliases for validation, contrast auditing, and code generation.
Because YAML token sections can contain arbitrary nesting (colors.light.*, colors.dark.*, breakpoint groups), flattening every resolved leaf into a single dot-path table gives the linter, contrast checker, and exporters one deterministic lookup source and catches key collisions between flat tokens and nested groups.
- Real website example: Auth0 resolves both root-level dark tokens (
colors.on-surface,colors.surface-container-low) and nested light-mode documentation tokens (colors.light.on-surface,colors.light.surface-container) in one symbol table so components likenav-barandcard-docstay unambiguously addressed. - Related docs: Design Tokens, Validator & Lint Rules.
Semantic Color Role
A semantic color role is a purpose-named color token (such as primary, on-primary, surface, on-surface, outline, or error) that states where and why a color is used rather than its hue name, enabling consistent AI usage, automated contrast checks, and theme switching.
Naming tokens by role (on-primary, surface-inverse, on-surface-variant) instead of hue (green-600, slate-200) gives coding agents explicit foreground/background pairings and matches the naming heuristics used by DesignMD Pro’s contrast checker and shadcn/ui theme generator.
- Real website example: GitHub pairs
primary: "#08872b"withon-primary: "#ffffff",surface: "#ffffff"withon-surface: "#000000",surface-inverse: "#000000"withon-surface-inverse: "#ffffff", andoutline: "#b6bfb8"withoutline-variant: "#d2d9d4". - Related docs: Token Naming, Extract Colors from a Website.
Surface Hierarchy
Surface hierarchy is a stepped progression of neutral background tokens (such as surface, surface-1, surface-2, and surface-3, or surface-paper and surface-sunken) that separates page canvas, panels, inputs, and dialogs without heavy drop shadows.
In dark interfaces where black drop shadows disappear against near-black backgrounds, stepped surface luminance is the primary way to show nesting and containment. In light interfaces, warm paper and sunken surface tokens distinguish secondary bands from pure-white cards.
- Real website example: Railway builds dark-mode layering through four tonal steps (
surface: "#0d0c14",surface-1: "#13111c",surface-2: "#181622", andsurface-3: "#1c1a28"), while Netlify applies the same pattern in light mode withsurface: "#ffffff",surface-paper: "#f7f6f4", andsurface-sunken: "#f0eeea". - Related docs: Prose Sections, Token Naming.
Color Mode Group (Light / Dark)
A color mode group is a nested light or dark sub-map inside a DESIGN.md token section (most commonly colors) that reassigns the same semantic keys for an alternate color scheme, allowing code generators to emit default tokens alongside .dark overrides.
colors:
surface: "#120021"
on-surface: "#ffffff"
light:
surface-container: "#f5f5f7"
on-surface: "#18181b"DesignMD Pro’s Tailwind Theme Generator, CSS Variables Generator, and shadcn Theme Generator inspect nested light and dark groups to generate mode-aware stylesheets automatically.
- Real website example: Auth0 defines its dark violet marketing surfaces at the top level (
surface: "#120021",on-surface: "#ffffff") and nests light documentation tokens undercolors.light.*, referenced directly bycard-doc({colors.light.surface-container},{colors.light.on-surface}). - Related docs: Design Tokens, Tailwind CSS & shadcn/ui Integration.
WCAG Contrast Ratio
WCAG contrast ratio measures the relative luminance ratio between foreground and background colors on a scale from 1:1 to 21:1. WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text or UI components, and DesignMD Pro’s validator checks these token pairs automatically.
The DesignMD Pro Validator parses every hex color (#RGB, #RGBA, #RRGGBB, #RRGGBBAA) into WCAG relative luminance and checks both global foreground/background heuristics and component textColor/backgroundColor pairs: < 3:1 is flagged as an error and >= 3:1 to < 4.5:1 as a warning.
- Real website example: Notion pairs
on-surface: "#000000"onsurface: "#ffffff"for the maximum21:1contrast ratio, and pairson-accent: "#ffffff"onaccent: "#0075de"at4.57:1, clearing WCAG AA for normal body and button text. - Related docs: Validator & Lint Rules, Token Naming.
Type Scale
A type scale is an ordered ladder of named typography tokens (typically spanning caption, label, body, title, headline, and display) that fixes fontSize, fontWeight, lineHeight, and letterSpacing so hierarchy stays consistent across screens.
Recording the entire scale in typography prevents agents from mixing ad-hoc font sizes or applying body line-height (1.5) to large display headlines (which usually tighten to 1.0–1.15 with negative tracking).
- Real website example: Linear defines a 15-step
Inter Variablescale running fromcaption(12px,lineHeight: 1.4) andbody-md(16px,lineHeight: 1.5) up throughheadline-md(24px),headline-lg(48px),headline-xl(64px), andheadline-display(72px,lineHeight: 1,letterSpacing: -0.022em). - Related docs: Extract Typography from a Website, Design Tokens.
Font Pairing
Font pairing assigns two or three distinct typefaces to specific typography roles in DESIGN.md: for example, a serif or display face for headlines, a neutral sans-serif for body copy, and a monospace face for code, labels, or tabular metrics.
Documenting which family owns which semantic role stops AI tools from collapsing a multi-font system into a single generic sans-serif, or accidentally putting display fonts on dense body paragraphs.
- Real website example: Railway pairs
IBM Plex Seriffor section titles (title-lg: 32px),Interfor body and UI labels (body-md: 16px), andJetBrains Monofor code (code: 13px); Warp combinesAzeret SemiMonofor headlines and uppercase labels withMatterfor body copy andJetBrains Monofor code blocks. - Related docs: Extract Typography from a Website, Design Tokens.
Optical Sizing & Variable Axes
Optical sizing and variable font axes control how a variable typeface adjusts stroke contrast, aperture, and intermediate weights across sizes. In DESIGN.md they are declared via fontVariation (CSS font-variation-settings such as opsz), fontFeature (such as tabular numerals), and numeric weights.
Without explicit fontVariation or intermediate weight tokens, browsers fall back to coarse 400/600/700 steps and default optical sizes, losing the fine typographic detail of variable-font systems.
- Real website example: Notion adjusts
Die Groteskoptical size across its scale (fontVariation: '"opsz" 6'onneue-body-mdat16px,'"opsz" 30'onneue-headline-mdat40px, and'"opsz" 42'onneue-headline-displayat80px), while Linear uses intermediateInter Variableweights510(label-md,headline-lg) and590(title-md,headline-md). - Related docs: Design Tokens, Extract Typography from a Website.
Spacing Scale
A spacing scale is a constrained progression of layout dimensions built on a base grid unit (typically 4px or 8px), combined with named structural bounds like gutter, margin, section, and container-max under spacing in DESIGN.md so agents do not invent arbitrary pixel gaps.
Separating rhythmic steps (xs through 5xl) from layout invariants (container-max, gutter, header-height) gives coding agents both component-level padding rhythm and page-level max-width constraints in one map.
- Real website example: Google anchors its spacing on
base: 8pxwith 11 incremental steps (xs: 4px,sm: 8px,md: 16px,lg: 24px,xl: 32px,xxl: 48pxup to5xl: 120px) alongside explicit container bounds (gutter: 24px,margin: 24px,search-max: 688px,container-max: 1296px). - Related docs: Design Tokens, Prose Sections.
Elevation & Depth
Elevation is the visual system that signals stacking order between canvas, cards, popovers, and dialogs. Sites implement it with diffused ambient shadows, tinted shadows, translucent surfaces, or shadow-free tonal steps and 1px hairline borders, documented in section 5 (Elevation & Depth) of DESIGN.md.
Because default LLM outputs routinely slap generic gray shadow-lg drop shadows onto flat or dark-mode interfaces, stating a site’s exact elevation approach in ## Elevation & Depth is one of the highest-impact rules in any DESIGN.md.
- Real website example: Four production approaches in the catalog illustrate the spectrum:
- Linear and GitLab are shadow-free, relying on dark tonal surface ladders and
1pxhairlines. - Notion uses an ultra-diffused 4-stop ambient shadow on light cards (
rgba(0,0,0,0.01)throughrgba(0,0,0,0.04)). - WorkOS uses multi-layer purple-tinted shadows (
rgba(23,6,100,…)andrgba(17,7,53,…)) so shadows stay chromatic rather than neutral gray.
- Linear and GitLab are shadow-free, relying on dark tonal surface ladders and
- Related docs: Prose Sections, Writing for AI Agents.
Border Radius Scale
A border radius scale defines the named corner radii under rounded in DESIGN.md (such as none, sm, md, lg, xl, and full) that establish a brand’s geometric silhouette and keep nested containers, inputs, buttons, and pills visually aligned.
Mixing arbitrary radii (such as 4px inputs next to 24px cards) makes components look inconsistent across a page.
- Real website example: Apple keeps its corner system minimal with just two tokens (
sm: 8pxandfull: 9999px), whereas Netlify maps seven distinct radii (sm: 6px,md: 12px,lg: 16px,xl: 20px,xxl: 30px,hero: 37px,full: 360px). - Related docs: Design Tokens, Prose Sections.
Motion Token
A motion token is a purpose-named transition specification under motion in DESIGN.md that pairs duration, optional delay, and a CSS timingFunction (such as a cubic-bezier curve) for hover feedback, surface entrances, and state transitions.
Naming transitions by interaction purpose (state-change, button-feedback, surface-enter) rather than abstract speed (fast, slow) tells agents which curve belongs on a micro-hover versus a full modal or panel reveal.
- Real website example: Notion differentiates instant feedback (
state-change-instant: 20ms), standard hover (state-change: 150ms), spatial movement (surface-move: 300ms), and large entrances (surface-enter: 540mswithcubic-bezier(0.16, 1, 0.3, 1)), while Linear specifiesbutton-feedback: 160msandreveal: 700ms(cubic-bezier(0.32, 0.72, 0, 1)). - Related docs: Design Tokens, Prose Sections.
DESIGN.md Frontmatter & Prose Split
The DESIGN.md frontmatter-and-prose split separates deterministic YAML token declarations (colors, typography, rounded, spacing, motion, components, and optional omitted section notes) from up to ten ordered Markdown sections (Overview through Do's and Don'ts) that explain design judgment and explicit anti-patterns for AI agents.
YAML tokens fix exact measurements; Markdown sections explain hierarchy, usage limits, and anti-patterns. Keeping the canonical ten-section order also allows coding agents to fetch individual sections (such as ["Colors", "Typography"]) via MCP without loading the full document.
- Real website example: Linear and Apple both pair complete YAML frontmatter with all ten ordered prose sections (
Overview,Colors,Typography,Layout,Elevation & Depth,Shapes,Motion & Micro-interaction,Voice & Content Strategy,Components, andDo's and Don'ts). - Related docs: Frontmatter & Structure, Prose Sections, Writing for AI Agents.