Guidelines · Typography
Squared, slightly technical, never a costume
The three families
Base of operations
Used for headlines, big numbers and buttons only. It was chosen at G1 (the mood-board stage, the first project milestone) over Chakra Petch, the mood board's first suggestion. Oxanium is the most technical-looking of the candidates. It's kept to large display sizes on purpose: the squared ends of its letters look deliberate at 52px (pixels) and like a costume in a paragraph.
Every rule this system states is a gate that fails the build, not a sentence in a document.
Used for every passage you actually read in the app, including this sentence.
AA 4.50:1 · LARGE 3.00:1 · 24PX
Used for eyebrows (the small label above a heading), badges, tags, timestamps and keycaps (drawings of keyboard keys). It's third-level text that should read as data, not prose. The sample above shows contrast minimums: AA is the middle level of the Web Content Accessibility Guidelines (WCAG), which asks for 4.50:1 contrast on normal text and 3.00:1 on large text.
Scale
Each row below is drawn at the size class (a named text size) shown beside it. The classes come from src/components/docs/PageChrome.tsx, the same shared setting that the page header, section headings and body copy use on all twenty-eight pages. The pixel (px) figure is read back out of that class, not typed in by hand, so it can't drift.
One h1 per page. Steps down below md so a long title fits a 320px viewport.
The numeral beside a component page section heading. Held above the WCAG large-text threshold of 24px, which is what licenses its 3:1 contrast pair.
A section boundary, uppercase, over a hairline. Set one notch under the index because uppercase has no descenders to lose.
The opening sentence under the h1. Optional: several pages open straight onto a specimen.
A title inside a grid cell or a panel, where a section rule would draw an edge that is not there.
Every reading-length passage.
Eyebrow, caption, table header. A role rather than a step: its contrast comes from weight and colour, not size.
Data and number styles
Numbers get two treatments, both shown live below. A single big headline number gets dimmed leading zeros (the padding zeros in front). Any column of numbers shown together uses tabular figures, where every digit is the same width so the columns line up.