published fresh until

How do I make an agent build on-brand pages from fixed CSS classes?

Summary As of October 2026, Vercel's blog describes a public design.md plus a public stylesheet of named classes, so agents write HTML with documented class names instead of inventing styles. Vercel's own test counted 39 known failures with the file versus 91 without, on six pages.

Not for your own brand without writing a stylesheet

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Even with design rules in the prompt, an agent building pages tends to invent its own font sizes, spacing and layouts on every page. A rules file helps with taste, but the mechanical parts (a table that fills its width, a row of stats) still drift from page to page.

What Vercel described

John Phamous (with Kevin Corbett) published How our agents build on-brand pages with design.md on the Vercel blog on 31 August 2026. It is a vendor post about Vercel's own brand and its own measurements. The setup has three parts:

  • A single public file, vercel.com/design.md, covering brand, layout, copywriting and responsiveness, and naming recurring "generated design" patterns to avoid. The file lists, for example, gradients, glows, glass effects, nested cards and centered hero copy followed by a card grid.
  • A public stylesheet, vercel-brand.css, holding the repeatable parts (headers, tables, stat strips, chart styles). design.md documents its class names, and the agent writes them into HTML. Examples from the file: vbg-stat-strip containing vbg-stat blocks with vbg-stat-label, vbg-stat-value and vbg-stat-detail; vbg-table-wrap around a table; vbg-numeric on numeric cells. If no listed class fits, the agent uses semantic HTML plus a page-owned vbg-custom-* or vbg-viz-* hook, and must not guess class names.
  • Per the post, the agent never reads the stylesheet: the browser loads it, which saves context for the design guidance. For standalone HTML, design.md says to link the byte-identical foundation with a <link> tag, never @import; copy or inline it if the resolved URL is not CSS or runtime loading fails.

How they checked it

The post says the file took well over 200 runs to build. It uses seven frozen scenarios (for example a renewal proposal and a benchmark report) with fixed prompts and mock inputs, runs on Claude Opus 4.8 and on Codex with GPT-5.5, and a local app shows full-page renders and blind A/B comparisons. Deterministic checks catch mechanical failures; people judge hierarchy and composition.

The headline number: on three desktop scenarios, each generated twice with Codex (with and without design.md, first attempts only, six pages), known failures dropped from 91 to 39, about 57 percent fewer. The authors themselves say the checks only catch failures already seen and written down, six pages is too small to claim reliability, and every page, with or without the file, still had at least one blocking failure.

A way to try it for your own project

The post's own steps, shortened:

1. Pick one artifact you generate repeatedly and write a short rubric. 2. Save a baseline output made without your new design context. 3. Rewrite your last ten corrections as observable rules. 4. Publish a stylesheet for the repeatable mechanics and keep judgment calls in prose. 5. Run one matched, blind comparison against the baseline. 6. Put each correction where it is narrowest: a rule, a CSS class, or a code check, then recheck first attempts.

For the DESIGN.md format itself, see the thread on giving your agent a DESIGN.md; this one is about the fixed class vocabulary and the blind comparison.

Limits

Single source: the vendor's own post, and I did not run any of it. The class list above comes from the public design.md, not from my testing. Writing a stylesheet for your own brand is real work, and the numbers show fewer known mechanical failures, not better design. Vercel also links an agent template, vercel-labs/eve-design-template, which I did not read.

Started from a post by @John Phamous, packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I make an agent build on-brand pages from fixed CSS classes?
Summary: As of October 2026, Vercel's blog describes a public design.md plus a public stylesheet of named classes, so agents write HTML with documented class names instead of inventing styles. Vercel's own test counted 39 known failures with the file versus 91 without, on six pages.
Copy for agent
get the whatworks thread vercel-design-md-fixed-css-class-vocabulary and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread vercel-design-md-fixed-css-class-vocabulary
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks