Skip to main content
AI ·

What is DESIGN.md? An open-source guide with real examples

Ask an AI coding agent to build a settings page and it has to guess. DESIGN.md is where you write down your colors, type, and component rules so it can look them up. Here’s what goes in the file, a side-by-side test, and where to find real examples.

Close-up of a wooden lattice panel with a repeating geometric star pattern.

Ask an AI coding agent to build a settings page and it has to guess. Which button gets the accent color? How much space between sections? What does the error message say? Dozens of small, subjective decisions your team has to make— DESIGN.md is where you put those decisions so the agent can look them up.

What is DESIGN.md?

DESIGN.md is a plain-text format that describes a product’s visual identity and interface rules. You can use it to tell your agent various critical aspects about your brand like colors, typography, etc. This is a similar convention to AGENTS.md which tells coding agents how to contribute to a technical project while adhering to your established standards.

This emerging convention originated from Google Labs’ Stitch product, and Google published the draft spec under Apache 2.0 in April 2026. You write it by hand, keep it in your project folder, and hand it to an agent that’s doing work on your behalf. The spec is still in alpha, which is worth knowing before you build a process around it. Google’s announcement · Open specification and tooling

Why use DESIGN.md?

Consistency across screens and contributors is the obvious pitch. Fair enough. But the more useful part is what happens on a screen nobody has designed yet. A token says the primary green is #285943. A sentence says to save that green for the main action. Put both in front of an agent and it has something to go on instead of guessing. In a world of non-deterministic outcomes, context is king.

For a product you already ship, start by writing down the tokens and components you use today. Then point the agent at DESIGN.md when you ask for a new screen and tell it to reuse them. Designers and developers get a shared reference they can review next to the code. Google’s format guide · Nuxt’s first-party example

What goes in a DESIGN.md file?

YAML holds the exact values. Markdown says when and why to use them. You can use YAML front-matter to specify named colors, type styles, spacing, corner radii, motion timing, and component styles. The prose handles layout, elevation, component states, focus behavior, and the wording in labels and error messages. I’d start with the decisions that keep coming up and leave out the sections that don’t apply. The spec lets you do that. Full format specification

Here’s an example DESIGN.md file for a mock brand called Fieldnotes that I created to help illustrate this concept...

markdown
---
name: Fieldnotes
colors:
  primary: "#285943"
  paper: "#FAF7EF"
typography:
  body:
    fontFamily: system-ui
    fontSize: 1rem
rounded:
  md: 8px
spacing:
  md: 16px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.paper}"
    rounded: "{rounded.md}"
    padding: "{spacing.md}"
---

## Overview

Fieldnotes is a reading app with warm, quiet surfaces.

## Colors

Use paper for reading surfaces. Reserve the green fill for the main action.

## Components

Use the primary button for saving an article. Render secondary actions as text links.

Pretty simple. You can see at the beginning I've got labels and values and they're indented logically with spaces so you can easily review the various values there and how they relate to each other. Below that you can see it's just plain Markdown that expresses various aspects of the brand positioning in natural language.

While this is a very simple example, you could imagine a much more comprehensive file articulating many different aspects of how to work with your brand digitally. And because it's just natural language, you can be as expressive as you need to be.

With and without DESIGN.md: one prompt, two screens

I asked Codex to build the same Fieldnotes article screen twice. Same copy, same working save button, same model, same prompt. Each run started in a fresh folder. Only the second one had DESIGN.md in it. I captured both at 840 × 580 pixels.

Two Fieldnotes article screens side by side. The version without DESIGN.md uses a two-column layout with a street illustration. The version with DESIGN.md uses a centered reading column, sans-serif body text, and a green Save article button.

Two Fieldnotes article screens side by side. The version without DESIGN.md uses a two-column layout with a street illustration. The version with DESIGN.md uses a centered reading column, sans-serif body text, and a green Save article button.

Both runs picked a cream background and a green Save article button. The file didn’t cause that. It just made those choices exact on the right: the paper and green values from the spec, system sans-serif body copy, 16 pixels of padding, an 8-pixel corner radius. The left run used an illustrated two-column layout. The right one used a single reading column. I ran this twice, not twenty times, so I’m not going to claim the file decided the layout.

To be clear, it says nothing about layout or illustration. Those were the agent’s calls.

How do you export DESIGN.md to Tailwind CSS?

The file isn't only for agents. For example, Google's CLI (v0.4.0) can turn the values specified within DESIGN.md into code a developer can use.

bash
npx @google/design.md export --format css-tailwind DESIGN.md > theme.css

