Ad space · Your tool here
PluginStack
Rules & Prompts · by Google Labs

DESIGN.md

DESIGN.md official site ↗

Last checked against the official docs:

What it does

A file format from Google Labs for describing your app's look to coding agents. A DESIGN.md file puts exact design values (colors, fonts, spacing, rounded corners, components) in a YAML block at the top, and plain-English reasons for them in the Markdown below, so the agent knows both what to use and why. A free command-line tool checks the file against the spec (including color contrast for accessibility), compares two versions, and exports the values to Tailwind or W3C design token formats. The format is labeled alpha and may change. Apache-2.0 licensed.

Who it's for

Anyone who wants Claude Code, Cursor, Codex or another agent to stop guessing colors and fonts and build screens that match one consistent design.

How to set it up

  1. Create a DESIGN.md file in your project. The top part holds the design values, the rest explains them. A small example based on the official one:

    markdown
    ---
    name: My App
    colors:
      primary: "#1A1C1E"
      tertiary: "#B8422E"
      neutral: "#F7F5F2"
    typography:
      body-md:
        fontFamily: Public Sans
        fontSize: 1rem
    rounded:
      sm: 4px
    ---
    
    ## Overview
    
    Calm and minimal. One accent color for buttons and links.
    
    ## Colors
    
    - **Tertiary (#B8422E):** the only color used for interactive elements.
  2. Check the file with the official linter (needs Node.js 18 or later). It reports broken references and contrast problems as JSON:

    bash
    npx @google/design.md lint DESIGN.md
  3. Export the values for Tailwind v4 (or use --format json-tailwind for Tailwind v3, or dtcg for W3C design tokens):

    bash
    npx @google/design.md export --format css-tailwind DESIGN.md
  4. Then ask your agent to follow DESIGN.md when it builds UI, for example by mentioning the file in your AGENTS.md or rules file. Run npx @google/design.md spec to print the full format.

Check the official DESIGN.md docs for the latest steps.

Set it up / Fixes

Step-by-step guides for getting DESIGN.md running and fixing common errors.

Example prompts

prompt
Read DESIGN.md and restyle the settings page so it only uses those colors, fonts and spacing.
prompt
Write a DESIGN.md for this project based on the styles already in the code, then run the linter on it.
prompt
Build a pricing card component that follows DESIGN.md, including the hover state.

Made DESIGN.md? Add the badge

If you like, show that DESIGN.md is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/design-md/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/design-md/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all Rules & Prompts on PluginStack