unslopkit

Blog

Give your coding agent a DESIGN.md

A DESIGN.md is the values and the judgment you hand an agent before it writes UI. Here is how to make one in Unslop Kit and where to put it.

5 min read

By Vic

A coding agent will invent a look when you do not give it one. Ask for a clean marketing page and the draft often arrives with a purple gradient, a default sans, a pill badge over the headline, and three equal cards. The agent is guessing. A DESIGN.md file is the guess you replace with a decision.

This file used to be called brand.md. Kits made since November 2026 name it DESIGN.md, and still include a short brand.md that points to it, so older projects keep working.

Unslop Kit writes that file from a kit you already chose. The YAML at the top is the source of truth for colors, type, radii, spacing, and shadows. The prose under it is the judgment: what to do, and what to refuse.

Make the kit first

The file is only as specific as the kit behind it.

Open the library and mark sections, palettes, and type. Love is a strong vote. Like is a weaker one. Avoid is a veto. Blend turns those marks into one palette, one type pairing, and one component style. When two kept picks disagree, Blend asks you to pick a winner, or to let Unslop decide from the coherence score.

You can also start from a page. Paste a public URL on the homepage or at Extract, then choose Use as my kit. Pull a site's design values walks through what that reading keeps and what it leaves behind.

Then open the Brief step in Build. Fill it in before you copy anything:

  • Product name. This becomes the wordmark and the title of the file.
  • One line. What the product is, in a sentence a person could say out loud.
  • Audience. Name the people. "Users" is not a name.
  • Three words. These show up as the personality.
  • Personality. A sentence of your own. Leave it blank and the file tells the agent to be plain and specific.

The brief is the north star and the voice. An empty brief still produces a file, and the file says so, with placeholders you should replace.

What the file contains

The front matter lists the color roles: ink, paper, surface, line, muted, accent, accent ink, highlight, and danger. It lists a type role for display, headings, body, small text, and mono. Each role has a family, a size, a weight, a line height, and letter spacing. Radii, the spacing scale, the container, the gutter, and the component recipes sit there too. Primary button, accent button, ghost button, card, and input each point back at those tokens instead of inventing a second set of numbers.

Under x-unslop you get the kit id, the sections you kept, and the ones you avoided. The prose tells the agent to build from the kept section ids and to treat avoid as a veto.

The words under the YAML turn those values into rules. Pages use paper. Raised items use surface. There are no gradients. Text is ink. Secondary text is muted, and muted is as light as body copy gets. The file records the contrast of ink on paper and muted on paper. One accent covers links, focus rings, and at most one accent button in a viewport. Primary actions are ink buttons. Display type and body type are named, so the agent has a face to use. Radii stay in one family. Full rounding is for avatars.

The refusal list is explicit. The agent is told to reject purple or blue gradients, mesh or aurora backgrounds, glow blobs, Inter or Geist as the default, the cream paper and sage combination, a pill eyebrow over the hero, three icon cards, emoji in headings, stock phrases, fade-up on every element, and transition-all. If the token lint finds one of those tells in the kit, the finding is written into the file, so you see it before the agent does.

Hand it over

On the Export step in Build, Copy DESIGN.md puts the markdown on your clipboard, and Every file lets you open and download DESIGN.md on its own. Download kit zip packs the file with the token outputs: DTCG JSON, a Tailwind v4 theme, a shadcn theme, and CSS variables. The zip also has wordmark SVGs and a short guidance note, a favicon template, an OG template, and prompts for Cursor, Claude Code, v0, Lovable, and Bolt.

Unzip it at the root of the project that should wear the kit. Copy prompts/cursor.mdc to .cursor/rules/brand.mdc, and paste the Claude prompt into CLAUDE.md or AGENTS.md, so the next run sees the instruction.

Or skip the zip. Connect the Unslop Kit MCP server once:

claude mcp add --transport http unslop-kit https://unslopkit.com/mcp

Then copy the kit code from the Export step and ask your agent to load it. It writes DESIGN.md, the tokens, and the Cursor rule into the project.

Put DESIGN.md in the repo, next to the code. Tell the agent to read it before it writes UI. Point it at tokens/tailwind.css or tokens/shadcn.css for the values. The file already says the rule: do not invent a color, a radius, or a spacing step. If something is missing, stop and ask.

The Check step is the place to look at your picks in the current kit before you ask for a new page. Ask for one section, matching a section id from x-unslop.picks when you kept one. Read the result against the refusal list before you ask for the next section.

Before you export

Two checks sit on the Export step.

The slop lint looks at the token set. It flags a purple accent, Inter or Geist, paper at #faf8f4, pill controls, and text pairs that miss WCAG AA, which is 4.5:1. Clear the findings, or know that you are handing the agent a kit that already breaks its own rules. The lint does not lock the buttons. An open blend conflict does: Copy, Download, and the kit zip wait until each conflict has a winner.

Public-brand similarity compares the kit with a private list of numeric style profiles. Those profiles are numbers, not pages. A score of 0.60 warns and names the nearest profile. A score of 0.75 blocks Copy, Download, and the kit zip until you change a pick or mark the kit as your own brand. The checkbox is the sentence on the meter: this is your brand, and you are not cloning the public profile it named. The score stays on the file either way, under x-unslop.similarity.

Related