Formats
Five files from the same measurement
Each export describes the same tokens in the language of the tool that will read them. The excerpts below are shortened.
- 01
DESIGN.md
DESIGN.mdThe open format published by Google: a YAML header with the tokens (colors, typography, radii, spacing, components), followed by the prose that agents read: overview, colors, typography, layout, depth, shapes, components, accessibility, do's and don'ts, known limits.
Where to put it At the root of your project, for Claude Code, Cursor, Copilot or Gemini.
Excerpt · DESIGN.md--- version: alpha name: example.com colors: primary: "#B7481F" ink: "#0D1621" canvas: "#F3F4F6" typography: display-xl: fontFamily: Outfit fontSize: 68px fontWeight: 800 letterSpacing: -1.6px rounded: full: 9999px components: button-primary: backgroundColor: "{colors.primary}" rounded: "{rounded.full}" --- ## Overview … - 02
CSS variables
tokens.cssA :root block with colors, font families, sizes, radii, spacing and shadows, named as in the DESIGN.md.
Where to put it Paste it at the top of your stylesheet.
Excerpt · tokens.css:root { --color-primary: #B7481F; --color-ink: #0D1621; --font-display: "Outfit", system-ui, sans-serif; --text-display-xl: 68px; --rounded-full: 9999px; --spacing-unit: 8px; } - 03
Tailwind theme
tailwind.theme.jsAn object to place under theme.extend: colors, families, type scale with line height and letter spacing, radii, spacing, shadows.
Where to put it Import it into tailwind.config.
Excerpt · tailwind.theme.jsexport default { colors: { primary: "#B7481F", ink: "#0D1621" }, fontFamily: { display: ["Outfit", "system-ui", "sans-serif"] }, fontSize: { "display-xl": ["68px", { lineHeight: "1.05", letterSpacing: "-1.6px" }] }, borderRadius: { full: "9999px" }, }; - 04
DTCG tokens
tokens.jsonThe W3C Design Tokens group format ($value, $type), readable by Style Dictionary, Tokens Studio and Figma plugins.
Where to put it A single source to generate your iOS, Android and web themes.
Excerpt · tokens.json{ "color": { "primary": { "$value": "#B7481F", "$type": "color" }, "ink": { "$value": "#0D1621", "$type": "color" } }, "dimension": { "rounded-full": { "$value": "9999px", "$type": "dimension" } } } - 05
Replica context
DESIGN-SYSTEM.mdA structured summary following the Replica method (GitHub): principles, tokens, components and rules, for prototyping in the measured style.
Where to put it In the local-context folder of a Replica starter.
Excerpt · DESIGN-SYSTEM.md# Design system — example.com ## Principles - One accent colour, used for actions only. ## Tokens | Token | Value | |---|---| | primary | #B7481F |
One URL, one file
Generate a DESIGN.md