Product · 9 min read · Updated 2026-11-22

The design system

The palette, the type scale, the spacing and the components, and why they look like this.

Dark, gold, serif

The app is near-black so the documents stand out as white pages. Gold marks exactly one action per screen. Serif is for headlines only, sans for everything else, mono for anything you copy: an invoice number, a token, a code.

A light mode exists and follows the same rules instead of inverting them. The gold darkens enough to stay legible on paper, the document pages stay white in both modes, and the serif and the spacing do not change. Settings → Appearance switches between dark, light and system, and the choice is stored on the device.

Six states, every element

Default, hover, focus, active, disabled and loading. A button that is saving says so and cannot be pressed twice. A field that is invalid says why, in a line under the field, and keeps the label visible so the message has a subject.

Fields add a label, a helper and an error line. Related inputs live in a fieldset with a legend, so a question and its options never drift apart. Optional fields say (optional) in the label, because a required-looking optional field is a small lie that costs trust.

Plain CSS, named tokens

There is no utility framework and no CSS-in-JS. The tokens are custom properties: colour, type, spacing, radius, shadow, transition. A component reads the token, never a raw hex, which is what makes the light mode a twenty-line override rather than a second stylesheet.

Motion is a token too: 150ms for a state change, 200ms for a panel, and longer only for the public visuals. Reduced motion is honoured at the token level, so every animation collapses at once.

Using the gold sparingly

The gold is the accent, not the palette. One primary action per screen, and everything else is a ghost or a quiet secondary. The moment two gold buttons compete, neither reads as the next step, which is the whole reason the rule exists.

The type does the rest: a serif headline for the document feel, a sans body for reading, a mono face for anything a reader might copy — invoice numbers, links, totals. If a number matters, it is mono; if a sentence matters, it is sans. Mixing the two in the same line is how a clean page starts to feel assembled.

  • Dark is the brand; light is a courtesy. The gold survives both.
  • Spacing does more for a premium feel than any border or shadow.
  • Never hardcode a colour in a component; use the token so both modes stay correct.

Reading a page at a glance

A page is read in three passes: the shape, the headings, then the body. The shape is spacing and contrast — where the eye lands first. The headings are the argument in miniature. The body is the detail only a convinced reader reaches. A page that fails the first pass is never read, no matter how good the third is.

That is why spacing and one accent colour do more than any ornament. A generous margin, a clear hierarchy and a single gold action make the page feel considered without decoration. When a page feels busy, the fix is almost always fewer elements, not smaller ones.

  • One primary action; everything else is quiet.
  • Space groups content more reliably than borders do.
  • If everything is emphasised, nothing is.

Type sizes that hold up

Three sizes are enough for a document: a headline, a section heading, and body text. Add a fourth for captions and stop. The moment a page has six sizes, the reader starts looking for meaning in the difference and finds none, and the hierarchy becomes decoration.

The same logic applies to weight. Two weights — regular and medium — carry a document; a third only works if it marks something specific, like a number in a table. And the line length matters more than the size: around seventy characters per line is comfortable on a laptop, and the column should narrow rather than the font shrink on a phone.

Serif headings with a sans body is the combination the product uses, and it works because the two faces do different jobs. A serif heading reads as a document; a sans body reads as an interface. Mixing a serif body with a serif heading is not wrong, it just makes long reading harder at small sizes.

  • Three sizes, two weights, one accent colour.
  • Narrow the column before shrinking the type.
  • Never set body text below 15px on a phone.