designtoken.md File Format Specification

The complete reference for the designtoken.md file format — structured design tokens in markdown that coding agents can parse deterministically.

On this page

A designtoken.md file is a structured markdown document containing a complete design token system — color palettes with full 50–900 scales, typography scales, spacing, elevation, border radius, and component token definitions — formatted so coding agents can parse it deterministically.

File Structure Overview #

Every designtoken.md file follows a strict section hierarchy. Each section is a level-2 or level-3 markdown heading that agents use for direct navigation.

Naming Conventions #

Tokens follow a dot-delimited naming pattern: category.role.variant. This flat namespace is readable by both agents and humans.

color.primary.500
Color role + scale step. The 500 step is the base value; 50 is lightest, 900 is darkest.
space.lg
Spacing tokens use t-shirt sizes: 2xs, xs, sm, md, lg, xl, 2xl, 3xl.
radius.md
Border radius tokens: sm, md, lg, xl, full. Consistent rounding vocabulary.
shadow.lg
Elevation tokens: sm, md, lg, xl. Multi-layer CSS box-shadow values.
typography.body
Type scale tokens map to semantic roles: caption, body, subheading, heading, display.

How Agents Parse It #

The designtoken.md format is designed for deterministic parsing. Agents navigate the file using markdown structure alone — no natural-language processing is needed.

Heading-based navigation

