Field guide · AI workflows

Teaching an AI your brand: the DESIGN.md

A single markdown file can give an AI a persistent, structured understanding of how a brand looks, feels and reads — so every screen it generates lands on-system, not generic. Here's how it works, and how this very page is built from one.

The idea

One file that holds token, rule and rationale.

A DESIGN.md is a plain-text description of a brand's visual language, written so an AI agent can act on it. The format was introduced by Google Stitch and is now an open specification.

It sits between two things that don't quite work for a machine. A Figma export says what to use but not why; a brand PDF talks to humans ("approachable yet premium") but is too loose to follow. DESIGN.md keeps token, rule and rationale in one file — specific enough for the next decision, and carrying the reasoning so the AI stays on-system in a case the file never named.

---  # machine-readable tokens
name: "KC Fold"
colors:
  primary:  "#0000FF"  # KC blue — the spine
  accent:   "#E30613"  # KC red — CTA only
  ink:      "#101010"
  paper:    "#FFFFFF"
typography:
  display: { fontFamily: Heebo, fontWeight: 900 }
rounded: { sm: 3px, pill: 999px }
---

## Do's and Don'ts (the why)
- Red is reserved for ONE primary CTA per view.
- No purple, no dark theme, no second face.

A Figma export gives you what. A brand PDF gives you vibes. DESIGN.md gives an agent both — and the judgement to stay on-brand off-script.

Live system

KC Fold, rendered from its own DESIGN.md.

Everything below is the design system this page describes — drawn with the same tokens an agent would read. White paper, a blue spine, red used once.

Colour & roles

primary
#0000FF
KC blue — the spine: links, focus, eyebrows, stats, hover borders
accent
#E30613
KC red — the single primary CTA & brand ticks only
ink
#101010
Headings & dark surfaces
body
#3C3A36
Warm near-black body copy
muted
#6F6C66
Metadata & captions
warm
#FAF9F7
Warm off-white alternate sections
primary-soft
#E8ECFF
Pale blue tint panels & rings
paper
#FFFFFF
Base page background

Typography — Heebo + IBM Plex Mono

display · 900
Regulation into capability
h2 · 800
Translate the rules into skills
lede · 300
A calm, editorial lede that carries the argument in one confident breath.
mono kicker
REG-TO-SKILLS · ALPHA · 18-06-2026

Components

ClaudeAI ActField guide

One red action per view; everything else carries on blue.

This is where a verbatim, approved client testimonial sits in a live deployment — an example component here, quoted exactly and never invented.
Client nameRole · Organisation
Anatomy

Eight ordered sections, after the tokens.

The Google spec pairs a YAML token block with markdown prose in a fixed order — so a linter can check it and an agent always knows where to look.

01
Overview

The atmosphere, mood and one-line brief.

02
Colours

Each role, hex and when to use it.

03
Typography

Families, scale, weight ladder, tracking.

04
Layout

Container, spacing scale, signature grids.

05
Elevation & Depth

Shadow tokens and surface hierarchy.

06
Shapes

Corners, pills, and the fold motifs.

07
Components

Buttons, cards, nav — with every state.

08
Do's & Don'ts

The guardrails an agent must respect.

The KC file adds three more after the canonical eight — Motion, Content & Voice and an Agent Prompt Guide — which is what fuses the visual system with the verbal and regulatory rules.

Where it fits

One file in a family.

DESIGN.md is the look-and-feel member of a small family of markdown files that configure how an AI works — alongside the standing orders, the long memory and the reusable playbooks. The companion piece walks through the whole set: the files that run an AI practice.

Want an AI that stays on your brand?

Kramer Consulting helps teams turn regulation into capability and put AI to work the right way — fluently, accountably, on-brand.