Follow this design guidance for every screen, page and mockup you make with me. Save it as DESIGN.md at the root of this project and point to it from AGENTS.md or CLAUDE.md, so later sessions follow it too. Depart from it only with a reason you can state, written next to the decision.
Principles
- As little design as possible, with enough definition that it feels finished (Rams). Start in black and white. Everything added has to earn its place.
- Start from system components and remove, rather than starting custom and adding.
- Borrow from the best product in the category, by name, and say what you’re borrowing.
- A native app should only be possible on its platform, with no web-port tells.
- Mock up anything new and get my feedback before building it. Then judge the working build on a real device. The mockup sets direction; the device decides.
- Start with a one-page style sheet, before any screen: each type size in real content with its role, each color with light and dark values, the spacing scale and radii on real components, and the hardest alignment shown before and after. It matches the tokens file. Get my sign-off before building screens.
Type (Bringhurst)
- System sans by default:
system-ui on the web, SF through the text styles on Apple platforms. A custom face only when the product’s identity depends on it.
- Four sizes and two weights at most. Build hierarchy from weight and gray, and emphasize by de-emphasizing the rest (Refactoring UI).
- 45 to 75 characters per line. On the web, body 15/20 for reading and 13/18 for dense data.
- Tabular numerals in anything that updates or lines up. True minus signs and curly quotes.
- Let text scale with the platform’s text styles or relative units, reflowing instead of truncating.
Color
- Ink, two grays and hairlines. Color marks identity or warnings, nothing else.
- One tint, for what’s tappable. Reserve any accent for a single thing.
- Secondary text at 4.5:1 contrast or better.
- Follow the system’s dark mode and contrast settings. Semantic colors give you both.
Layout (Müller-Brockmann)
- Every number comes from one tokens file (
tokens.css, Style.swift): spacing, sizes and radii. A literal number in a view is a bug unless a comment says why. Write the file before the first screen, and use the same values in mockups.
- Spacing on a 4-point scale: 4, 8, 12, 16, 24, 32, 48. Nothing in between. 4–8 inside a group, 12–16 between items, 24–32 between sections. At most four distinct gaps on a screen.
- One gutter, one strong left edge: 16 on iPhone, 20 on Mac, 16–24 on the web. Titles, text, lists, buttons and fields start on it.
- Indents are shared keylines. A list’s text column is gutter + icon + gap in every row. Values, chevrons and buttons end on one trailing edge.
- Items side by side share a center line, or a first baseline for multi-line text. Controls in a row share one height. Rows of the same kind share a height and padding.
- Padding is symmetric and at least the gap between the children.
- Three radii at most: small, medium and capsule, which is exactly half the height. Nested corners are concentric: inner radius = outer radius − inset.
- Whitespace and alignment before borders. Dividers are 1 px hairlines.
- Density is good. Space separates groups; it doesn’t pad every item.
- Nothing jumps between screens. Header height, title position, gutter, row height and button sizes stay the same, and controls stay in place across steps.
Data (Tufte, Cleveland, Few)
- Show amounts by position, then length. Avoid area, angle and color for quantities.
- Label directly. No legends, gridlines, gradients or shadows.
- Small multiples share a scale.
- A dashboard fits one screen, key figure top left. Never show a value twice.
- Show live state by shape as well as color.
Interaction (Norman, Victor)
- Show the answer instead of asking for clicks. Every control looks usable and responds at once.
- Targets of at least 44 points. On a phone, primary actions within thumb reach and destructive ones out of it.
- Prefer inline Undo to a confirmation. Ask first only for what can’t be undone.
- Motion is fast and never on keyboard actions. Gestures track the finger, can be interrupted and use springs. Respect Reduce Motion.
- Visible focus and keyboard shortcuts wherever there’s a keyboard.
States
- Design empty, loading, offline, error and the longest real value, at the largest text size.
- Give each state its own words. “No results” and “Not following anyone” are different situations.
- Show what’s saved at once and sync quietly. No full-screen spinners.
- Realistic data, never lorem ipsum.
Copy (Krug)
- Halve the words, then halve them again. Buttons are verbs.
- No decorative titles or subtitles, eyebrow labels, helper text, emoji, decorative icons, pill badges, three-card rows or purple gradients. Explanations go behind a “?”.
Before you call it done
- Look at every changed screen at actual size: light and dark, narrowest and widest width (390 px and desktop on the web), longest real text. A clean console.
- Measure, don’t eyeball. On the web, run a script in the page that reads
getBoundingClientRect() and lists edges 1–3 px apart, rows off center, controls of different heights side by side, and gaps or radii off the scale. On native, check screenshots at 1× against the tokens. Fix each near-miss in the tokens first. Compare the build with the mockup by number.
- Squint. The hierarchy should still read.
- Delete each custom element in turn. If the system’s version would do, or nothing is lost, leave it out.
- Report in a few lines with before and after screenshots, at most five things to try and three decisions, each with your recommendation.
- Record my feedback and decisions in
DESIGN.md, including what was tried and rejected, and don’t reopen them without me.