The CLI supports several different output formats (see CLI export documentation). The above command exports the Tailwind v4 version of the Fieldnotes design system which results in the following output:

css
@theme {
  --color-primary: #285943;
  --color-paper: #faf7ef;
  --font-body: "system-ui";
  --text-body: 1rem;
  --radius-md: 8px;
  --spacing-md: 16px;
}

The result is an extensible source of truth that can inform your engineering & marketing tasks alike, regardless of the agent or AI tooling you prefer.

Where can you find DESIGN.md examples and tools?

Fieldnotes is a trivial example, obvs. I kept it small enough to fit in a digestible post. But if I have sufficiently piqued your curiosity and you’re interested in seeing some real-world examples—see below.

  • Paws & Paths: Google’s sample for a pet-care app pairs the source file with a Tailwind v3 theme and a JSON token file. Source file · Tailwind theme · JSON tokens

  • Nuxt: A first-party example that explains where to use the green accent, how to handle light and dark modes, and which existing components to reach for. The design kit shows the brand in practice. Source file · Live design kit

  • Supabase-inspired design: An independent analysis with a browser preview showing how the palette and type scale translate into buttons, forms, and pricing cards. Source file · Live component preview

If you want to write your own, the following four references are great places to start. Google's has the spec and the CLI. Two are collections of files to borrow from, and the last one renders a preview of a file you wrote.

  • Google Labs’ design.md is the Apache-2.0 specification, CLI, and sample files in one repo, and the place to start with the format itself. GitHub repository · Sample files

  • Design.md Library is an MIT-licensed, community-maintained collection of reusable files. GitHub repository

  • Awesome Design MD is an MIT-licensed collection of community analyses of public websites. Its companion, Official Design MD, indexes files published by the teams themselves. Before reusing any of them, check the license on the linked file and on any fonts or brand assets it references. Community collection · First-party index

  • Jeftar Mascarenhas’s design-md toolkit is an Apache-2.0 project with a Python tool that renders an HTML preview from your own file. GitHub repository

How do you write your first DESIGN.md file?

For a first file, pick a screen you already ship and write down the choices you’d want carried into the next one. A settings page is where I’d start. If the file lets someone pick the right button, the spacing, and the error copy without coming back to you, it’s done its job.

Frequently asked questions

Who created DESIGN.md?

Google. The format came out of Google Labs’ Stitch product, and Google published the draft spec under the Apache 2.0 license in April 2026. The specification, the CLI, and the sample files all live in one open-source repo.

What is the difference between DESIGN.md and AGENTS.md?

They follow the same convention and cover different ground. AGENTS.md tells a coding agent how to contribute to a technical project while sticking to your established standards. DESIGN.md describes the product’s visual identity and interface rules: colors, typography, spacing, components, and when to use each.

Is the DESIGN.md spec stable?

Not yet. The spec is still in alpha, which is worth knowing before you build a process around it.

Does DESIGN.md control the layout an AI agent produces?

Only if you write layout into it. In my test, the file made the colors, body type, padding, and corner radius exact. It said nothing about layout or illustration, so those stayed the agent’s calls. I ran that comparison twice, not twenty times, so I wouldn’t read more into it than that.

Do I have to fill in every section of DESIGN.md?

No. Start with the decisions that keep coming up and leave out the sections that don’t apply. The spec lets you do that. The Fieldnotes file in this post has two colors, one type style, one radius, one spacing value, and a single button.

Does DESIGN.md work with any AI coding agent?

It’s a plain-text file in your project folder, so it isn’t tied to one agent or tool. I used Codex for the comparison in this post. Point whichever agent you use at the file when you ask for a new screen and tell it to reuse the tokens and components it finds there.

Can I reuse someone else’s DESIGN.md file?

Check the license first. The community collections are MIT-licensed, but the individual files in them are often analyses of someone else’s public website. Before reusing one, check the license on the linked file and on any fonts or brand assets it references.


Taylor’s career started in Lexington, KY designing and developing big-name collegiate athletic sites like ukathletics.com and texassports.com. Later, while working at Creative Department in Cincinnati, he pushed his analytical side, working on brands like Tide, Macy’s and LexisNexis.

Taylor joined the Ample partnership in 2014 and in his role as our Chief Technology Officer has pushed our company and clients to the next level. As our senior technology evangelist, Taylor has a passion for simple, battle-tested architectural solutions that drive down costs and increase confidence for our clients.

Stay in the know

Sign up for our email newsletter. Nothing spammy about it — just a monthly rundown of what we're sharing.