Agents read the markdown headings (## and ###) to jump directly to the section they need. The heading hierarchy is fixed: the same sections always appear in the same order.

Color scale parsing

Color scales are defined as bullet lists with a consistent **Step:** #hex format. Agents match the bold marker to extract the step name and the hex value. No ambiguity, no variation.

Typography table parsing

The type scale is a standard markdown table with columns for size, weight, line-height, letter-spacing, and use. Agents parse the pipe-delimited rows and map each entry to a named token.

Component token parsing

Component tokens use a key=value format within bullet lists. Each component section contains a flat list of properties that agents read as key-value pairs — background, text, border, padding, and state variants.

Why deterministic structure matters

Natural-language design files require agents to infer intent from free-form text. designtoken.md eliminates inference: headings define navigation, formatting defines data types, and the fixed schema means agents always know exactly where to find each token.

Complete Example #

A full designtoken.md file using a nature green theme. This example shows every required section and the exact formatting agents expect.

designtoken.md
# Design Tokens ## Color Palette ### Primary (Nature Green) - **50:** #F0F7F2 - **100:** #D4E8D9 - **200:** #B0D4B8 - **300:** #84BC91 - **400:** #5FA06D - **500:** #4A7C59 - **600:** #3D6649 - **700:** #30503A - **800:** #243B2B - **900:** #18261D ### Secondary (Warm Sand) - **50:** #FBF8F3 - **100:** #F3EDE0 - **200:** #E6D9C3 - **300:** #D4C0A0 - **400:** #BFA67D - **500:** #A68B5B - **600:** #8A7249 - **700:** #6D5A39 - **800:** #52432B - **900:** #382D1D ### Tertiary (Sky Blue) - **50:** #F0F7FB - **100:** #D6EAF5 - **200:** #B0D5EB - **300:** #82BCDD - **400:** #5AA1CC - **500:** #3E86B5 - **600:** #326D95 - **700:** #275575 - **800:** #1D3F57 - **900:** #132A3A ### Neutral - **50:** #FAFAF9 - **100:** #F5F5F4 - **200:** #E7E5E4 - **300:** #D6D3D1 - **400:** #A8A29E - **500:** #78716C - **600:** #57534E - **700:** #44403C - **800:** #292524 - **900:** #1C1917 ### Semantic Colors - **Success:** #16A34A (Green-600) - **Warning:** #D97706 (Amber-600) - **Error:** #DC2626 (Red-600) - **Info:** #2563EB (Blue-600) ## Typography ### Font Stack - **Primary:** 'DM Sans', system-ui, sans-serif - **Mono:** 'JetBrains Mono', monospace ### Type Scale | Name | Size | Weight | Line-Height | Spacing | Use | |---------|-------|--------|-------------|----------|------------------| | xs | 12px | 400 | 1.5 | 0.01em | Captions, labels | | sm | 14px | 400 | 1.5 | 0 | Secondary text | | base | 16px | 400 | 1.6 | 0 | Body copy | | lg | 18px | 500 | 1.5 | -0.01em | Lead paragraphs | | xl | 20px | 600 | 1.4 | -0.01em | Card headings | | 2xl | 24px | 700 | 1.3 | -0.02em | Section headings | | 3xl | 30px | 700 | 1.25 | -0.02em | Page headings | | 4xl | 36px | 700 | 1.2 | -0.03em | Hero titles | | 5xl | 48px | 800 | 1.1 | -0.03em | Display text | ## Spacing Scale - **2xs:** 4px - **xs:** 8px - **sm:** 12px - **md:** 16px - **lg:** 24px - **xl:** 32px - **2xl:** 48px - **3xl:** 64px - **4xl:** 96px ## Border Radius - **sm:** 4px - **md:** 8px - **lg:** 12px - **xl:** 16px - **full:** 9999px ## Elevation / Shadows - **sm:** 0 1px 2px rgba(74,124,89,0.06) - **md:** 0 4px 12px rgba(74,124,89,0.10) - **lg:** 0 8px 24px rgba(74,124,89,0.14) - **xl:** 0 16px 48px rgba(74,124,89,0.18) ## Component Tokens ### Buttons Primary: - background=#4A7C59 - text=#FFFFFF - border=none - radius=8px - padding=12px 24px - hover:background=#3D6649 - focus:ring=0 0 0 3px rgba(74,124,89,0.3) - disabled:opacity=0.5 Secondary: - background=transparent - text=#4A7C59 - border=1px solid #B0D4B8 - radius=8px - padding=12px 24px - hover:background=#F0F7F2 ### Cards - background=#FFFFFF - border=1px solid #E7E5E4 - radius=12px - padding=24px - shadow=0 1px 2px rgba(74,124,89,0.06) - hover:shadow=0 4px 12px rgba(74,124,89,0.10) ### Inputs - background=#FFFFFF - text=#1C1917 - border=1px solid #D6D3D1 - radius=8px - padding=10px 14px - focus:border=#4A7C59 - focus:ring=0 0 0 3px rgba(74,124,89,0.15) - placeholder=#A8A29E ### Navigation - background=#FFFFFF - border-bottom=1px solid #E7E5E4 - height=64px - link:color=#57534E - link:hover=#1C1917 - link:active=#4A7C59 ## Visual Reference > This section describes how the token system looks when applied. > For the interactive visual card, visit https://designtoken.md/generator - **Overall feel:** warm and minimal - **Primary color** reads as forest green — used for actions and emphasis - **Neutral palette** provides light backgrounds with warm undertones - **Typography** uses DM Sans for clean, modern readability - **Spacing** is default — the interface feels balanced - **Corners** are subtly rounded — shape language is soft
Color Scales Each color role defines 10 steps (50–900). The bold marker + hex format is consistent throughout, enabling regex-free parsing.
Semantic Colors Map to common UI states. Parenthetical notes reference the source scale but are optional for parsing.
Type Scale Table Standard markdown table. Agents parse pipes as column delimiters. Nine levels cover every text role in a typical UI.
Spacing + Radius Bullet-list format with bold labels and pixel values. Same structure as color scales but with size values instead of hex codes.
Component Tokens Key=value pairs within bullet lists. State variants use colon syntax: hover:background.
Visual Reference ASCII art summary. Optional for parsing but helps agents validate their understanding of the token system at a glance.

Relationship to design.md #

The design.md format was introduced by Google Stitch (March 2026) as a way to capture design intent in a natural-language markdown file. It’s a great concept — a simple, human-readable file that describes your design system in prose. designtoken.md extends this concept with structured, deterministic token definitions that agents can parse without NLP inference.

Where a Stitch design.md describes colors by name (“Primary: Green #4A7C59”), a designtoken.md defines the full 50–900 scale for each role — giving agents every shade they need for hover states, surfaces, borders, and text contrast without guessing. Where design.md describes typography in a sentence, designtoken.md provides a 9-level type scale table with exact sizes, weights, line-heights, and letter-spacing. Where design.md mentions components in prose, designtoken.md defines structured key=value token sets with state variants.

Dimension design.md (Stitch) designtoken.md
Color depth 4–6 named roles Full 50–900 scales + semantic aliases
Typography 2–3 entries Full 9-level type scale with responsive sizing
Components Natural language descriptions Structured token sets with state variants
Spacing Mentioned in layout section Named scale (4px–96px) with use annotations
Elevation Not addressed Shadow scale from sm to xl
Agent parsing Requires NLP inference Deterministic markdown — headings define navigation, formatting defines data types
Typical size ~30 lines ~150–200 lines

Both formats serve the same purpose — giving coding agents design context. design.md is ideal for quick prototyping where approximate styling is fine. designtoken.md is for production work where agents need every token value specified explicitly.

Ecosystem #

designtoken.md is the static starting point. The Designless ecosystem extends it with runtime intelligence, reusable skills, and production-grade brand governance.

skill.design Free tool

Use your designtoken.md file as a resource to generate a complete design system skill for Claude Code and Cowork — without writing a single line of code. The visual designer lets you drag-and-drop sections, preview output, and export a portable skill package that teaches your agent your design preferences.

Start building skills →
Designless Studio Production-grade

Expression infrastructure that augments your coding agent with three runtime layers static tokens can’t provide:

  • 1. Expression — Design tokens, component patterns, voice/tone rules, layout resolution, and surface adaptation. Your brand’s visual identity resolved deterministically at runtime via API.
  • 2. Intelligence — Guardrail enforcement, pattern logic, language constraints, and agent boundaries. The judgment layer that tells agents why this and not that — not just vocabulary, but taste.
  • 3. Evidence — Version hashes, compliance logs, surface validation, and audit trails. Provable, observable consistency across every surface your agents generate.

Static tokens give your agent a dictionary. Expression infrastructure teaches it to write poetry.

Explore Designless Studio → Why agents need more than tokens →
designless.live Brand Capsules

See what happens when design tokens become a full expression system at runtime. Brand Capsules demonstrate the complete picture — from static tokens to living, agent-governed brand expression across every surface.

View Brand Capsules →

Frequently Asked Questions

What is a designtoken.md file?

A designtoken.md file is a structured markdown document containing a complete design token system — color palettes with full 50–900 scales, typography scales, spacing, elevation, border radius, and component token definitions — formatted so coding agents can parse it deterministically.

How is designtoken.md different from design.md?

A typical design.md file contains 20–30 lines of natural-language color roles and font names. A designtoken.md file contains 150–200 lines of structured, production-ready token definitions with full color scales, type hierarchies, component states, and a visual reference section.

Which coding agents work with designtoken.md?

designtoken.md files work with any coding agent that reads project context files, including Claude Code, Cursor, GitHub Copilot, OpenAI Codex, and Google Gemini CLI.

How do I use a designtoken.md file?

Generate your token file at designtoken.md/generator, download it, and place it in your project root. Your coding agent will read it as context and use the token definitions to produce consistent, on-brand UI.

Is designtoken.md free?

Yes. The generator is completely free with no signup required. Generate unlimited token files.

What is expression infrastructure?

Expression infrastructure is the layer between a design system and an AI agent that actually composes. Static tokens give agents vocabulary (colors, fonts, spacing). Expression infrastructure adds three capabilities tokens can’t provide: Expression (runtime token resolution, layout adaptation, surface-aware rendering), Intelligence (brand guardrails, composition judgment, constraint negotiation — the “why this and not that” that human designers carry in their heads), and Evidence (version hashes, compliance logs, provable consistency). Tokens give agents a dictionary. Expression infrastructure teaches them to write poetry. Learn more →

What is Designless Studio and how do I use it?

Designless Studio is the production-grade expression infrastructure for AI agents. Start by generating a designtoken.md file here — that gives your agent static tokens. When you need runtime token resolution (where your design system updates across your app without regenerating files), brand guardrails that enforce consistency at machine speed, and an observability layer that proves compliance — that’s what Designless Studio does. It reads the same token vocabulary and serves it via API, augmented with intelligence and evidence layers. You can also use skill.design to turn your designtoken.md into a reusable design skill for Claude Code and Cowork without writing code.