{"id":6202,"date":"2026-06-27T15:30:07","date_gmt":"2026-06-27T08:30:07","guid":{"rendered":"https:\/\/daiilynews.cu.ma\/?p=6202"},"modified":"2026-06-27T15:30:07","modified_gmt":"2026-06-27T08:30:07","slug":"design-md-anatomy-how-tokens-and-prose-work-together","status":"publish","type":"post","link":"https:\/\/daiilynews.cu.ma\/?p=6202","title":{"rendered":"DESIGN.md Anatomy: How Tokens and Prose Work Together"},"content":{"rendered":"<p> <br \/>\n<br \/>\n                A DESIGN.md has two parts: YAML front matter with machine-readable design tokens, and a markdown body with human-readable rationale. Tokens give an agent exact values; prose gives it the rules. Pairing them is the format&#8217;s core insight.<\/p>\n<p>  The front matter: tokens<\/p>\n<p>The front matter holds your colors, typography, spacing, rounded corners and components as typed values. It opens and closes with three dashes:<\/p>\n<p>&#8212;<br \/>\ncolors:<br \/>\n  primary: &#8220;#1A1C1E&#8221;<br \/>\n  surface: &#8220;#FFFFFF&#8221;<br \/>\nspacing:<br \/>\n  sm: 8px<br \/>\n  md: 16px<br \/>\n&#8212;<\/p>\n<p>    Enter fullscreen mode<\/p>\n<p>    Exit fullscreen mode<\/p>\n<p>This gives the agent precise values to use directly.<\/p>\n<p>  The body: prose<\/p>\n<p>Below the front matter is the rationale, in canonical sections:<\/p>\n<p>## Overview<br \/>\nA calm, focused reading environment. The UI recedes so content leads.<\/p>\n<p>## Colors<br \/>\nWarm neutrals carry the interface. The accent is reserved strictly<br \/>\nfor interactive elements &#8211; never decorative.<\/p>\n<p>    Enter fullscreen mode<\/p>\n<p>    Exit fullscreen mode<\/p>\n<p>  Why pair them?<\/p>\n<p>A hex value tells the agent what a color is. Only prose can tell it that this color is the sole interaction driver and must never be used decoratively.<\/p>\n<p># A tokens-only file: just data, no rules.<br \/>\n# A prose-only file: intent, but no precise values.<br \/>\n# DESIGN.md: both, so the agent applies the system correctly.<\/p>\n<p>    Enter fullscreen mode<\/p>\n<p>    Exit fullscreen mode<\/p>\n<p>  The canonical sections<\/p>\n<p>Overview &#8211; the personality<\/p>\n<p>Colors &#8211; roles and rules<\/p>\n<p>Typography &#8211; the job of each style<\/p>\n<p>Layout &#8211; grid and spacing<\/p>\n<p>Elevation &#038; Depth &#8211; how hierarchy is built<\/p>\n<p>Do&#8217;s and Don&#8217;ts &#8211; hard guardrails<\/p>\n<p>  FAQ<\/p>\n<p>Is the front matter required? In principle optional, but in practice it is the heart of the file.Can I use only prose? You can, but you lose precise values. The format is designed for both.<\/p>\n<p>  Bottom line<\/p>\n<p>Tokens are the values; prose is the meaning. A DESIGN.md works because it carries both in one file the agent reads together.<\/p>\n<p>Free starter: The format, a complete annotated example, and the core idea are on a free cheat sheet: DESIGN.md Quick-Start Cheat Sheet<\/p>\n<p>Go deeper: The full guide covers the entire format \u2014 the token schema, the CLI in depth, accessibility, Tailwind and DTCG export, agent integration, and a complete walkthrough: DESIGN.md: The Complete Guide to Design Systems for AI Agents<\/p>\n<p>Do you write rationale in your design docs, or just list the tokens? Curious how teams handle the &#8216;why&#8217; in the comments.<\/p>\n<p><br \/>\n<br \/><a href=\"https:\/\/dev.to\/promptmaster\/designmd-anatomy-how-tokens-and-prose-work-together-1ie5\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A DESIGN.md has two parts: YAML front matter with machine-readable design tokens, and a markdown body with human-readable rationale. Tokens give an agent exact values; prose gives it the rules. Pairing them is the format&#8217;s core insight. The front matter: tokens The front matter holds your colors, typography, spacing, rounded corners and components as typed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6203,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[676],"tags":[835,761,765,1809,762,763,764,760,795,824],"class_list":["post-6202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-ai","tag-ai","tag-coding","tag-community","tag-design","tag-development","tag-engineering","tag-inclusive","tag-software","tag-tutorial","tag-webdev"],"_links":{"self":[{"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/posts\/6202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6202"}],"version-history":[{"count":0,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/posts\/6202\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=\/wp\/v2\/media\/6203"}],"wp:attachment":[{"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daiilynews.cu.ma\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}