• Explore
  • Pricing
  • Changelog
  • Docs

Real app references and an AI design canvas, for people and their agents.

Product

  • Library
  • App Previews
  • Canvas
  • Agents & MCP
  • Pricing

Integrations

  • Claude Code
  • Cursor
  • Codex
  • ChatGPT
  • All integrations

Resources

  • Documentation
  • MCP server
  • Alternatives
  • Blog
  • Changelog

Company

  • Contact
  • Terms
  • Privacy
  • Cookies

© 2026 Floo.

  • Explore
  • Pricing
  • Changelog
  • Docs
  • Back to blog

    DESIGN.md templates for Claude Code, Cursor and Codex: 4 files you can copy

    Four DESIGN.md files (dashboard, mobile app, landing page, docs) that pass Google's linter, and the screen a fresh Claude Code agent built from each one.

    AAwais Manzoor · Founder, Floo26 Nov 2026 · 4 min read
    DESIGN.md templates for Claude Code, Cursor and Codex: 4 files you can copy

    Your coding agent has read your whole codebase and still has no idea what your product should look like. So it guesses, and it guesses the same way every time. A DESIGN.md is the cheapest fix we know: one file at the root of the repo that tells every agent session what the product looks and sounds like.

    We wrote four of them for the four screens people build most: a SaaS dashboard, a mobile app, a marketing landing page and a docs site. Each one passes Google's DESIGN.md linter with zero errors and zero warnings. Then we handed each file to a fresh Claude Code agent with a single sentence, and we're showing you exactly what came back. Copy them, rename the colours, ship.

    What a DESIGN.md is

    DESIGN.md is an open format from Google Labs (Apache 2.0, spec on GitHub) for describing a visual identity to coding agents. A file has two layers:

    • Tokens in YAML front matter: colours, type styles, radii, spacing and component styles, with references like {colors.primary}.
    • Prose in markdown sections, in a fixed order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Motion, Voice & Content Strategy, Components, Do's and Don'ts.

    The project's own philosophy doc makes the point we'd make too: the prose matters more than the hex codes. Tokens stop the agent inventing a 13th grey. The Overview paragraph is what stops it building the same page as everyone else.

    Claude Code, Cursor, Codex and Gemini CLI don't load DESIGN.md automatically the way they load CLAUDE.md or AGENTS.md, so point at it from there:

    ## Design
    Before any UI work, read DESIGN.md and follow it. If a request conflicts
    with it, say so instead of improvising.
    

    And lint it before you commit, the same way you'd lint code:

    npx @google/design.md lint DESIGN.md
    

    How we tested them

    Each template went to a new Claude Code agent (Claude Opus 5.5) with one instruction, "read DESIGN.md and follow it strictly", and a one-line task like "Build the Overview page of Meterline, a usage-based billing product." One run each, no edits. The screenshots below are the first and only thing each agent produced.

    1. SaaS dashboard: "Survey Office"

    For an app people keep open all day: dense, quiet, numbers first. Graphite on warm paper, one green for good news, monospace tabular figures so columns line up.

    A billing dashboard called Meterline: four KPI cards in monospace numbers, a stacked bar chart of daily revenue in graphite and green, and a table of customers by projected invoice
    What a fresh Claude Code agent built from this file and one sentence: tabular figures, right-aligned numbers, mono labels and a single green, with no shadows on the cards.

    Open the page it built, unedited.

    The rules doing the most work: a 24px ceiling on headline size ("this is a tool, not a magazine"), red reserved for alarms rather than normal negative numbers, and no shadows except on menus and dialogs.

    Download saas-dashboard.md

    ---
    version: alpha
    name: Survey Office
    description: A dense, calm analytics dashboard for a B2B SaaS product. Light theme, tabular data first.
    colors:
      primary: "#17191C"
      secondary: "#646A73"
      tertiary: "#1F7A4D"
      neutral: "#FAFAF7"
      surface: "#FFFFFF"
      on-surface: "#17191C"
      hairline: "#E4E3DD"
      error: "#B42318"
      warning: "#B54708"
      chart:
        series-1: "#17191C"
        series-2: "#1F7A4D"
        series-3: "#8A6D3B"
        series-4: "#5B7DB1"
        series-5: "#A3A8AF"
    typography:
      headline-lg:
        fontFamily: Instrument Sans
        fontSize: 24px
        fontWeight: 600
        lineHeight: 1.25
        letterSpacing: -0.01em
      headline-md:
        fontFamily: Instrument Sans
        fontSize: 16px
        fontWeight: 600
        lineHeight: 1.4
      body-md:
        fontFamily: Instrument Sans
        fontSize: 14px
        fontWeight: 400
        lineHeight: 1.5
      body-sm:
        fontFamily: Instrument Sans
        fontSize: 13px
        fontWeight: 400
        lineHeight: 1.45
      label-sm:
        fontFamily: JetBrains Mono
        fontSize: 11px
        fontWeight: 500
        lineHeight: 1.3
        letterSpacing: 0.06em
      data-lg:
        fontFamily: JetBrains Mono
        fontSize: 28px
        fontWeight: 500
        lineHeight: 1.1
        fontFeature: '"tnum" 1'
      data-md:
        fontFamily: JetBrains Mono
        fontSize: 13px
        fontWeight: 400
        lineHeight: 1.45
        fontFeature: '"tnum" 1'
    rounded:
      none: 0px
      sm: 4px
      md: 6px
      lg: 10px
    spacing:
      xs: 4px
      sm: 8px
      md: 12px
      lg: 16px
      xl: 24px
      2xl: 32px
    components:
      button-primary:
        backgroundColor: "{colors.primary}"
        textColor: "{colors.surface}"
        typography: "{typography.body-md}"
        rounded: "{rounded.md}"
        height: 32px
        padding: 12px
      button-secondary:
        backgroundColor: "{colors.surface}"
        textColor: "{colors.primary}"
        typography: "{typography.body-md}"
        rounded: "{rounded.md}"
        height: 32px
        padding: 12px
      card:
        backgroundColor: "{colors.surface}"
        rounded: "{rounded.lg}"
        padding: 16px
      table-row:
        backgroundColor: "{colors.surface}"
        typography: "{typography.body-sm}"
        height: 40px
      page:
        backgroundColor: "{colors.neutral}"
        textColor: "{colors.primary}"
      divider:
        backgroundColor: "{colors.hairline}"
        height: 1px
      badge-warning:
        backgroundColor: "#FDF0E1"
        textColor: "{colors.warning}"
        typography: "{typography.label-sm}"
        rounded: "{rounded.sm}"
      chart-series-1:
        backgroundColor: "{colors.chart.series-1}"
      chart-series-2:
        backgroundColor: "{colors.chart.series-2}"
      chart-series-3:
        backgroundColor: "{colors.chart.series-3}"
      chart-series-4:
        backgroundColor: "{colors.chart.series-4}"
      chart-series-5:
        backgroundColor: "{colors.chart.series-5}"
      badge-positive:
        backgroundColor: "#E7F2EC"
        textColor: "{colors.tertiary}"
        typography: "{typography.label-sm}"
        rounded: "{rounded.sm}"
    ---
    
    ## Overview
    
    A dashboard people keep open all day, so it has to be quiet. Think of a survey office: tracing paper, graphite, one green pencil for things that went well. Density beats decoration. Numbers are the hero; chrome stays out of the way. The audience is operators and finance leads who scan, compare and export, not marketing visitors.
    
    ## Colors
    
    - **Primary (#17191C):** Graphite. Body text, headings, primary buttons and the first chart series.
    - **Secondary (#646A73):** Pencil grey for labels, axis text, metadata and secondary icons.
    - **Tertiary (#1F7A4D):** Surveyor's green, the only accent. Positive deltas, the selected nav item and focus rings. Never decoration.
    - **Neutral (#FAFAF7):** The page ground, a touch warmer than white so white cards lift off it without shadows.
    - **Hairline (#E4E3DD):** Every border and divider. One weight, 1px.
    - **Error / warning:** Only for states that need action. A red number is an alarm, so don't use red for negative deltas that are normal (use secondary text with a minus sign).
    - **Chart series:** Use in order. Two series is the common case: graphite and green.
    
    ## Typography
    
    Instrument Sans for interface text, JetBrains Mono for numbers, IDs and labels. All numbers use tabular figures so columns line up. Labels above metrics are mono, uppercase, 11px. Headline sizes stop at 24px: this is a tool, not a magazine.
    
    ## Layout
    
    A 240px left sidebar, a 56px top bar, and a content area on a 12-column grid with 24px gutters. Space is tight inside a card (8 to 12px) and generous between groups (24 to 32px). Tables run edge to edge inside their card with 16px cell padding on the sides. Keep the first screen to: KPI row (4 cards), one primary chart, one table.
    
    ## Elevation & Depth
    
    Flat. Cards are white on the warm ground with a 1px hairline; no drop shadows. Only menus, popovers and dialogs get a shadow: `0 8px 24px rgba(23,25,28,0.12)`.
    
    ## Shapes
    
    Small radii: 6px on controls, 10px on cards, 4px on badges. Never pill-shaped buttons.
    
    ## Voice & Content Strategy
    
    Plain, specific and short. "Revenue, last 30 days", not "Your Revenue Insights". Empty states say what to do next in one sentence and offer one button. Dates are absolute in tables ("12 Nov 2026") and relative only in activity feeds.
    
    ## Components
    
    - **KPI card:** label-sm label, data-lg value, then a delta line in body-sm (green with ▲ for good, secondary with ▼ for bad-but-normal).
    - **Tables:** 40px rows, hairline between rows, no zebra stripes, numbers right-aligned in data-md, the first column left-aligned and medium weight. Sticky header.
    - **Filters:** a row of secondary buttons above the table; the active filter shows its value ("Plan: Team").
    - **Charts:** line or bar only, no 3D, no pie charts with more than 3 slices. Gridlines in hairline, axis labels in label-sm.
    
    ## Do's and Don'ts
    
    - Do right-align every numeric column and use tabular figures.
    - Do show units and periods in the label ("MRR, USD", "Last 30 days").
    - Don't use the green accent for anything that isn't good news, selection or focus.
    - Don't add icons to KPI cards or gradient fills to charts.
    - Don't center-align table content or headings.
    - Don't use more than two font weights on one screen (400 and 600).
    

    2. Mobile app: "Allotment"

    A friendly consumer app for tracking a vegetable garden, used outdoors with muddy hands. Big targets, high contrast, one tomato-red accent for the thing to do today.

    The Today screen of a garden app: a list of five jobs with big round checkboxes, a parsnip card showing 12 days to harvest, and one red Log a harvest button above the tab bar
    The agent took the voice rules as seriously as the colours.

    Open the screen it built, unedited.

    The rules doing the most work: 44px minimum targets, the main action in the bottom third of the screen, one tomato element per screen, and a voice rule we wish more apps had ("never guilt").

    Download mobile-app.md

    ---
    version: alpha
    name: Allotment
    description: A friendly consumer mobile app (iOS and Android) for tracking a vegetable garden. Light theme, big touch targets.
    colors:
      primary: "#1B261E"
      secondary: "#5E6B60"
      tertiary: "#C73A26"
      neutral: "#F4F7F2"
      surface: "#FFFFFF"
      on-surface: "#1B261E"
      hairline: "#DCE3D8"
      leaf: "#2F6B40"
      leaf-tint: "#E3EFE4"
      error: "#B42318"
    typography:
      headline-display:
        fontFamily: Bricolage Grotesque
        fontSize: 34px
        fontWeight: 700
        lineHeight: 1.1
        letterSpacing: -0.02em
      headline-md:
        fontFamily: Bricolage Grotesque
        fontSize: 22px
        fontWeight: 600
        lineHeight: 1.2
      body-lg:
        fontFamily: Figtree
        fontSize: 17px
        fontWeight: 400
        lineHeight: 1.45
      body-md:
        fontFamily: Figtree
        fontSize: 15px
        fontWeight: 400
        lineHeight: 1.45
      label-md:
        fontFamily: Figtree
        fontSize: 13px
        fontWeight: 600
        lineHeight: 1.3
    rounded:
      sm: 8px
      md: 14px
      lg: 22px
      full: 999px
    spacing:
      xs: 4px
      sm: 8px
      md: 16px
      lg: 24px
      xl: 32px
    components:
      button-primary:
        backgroundColor: "{colors.tertiary}"
        textColor: "{colors.surface}"
        typography: "{typography.body-lg}"
        rounded: "{rounded.full}"
        height: 52px
        padding: 24px
      button-secondary:
        backgroundColor: "{colors.leaf-tint}"
        textColor: "{colors.primary}"
        typography: "{typography.body-lg}"
        rounded: "{rounded.full}"
        height: 52px
        padding: 24px
      card:
        backgroundColor: "{colors.surface}"
        rounded: "{rounded.lg}"
        padding: 16px
      list-item:
        backgroundColor: "{colors.surface}"
        typography: "{typography.body-lg}"
        height: 60px
      tab-bar:
        backgroundColor: "{colors.surface}"
        typography: "{typography.label-md}"
        height: 83px
      screen:
        backgroundColor: "{colors.neutral}"
        textColor: "{colors.primary}"
      divider:
        backgroundColor: "{colors.hairline}"
        height: 1px
      chip:
        backgroundColor: "{colors.leaf-tint}"
        textColor: "{colors.leaf}"
        typography: "{typography.label-md}"
        rounded: "{rounded.full}"
        height: 32px
    ---
    
    ## Overview
    
    A garden notebook in your pocket. Morning dew on the ground colour, soil-dark ink, and one tomato-red accent for the thing to do today. It should feel warm and a little playful, never childish. Users open it outdoors with dirty hands and bright sun, so contrast is high and targets are big.
    
    ## Colors
    
    - **Primary (#1B261E):** Soil. All text and icons.
    - **Secondary (#5E6B60):** Captions, timestamps, inactive tab icons.
    - **Tertiary (#C73A26):** Tomato, the single accent. The main action on a screen and the "due today" dot. One tomato element per screen.
    - **Neutral (#F4F7F2):** The screen background.
    - **Leaf (#2F6B40) and leaf tint (#E3EFE4):** Plant status ("growing well"), chips and secondary buttons.
    - **Error (#B42318):** Frost warnings and failed syncs only.
    
    ## Typography
    
    Bricolage Grotesque for screen titles and big numbers (days to harvest); Figtree for everything else. Respect Dynamic Type: body-lg (17px) is the default reading size, and nothing a user must read goes below 13px.
    
    ## Layout
    
    Design at 390 × 844 (iPhone 15/16) and check at 360 wide. 16px side margins, 24px between sections. Respect safe areas: the top 59px and the bottom 34px belong to the system. A large title (headline-display) at the top of each root screen collapses to a 17px centred title on scroll. Four tabs at most: Today, Garden, Journal, Settings.
    
    ## Elevation & Depth
    
    Cards sit on the tinted ground with no border and a soft shadow: `0 1px 2px rgba(27,38,30,0.06), 0 4px 12px rgba(27,38,30,0.06)`. Bottom sheets get a 22px top radius and a grabber.
    
    ## Shapes
    
    Generous rounding: 22px cards, 14px inputs, fully round buttons and chips. Plant photos are 14px-rounded squares.
    
    ## Motion & Micro-interaction
    
    Short and physical. Checking off a task scales the checkbox to 1.15 and back in 180ms with a light haptic. Sheets use the platform spring; never custom bounces on lists.
    
    ## Voice & Content Strategy
    
    Talks like a neighbour who gardens: "Water the tomatoes, it's been 3 dry days." Use plant names people actually use. Never guilt ("You missed 4 tasks!"); say what's next instead.
    
    ## Components
    
    - **Today list:** list items 60px high with a 28px round checkbox on the left, plant name in body-lg, a reason in body-md secondary below.
    - **Plant card:** photo, name in headline-md, a chip for status, days to harvest as a big number.
    - **Primary button:** one per screen, full width at the bottom above the tab bar when it's the screen's main action.
    - **Tab bar:** 83px including the home indicator area, filled icon plus label for the active tab, outline icon for the rest.
    
    ## Do's and Don'ts
    
    - Do keep every tap target at least 44 × 44px.
    - Do put the main action within thumb reach (bottom third of the screen).
    - Don't use the tomato accent for more than one element per screen.
    - Don't use hamburger menus; use the tab bar.
    - Don't show plain spinners for more than a second; show the content's skeleton.
    

    3. Landing page: "Harbour"

    An editorial page for a calm B2B product: fog paper, harbour ink, one signal-orange button, the real product as the hero image.

    A landing page for Tidepool: a left-aligned serif headline next to a detailed support inbox, one orange button
    This is run B from our landing page experiment, built from the same brief written as prose. The brief beat a bare prompt on every measure we took.

    This one is the brief from our landing page experiment, rewritten as a DESIGN.md. In that test it produced the shortest page, used the fewest colours and was the only run that didn't invent a testimonial. The one change: we darkened the orange, because the linter caught that white text on the original failed WCAG AA (3.66:1).

    Download landing-page.md

    ---
    version: alpha
    name: Harbour
    description: A marketing landing page for a calm B2B SaaS product (a shared support inbox). Light, editorial, product-led.
    colors:
      primary: "#15202B"
      secondary: "#5B6670"
      tertiary: "#C4441E"
      neutral: "#F3F1EC"
      surface: "#FFFFFF"
      on-surface: "#15202B"
      hairline: "#DDD8CF"
    typography:
      headline-display:
        fontFamily: Fraunces
        fontSize: 64px
        fontWeight: 600
        lineHeight: 1.02
        letterSpacing: -0.03em
      headline-lg:
        fontFamily: Fraunces
        fontSize: 40px
        fontWeight: 600
        lineHeight: 1.1
        letterSpacing: -0.02em
      headline-md:
        fontFamily: IBM Plex Sans
        fontSize: 20px
        fontWeight: 600
        lineHeight: 1.3
      body-lg:
        fontFamily: IBM Plex Sans
        fontSize: 19px
        fontWeight: 400
        lineHeight: 1.55
      body-md:
        fontFamily: IBM Plex Sans
        fontSize: 16px
        fontWeight: 400
        lineHeight: 1.6
      label-sm:
        fontFamily: IBM Plex Mono
        fontSize: 12px
        fontWeight: 500
        lineHeight: 1.3
        letterSpacing: 0.08em
    rounded:
      sm: 4px
      md: 8px
      lg: 14px
    spacing:
      sm: 8px
      md: 16px
      lg: 32px
      xl: 64px
      section: 128px
    components:
      button-primary:
        backgroundColor: "{colors.tertiary}"
        textColor: "{colors.surface}"
        typography: "{typography.body-md}"
        rounded: "{rounded.md}"
        height: 48px
        padding: 22px
      button-secondary:
        backgroundColor: "{colors.neutral}"
        textColor: "{colors.primary}"
        typography: "{typography.body-md}"
        rounded: "{rounded.md}"
        height: 48px
        padding: 22px
      product-frame:
        backgroundColor: "{colors.surface}"
        rounded: "{rounded.lg}"
        padding: 0px
      page:
        backgroundColor: "{colors.neutral}"
        textColor: "{colors.primary}"
      divider:
        backgroundColor: "{colors.hairline}"
        height: 1px
      pricing-card:
        backgroundColor: "{colors.surface}"
        rounded: "{rounded.lg}"
        padding: 32px
    ---
    
    ## Overview
    
    A harbour office at 7am: fog-coloured paper, deep navy-black ink, one signal-buoy orange. The page sells calm competence to 3 to 15 person support teams who are tired of tools built for call centres. Editorial, not techy. The product itself is the hero image.
    
    ## Colors
    
    - **Primary (#15202B):** Harbour ink for all text and the footer background.
    - **Secondary (#5B6670):** Supporting copy, captions, FAQ answers.
    - **Tertiary (#C4441E):** Signal orange (deep enough for white button text to pass WCAG AA), the only accent. The primary button and at most two highlights on the page (for example, the recommended plan's label).
    - **Neutral (#F3F1EC):** Fog paper, the page ground.
    - **Surface (#FFFFFF):** Product screenshots and pricing cards, so they read as objects on paper.
    - **Hairline (#DDD8CF):** Dividers and card borders.
    
    ## Typography
    
    Fraunces (600) for headlines only, with tight tracking. IBM Plex Sans for body copy; IBM Plex Mono, uppercase, for small section labels ("HOW A TICKET MOVES"). Headlines are short: 8 words at most. Body copy is left-aligned with a 64ch max width.
    
    ## Layout
    
    1200px content width centred on a 1440px canvas. 128px between sections, 16 to 32px inside groups. Hero: headline, one sentence and two buttons on the left (5 columns); a real slice of the product on the right (7 columns), slightly cropped by the viewport edge. Then: three benefits with numbers, a 4-step "how it works" strip, pricing (two plans), FAQ, footer.
    
    ## Elevation & Depth
    
    Paper and objects. The product frame gets one long, soft shadow (`0 30px 60px -20px rgba(21,32,43,0.25)`); nothing else on the page has a shadow.
    
    ## Shapes
    
    8px buttons, 14px cards and product frames. No pills, no blobs, no wavy section dividers.
    
    ## Voice & Content Strategy
    
    Calm, competent and a bit dry. Concrete numbers over adjectives: "Most teams answer in under 2 hours by week two." Banned words: revolutionize, supercharge, seamless, AI-powered, unlock, next-generation.
    
    ## Components
    
    - **Hero product slice:** a believable inbox with 5 conversations: real-sounding customer names, subjects like "Refund for duplicate charge", assignee initials and status chips. Never an abstract illustration.
    - **Benefit row:** three columns, each a label-sm label, a headline-md with a number in it and two lines of body-md. No icons on top.
    - **Pricing:** two cards side by side; the recommended one has an orange label, not a different colour card.
    - **FAQ:** a two-column list (question in headline-md, answer in body-md secondary), always expanded.
    
    ## Do's and Don'ts
    
    - Do show the real product above the fold.
    - Do use one orange button per viewport.
    - Don't use gradients, glassmorphism, emoji or icon-topped feature cards.
    - Don't centre long paragraphs.
    - Don't add logo walls or testimonials with invented names; leave a slot for real ones.
    

    4. Docs site: "Reading Room"

    Developer documentation built for an hour of reading and copying code. White page, black type, a green banker's lamp for links, dark code blocks even in the light theme.

    A docs page titled Create an API key: a sidebar of guides, a serif title, a one-sentence summary of what the page lets you do, and an On this page list on the right
    It opened with exactly the sentence the file asks for: what you'll be able to do by the end of the page.

    Open the page it built, unedited.

    The rules doing the most work: every code block runs as pasted (no ... in the middle), task-first headings ("Create an API key", not "API key creation") and no upgrade banners inside articles.

    Download docs-site.md

    ---
    version: alpha
    name: Reading Room
    description: Developer documentation for an API product. Light theme, long-form reading, lots of code.
    colors:
      primary: "#111418"
      secondary: "#5A6270"
      tertiary: "#2E6B4F"
      neutral: "#FFFFFF"
      surface: "#F6F6F3"
      on-surface: "#111418"
      hairline: "#E6E5E0"
      code-ground: "#14171C"
      code-ink: "#E6E3DA"
      note: "#EAF2EC"
      caution: "#FBF1E2"
    typography:
      headline-lg:
        fontFamily: Newsreader
        fontSize: 40px
        fontWeight: 600
        lineHeight: 1.15
        letterSpacing: -0.015em
      headline-md:
        fontFamily: IBM Plex Sans
        fontSize: 22px
        fontWeight: 600
        lineHeight: 1.3
      headline-sm:
        fontFamily: IBM Plex Sans
        fontSize: 17px
        fontWeight: 600
        lineHeight: 1.4
      body-md:
        fontFamily: IBM Plex Sans
        fontSize: 16px
        fontWeight: 400
        lineHeight: 1.7
      body-sm:
        fontFamily: IBM Plex Sans
        fontSize: 14px
        fontWeight: 400
        lineHeight: 1.55
      code-md:
        fontFamily: IBM Plex Mono
        fontSize: 13.5px
        fontWeight: 400
        lineHeight: 1.6
    rounded:
      sm: 4px
      md: 8px
    spacing:
      xs: 4px
      sm: 8px
      md: 16px
      lg: 24px
      xl: 48px
    components:
      page:
        backgroundColor: "{colors.neutral}"
        textColor: "{colors.primary}"
      divider:
        backgroundColor: "{colors.hairline}"
        height: 1px
      code-block:
        backgroundColor: "{colors.code-ground}"
        textColor: "{colors.code-ink}"
        typography: "{typography.code-md}"
        rounded: "{rounded.md}"
        padding: 16px
      inline-code:
        backgroundColor: "{colors.surface}"
        textColor: "{colors.primary}"
        typography: "{typography.code-md}"
        rounded: "{rounded.sm}"
        padding: 2px
      callout-note:
        backgroundColor: "{colors.note}"
        textColor: "{colors.primary}"
        rounded: "{rounded.md}"
        padding: 16px
      callout-caution:
        backgroundColor: "{colors.caution}"
        textColor: "{colors.primary}"
        rounded: "{rounded.md}"
        padding: 16px
      sidebar-link:
        textColor: "{colors.secondary}"
        typography: "{typography.body-sm}"
        height: 32px
      sidebar-link-active:
        textColor: "{colors.tertiary}"
        typography: "{typography.body-sm}"
    ---
    
    ## Overview
    
    A library reading room: white pages, black type, a green banker's lamp. The job is reading and copying code, for an hour at a time. Nothing moves, nothing glows. Developers should find the answer in under a minute and trust it.
    
    ## Colors
    
    - **Primary (#111418):** All text and headings.
    - **Secondary (#5A6270):** Sidebar links, captions, "last updated" lines.
    - **Tertiary (#2E6B4F):** Lamp green, the only accent: links, the active sidebar item, the "Copy" confirmation.
    - **Neutral (#FFFFFF) / surface (#F6F6F3):** The page is white; the sidebar and inline code sit on the warm surface.
    - **Code ground (#14171C) / code ink (#E6E3DA):** Code blocks are dark even in the light theme, so they read as copyable objects.
    - **Note / caution tints:** Callout backgrounds. No icons in brand colours; a one-word label is enough.
    
    ## Typography
    
    Newsreader for the page title only (one per page). IBM Plex Sans for headings and body at 16px with 1.7 line height; IBM Plex Mono for code. Body measure is 72ch maximum.
    
    ## Layout
    
    Three columns on desktop: a 260px sidebar, the article (max 760px), and a 220px "On this page" table of contents that tracks scroll. Below 1100px the table of contents disappears; below 800px the sidebar becomes a drawer. 48px between H2 sections, 16px between paragraphs.
    
    ## Elevation & Depth
    
    None. Hairline borders separate the sidebar and the table of contents. The search dialog is the only floating element.
    
    ## Shapes
    
    4px on inline code and inputs, 8px on code blocks and callouts.
    
    ## Voice & Content Strategy
    
    Second person, present tense, task-first headings ("Create an API key", not "API key creation"). Every page starts with one sentence saying what you'll be able to do, and every code block runs as pasted: no `...` in the middle of a working example.
    
    ## Components
    
    - **Code block:** language label top-left in body-sm, a Copy button top-right, line numbers off by default, highlighted lines in a 6% lighter band.
    - **Tabs for languages:** curl, Node, Python, in that order; the choice persists across pages.
    - **Parameter table:** name in code-md, type in secondary, a "Required" label in tertiary, description in body-sm.
    - **Callouts:** Note and Caution only. Never more than one callout in a row.
    
    ## Do's and Don'ts
    
    - Do make every heading linkable with a hover anchor.
    - Do show the full request and the full response for each endpoint.
    - Don't use more than one accent colour, or coloured icons in the sidebar.
    - Don't put marketing copy or upgrade banners inside articles.
    - Don't truncate code with ellipses.
    

    Write your own in 20 minutes

    Steal the structure and make six decisions. They're the same six that made the difference in our experiment:

    1. Who it's for and how it should feel, in two sentences. Name a place or a scene, not adjectives: "a harbour office at 7am" gives an agent more to work with than "clean and modern".
    2. Five or six colours, each with a job. Ground, surface, ink, muted ink, one accent, and what the accent is for. One accent. Really.
    3. Two typefaces and a size ceiling. One with character for headlines, one calm one for everything else.
    4. What the hero or main screen shows. "A real slice of the product with five believable conversations" beats "an engaging hero".
    5. The sections or screens to build. The agent will add every section it has ever seen unless you list them.
    6. Four don'ts. The defaults you're sick of: gradients, icon-topped feature cards, fake testimonials, centred walls of text.

    Then run the linter. Ours caught three contrast failures we'd have shipped, two buttons and one chip, before any agent ever read the files.

    Why a file isn't the whole answer

    A DESIGN.md gets the agent's first draft into the right neighbourhood. It doesn't see the page. Every demo above still has something a person would change, and the only way to catch that is to look at what the agent made, together, before it becomes production code. That's the job Floo does: your agent designs real HTML on a shared canvas, follows the style guide you pin there, and your team comments and approves in the browser. The DESIGN.md you write today works there too.