Skip to content
Install on Shopify

design.md

design.md describes how a store looks: its colour roles, type scale, spacing, corner radii, shadows and component styles. A coding agent can build a landing page or an email that matches the store without guessing hex codes or font sizes.

  • Developers and coding agents (Cursor, Claude Code and similar) read the tokens at the top to style new pages and components.
  • Marketers hand it to a design or page-building tool so new campaign pages stay on-brand.
  • Agents answering “what colours or fonts does this store use?” are pointed here by agents.md.

The file has two parts.

Frontmatter (the tokens). A YAML block at the top holds the measured values: name, description, logo, colors (named roles such as primary, on-primary, surface and their variants), typography (roles such as headline-lg and body-md with family, size, weight, line height and letter spacing), and, where the site has them, rounded, spacing, elevation, gradients, layout, responsive, motion and components.

Body (the explanation). Eight sections, always in this order:

  1. Overview: what the store sells, the design’s overall feel, and how the copy sounds.
  2. Colors: which colour does what, and which text colour goes on which background.
  3. Typography: the font families and each type role.
  4. Layout: content width, gutters and spacing.
  5. Elevation & Depth: shadows, or how depth is shown without them.
  6. Shapes: corner radii and where they’re used.
  7. Components: buttons, inputs and other component styles.
  8. Do’s and Don’ts: short rules for staying on-brand.

Real output for allbirds.com, trimmed. The colour list in the frontmatter is shortened, the logo is elided, and the last two sections are cut.

design.md — allbirds.com (trimmed)
---
version: "1.0"
name: "Allbirds"
description: "The world’s most comfortable shoes, made with natural materials like merino wool, eucalyptus tree fiber, and sugar cane, Allbirds has created the comfiest shoes on the planet."
logo:
src: "data:image/svg+xml;utf8,..."
colors:
primary: "#212121"
on-primary: "#ffffff"
primary-container: "#d7d7d7"
on-primary-container: "#0d0d0d"
primary-fixed: "#d7d7d7"
primary-fixed-dim: "#ababab"
on-primary-fixed: "#080808"
on-primary-fixed-variant: "#121212"
secondary: "#212121"
on-secondary: "#ffffff"
secondary-container: "#d7d7d7"
on-secondary-container: "#0d0d0d"
secondary-fixed: "#d7d7d7"
secondary-fixed-dim: "#ababab"
on-secondary-fixed: "#080808"
on-secondary-fixed-variant: "#121212"
error: "#ba1a1a"
on-error: "#ffffff"
error-container: "#ffdad6"
on-error-container: "#410002"
surface: "#ece9e2"
surface-dim: "#cdcbc5"
surface-bright: "#ece9e2"
# (frontmatter trimmed for the docs sample)
---
## Overview
Allbirds sells shoes made with natural materials like merino wool, eucalyptus tree fiber, and sugar cane to customers looking for comfortable footwear. The design aesthetic is Minimalist Eco, defined by the canvas colour surface #ece9e2, the signature colour primary #212121, and the type family Geograph. This design targets an emotional response of comfort and sustainability. The brand voice is direct and imperative, as seen in headlines like "Our biggest sale. Your comfiest season." and call-to-action labels like "Skip to Content" and "Shop Men". The voice uses short declarative sentences and verbs first, such as "Shop Men Shop Women" and "We replace petroleum-based synthetics with natural alternatives wherever we can." Example sentence: "Slip in, lace up, or slide them on and enjoy the comfy support."
The site's meta description and visible copy emphasize the comfort and eco-friendliness of Allbirds shoes, with phrases like "The world’s most comfortable shoes" and "better for the planet—win, win, win." The brand voice is also characterized by its use of questions, such as the implicit question in "Cart (0)". Overall, the design and copy work together to create a sense of effortless comfort and sustainability.
## Colors
The primary colour role primary #212121 fills calls-to-action, active states, and focus rings. The canvas colour is surface #ece9e2. Body text on light sections uses on-background #000000, while body text on dark sections uses on-primary #ffffff. The secondary colour family is similar to the primary family, with secondary #212121 and on-secondary #ffffff. The error colour role error #ba1a1a is used for error messages, with on-error #ffffff as the text colour. The surface stacking order is surface #ece9e2, surface-dim #cdcbc5, surface-bright #ece9e2, surface-container-lowest #ece9e2, surface-container-low #e7e4dd, surface-container #e3e0d9, surface-container-high #dedbd4, surface-container-highest #d7d4ce, surface-variant #d4d2cb, and surface-tint #212121, from lowest to highest. The values imply a contrast rule, with sufficient contrast between the background and text colours.
## Typography
The typography families in use are Geograph, Self Modern, and Akkurat Mono. The display typography role has a size of 40px and a line-height of 60px, with a weight of 400. It is used for headings and is set in the Self Modern family. The headline-lg role has a size of 24px and a line-height of 32px, with a weight of 400 and letter-spacing of 0.6px. It is used for large headings and is set in the Geograph family. The headline-md role has a size of 24px and a line-height of 24px, with a weight of 500. It is used for medium headings and is set in the Geograph family. The body-lg role has a size of 16px and a line-height of 24px, with a weight of 400. It is used for large body text and is set in the Geograph family. The body-md role has a size of 14px and a line-height of 21px, with a weight of 400. It is used for medium body text and is set in the Geograph family. The label-md role has a size of 12px and a line-height of 16px, with a weight of 500 and letter-spacing of 0.6px. It is used for labels and is set in the Geograph family.
## Layout
The max content width is 2560px. The spacing scale uses a gutter of 10px on desktop and tablet, and 20px on mobile. The spacing scale is applied through section padding and component gaps, with a consistent gutter size across breakpoints.
## Elevation & Depth
Since no box-shadows were observed, depth is conveyed through colour contrast and layering. The surface colours, such as surface #ece9e2 and surface-container #e3e0d9, create a sense of layering and depth.
## Shapes
The radius rounded.full has a value of 3.35544e+07px, which is used by the button-primary and input-field components. This radius creates a soft, rounded shape. The system is pill-shaped, using this large radius value.

ShopMD opens the store’s home page in a real browser, takes a screenshot, and measures the styles the page actually renders: colours, fonts, sizes, spacing, radii and shadows. It can also visit a collection page and a product page and merge what it finds.

The frontmatter is written by code from those measurements, so every token is a value the page used. An AI model then writes the eight prose sections around the tokens. It doesn’t change them. For a store with the app installed, ShopMD also gives the model some context from the store’s own data.

Once published, at the store’s own domain:

https://your-store.com/apps/shopmd/design.md
https://your-store.com/apps/shopmd/design

Anyone can also generate it from a store URL at shopmd.ai/design-md and copy or download it.

When an installed store publishes a new theme, ShopMD measures the site again and scores drift: how far the design moved, from 0 to 100, across colours, typography, spacing, corner radius and shadows. At 10 or lower, ShopMD keeps the current file, so small rendering differences don’t create work. Above 10, the new version waits for the merchant’s approval. See Drift.

The first design.md goes live as soon as it’s generated.