The rules behind every component, from the design system document in the repository.

Surfaces

The page is a warm cream, never pure white. Cards are one step lighter, floating chrome such as a menu is white, and dark mode keeps the same steps on a near-black ladder.

Type

One family, Sofia Sans. Body text is weight 450, and headings are 500 with tight tracking. Uppercase is reserved for the small eyebrow label with its accent dot.

Corners

Corners come from a gapped scale: 6, 20, 24 and 40 pixels, pills and circles, and nothing in between. Rounded inside rounded is concentric: a part in a holder's corner takes the holder's radius less the gap between them, so the two curves share a center and the band between them keeps one width. A surface, a row or a frame that fills to the holder's edge takes max(0px, calc(var(--holder-radius) - var(--holder-border) - var(--holder-pad))); a button or another control keeps its own shape and moves out of the corner, to the holder's --holder-corner-inset, rather than taking one smaller corner. It moves down, so a trailing action stays on the end edge of the fields above it; only a single-row holder, such as a toast, moves it inward. Never copy a holder's radius onto what it holds.

Color carries meaning

Signal orange is only for consent and legal actions. Clay means unsaved. Error and success mean exactly that. None of them is ever decoration, not even in sample content.

Measured, not chosen by eye

Every color pairing is checked against WCAG contrast in both modes, and every control boundary clears 3:1. The full reasoning, with each measurement, is in the design system document.

esc

↑ ↓ to move↵ to open