Introduction

On a presale website for an enterprise B2B client, most of my design decisions were small: how a caption under a figure wraps, how much leading a short label needs, how a numbered list aligns its numerals. Each one was agreed in minutes. The problem was that an agreement in a review thread lives exactly as long as the people who were in that thread remember it.

So the working rule became: a design decision is finished only when it exists in three places — as a reusable utility in the codebase, as a documented story in Storybook, and as a pattern section in the Figma design system. Anything less is a one-off fix that will be broken again on the next page.

This article walks through one rule end to end and explains why a fix should become a pattern before it is considered done.

From a comment to a utility

Take captions under figures in long-form sections. The review feedback was simple: they looked heavy, and long captions broke into one long line and one orphan word.

The tempting fix is local: adjust the font size on that one component. Instead, the decision was written as a named caption utility with three properties that answer the feedback directly:

  • a size one step smaller on mobile than on desktop — lighter than body text, still readable;
  • a line height tighter than body text — tight enough for short labels, which rarely run past two lines;
  • text-wrap: balance — the browser evens out line lengths, so there is no orphan word.

The name matters as much as the values. A component that uses the caption utility explains itself to the next person who opens the file; a component with three hand-tuned values invites a fourth. Where a matching named style already exists, it wins over a new one-off size — the type scale grows only when a real new role appears.

Storybook as the rulebook, not a component zoo

A component library in Storybook usually shows what exists. Ours also had to show what was decided. So next to the type scale there is a story of typography rules: each rule in a sentence of plain English, an example rendered with the real utility, and a line on when to apply it and when not to.

The point is where the rule lives. A developer takes a component from Storybook; if the rule about captions sits one click away from the caption component, it gets read. The same rule in a review thread or a chat message gets lost by the next sprint.

Writing the rules in the language developers read every day also forced them to be precise. “Captions should feel lighter” cannot go into a story. “a smaller size, tighter leading, balanced wrapping, used under figures and for short labels only” can.

Figma: one pattern, one section

The third home for a rule is the design system file. The convention that held up: every new pattern gets its own section on the design-system page, numbered and named — not tucked inside Typography, not inside the page where it first appeared.

Each section shows the pattern with its content variants (more text, less text, with a button, with a list, the short edge case) and its adaptives at desktop, tablet and mobile widths. That is more work than one frame, and it is the work that prevents the next surprise: a pattern that was only ever drawn with short copy breaks on the first page with long copy. Drawing the variants is how the rule gets tested before a developer meets it.

The reason a pattern is not filed under Typography or Layout is navigation. A designer looking for “how do we do long text in columns” scans section names; a rule hidden three levels inside another section is a rule that will be reinvented.

Fixes are patterns: sweep the whole site

The hardest discipline is what happens after a fix. Any layout or style fix that can recur on the site is done as a pattern, not as a one-off: shared component or utility first, then every occurrence on the site found and switched to it, then Storybook and Figma updated.

The first case was a numbered list: the numerals needed their own column and an even gap, and the same list appeared on several pages with slightly different hand-made spacing. Fixing the one that was reported would have left the others drifting. Fixing the pattern fixed all of them and removed the drift for good.

When the site-wide sweep is too big for the current task, the task is still finished — the pattern is made and applied where it was found — and the sweep becomes its own task in the queue. What does not happen is a silent local fix with a note to “do the rest later”.

What it costs and what it saves

Every rule costs more than its fix. The utility is quick to write; the story and the Figma section take far longer once variants and adaptives are drawn. On a site with many pages that is a real tax on small decisions.

What it buys is the end of a specific kind of conversation: “how do we do captions here?” asked again by a different person on a different page. The rule answers before the question is asked, and the answer is the same every time. Over a project of many pages and several people, the time spent per rule is recovered many times in review rounds that do not happen and fixes that are not redone.

Takeaway

Agreement → utility → story → section in Figma. Only then is a decision “done”. A rule that lives in one person’s memory, or in one component’s hand-tuned values, is not a rule — it is a fix waiting to be broken again. Writing it into the code and the system is not extra work after the decision. It is the decision.