Component library
The primitives this site is built from. The page imports the same components the site uses, so the documentation cannot go stale - if a component changes, its specimen changes with it.
The primitives this site is built from. The page imports the same components the site uses, so the documentation cannot go stale - if a component changes, its specimen changes with it.
Six values and no gradients. Components never reference a primitive directly - they reference a role, and the role is what changes between light and dark.
| swatch | token | value | role |
|---|---|---|---|
| --ink | #101A2B | Deep navy. Text and dark surfaces. Not a tinted black - it reads as drafting ink. | |
| --paper | #F7F8FA | Cool white ground. Deliberately not cream. | |
| --redline | #E5007D | Magenta. Annotations, measurement marks, active states. The signal colour. | |
| --measure | #00A3C4 | Cyan. Secondary annotation - dimensions, grid overlays. | |
| --rule | #C9CFD8 | Hairlines, dividers, inactive marks. | |
| --slate | #5A6675 | Secondary text, captions. |
Derived values are computed from the primitives by the token build, never eyedropped. Roles marked solved are generated by blending toward ink or paper until they clear 4.5:1 against every surface they are drawn on - a label on a tinted surface is checked on that tint, not on the page. The build fails if any pairing misses, so an inaccessible pair cannot ship.
| role | light | dark | use | contrast | origin | ||
|---|---|---|---|---|---|---|---|
| --c-bg | #F7F8FA | #101A2B | surface | n/a | paper | ||
| --c-bg-raised | #F0F1F4 | #1E2737 | surface | n/a | mix(paper, ink, 0.03) | ||
| --c-bg-sunken | #E9EBEE | #151E2F | surface | n/a | mix(paper, ink, 0.06) | ||
| --c-text | #101A2B | #F7F8FA | text | 16.4 / 16.4 vs bg, needs 4.5 | ink | ||
| --c-text-muted | #5A6675 | #969BA3 | text | 5.5 / 6.24 vs bg, needs 4.5 | slate | ||
| --c-text-invert | #F7F8FA | #101A2B | inverse | n/a | paper | ||
| --c-line | #C9CFD8 | #3A4250 | surface | n/a | rule | ||
| --c-line-strong | #88909B | #616873 | line | 3.04 / 3.1 vs bg, needs 3 | solve(rule -> ink, non-text on bg) | ||
| --c-accent | #E5007D | #E5007D | mark | 4.27 / 3.84 vs bg, needs 3 | redline | ||
| --c-accent-strong | #DC017A | #DC017A | fill | 4.57 / 4.57 vs paper, needs 4.5 | solve(redline -> ink, text under paper) | ||
| --c-accent-quiet | #F5DFEE | #36153A | surface | n/a | mix(redline, paper, 0.9) | ||
| --c-accent-text | #C70472 | #EA4AA3 | text | 4.52 / 4.53 vs accent-quiet, needs 4.5 | solve(redline -> ink, text on bg + accent-quiet) | ||
| --c-measure | #00A3C4 | #00A3C4 | surface | n/a | measure | ||
| --c-measure-text | #06738E | #0CA7C7 | text | 4.54 / 4.53 vs measure-quiet, needs 4.5 | solve(measure -> ink, text on bg + measure-quiet) | ||
| --c-measure-quiet | #D9EEF4 | #0D354A | surface | n/a | mix(measure, paper, 0.88) | ||
A 1.25 minor third from 16px. Nine steps, nothing between them. Body copy is capped at 68ch and left-aligned.
| display | Bricolage Grotesque | variable, wdth 78-100 |
|---|---|---|
| body | IBM Plex Sans | line-height 1.6 |
| mono | IBM Plex Mono | real token values only |
| measure | 68ch | body copy maximum |
space-N is N x 4px. The scale is sparse on purpose - these are the only legal steps, which is what makes the measurement marks in the margins meaningful.
| token | value | scale |
|---|---|---|
| --space-1 | 4px | |
| --space-2 | 8px | |
| --space-3 | 12px | |
| --space-4 | 16px | |
| --space-6 | 24px | |
| --space-8 | 32px | |
| --space-12 | 48px | |
| --space-16 | 64px | |
| --space-24 | 96px | |
| --space-32 | 128px | |
| --space-40 | 160px |
| columns | 12 | content occupies 3-10 |
|---|---|---|
| gutter | 24px | column gap |
| max width | 1280px | page container |
Every state a component can be in is on this page. States that only exist in a designer's head get implemented differently by every engineer who meets them.
Three variants, three sizes. Variant and size are data attributes, so a button's configuration is readable in the DOM inspector.
Disabled buttons keep their text legible rather than fading to nothing, and are still reachable by screen readers.
tokens consumed
Label, control, hint and error as one unit. The control cannot be rendered without its label.
The error replaces the hint rather than stacking beneath it, and is wired through aria-describedby so it is announced with the control.
tokens consumed
A real button with aria-pressed, not a styled checkbox. Drives the grid and annotation controls in the header.
Try the grid and annotation switches in the header - same component.
tokens consumed
Mono, hairline, square. Used for stacks and categories, never for decoration.
tokens consumed
A bounded region. Square corners, one hairline, no shadow - deliberately not a card.
Panel
Content that needs a boundary gets a boundary. Content that does not, does not.
tokens consumed
The measurement layer. Lengths and labels are read from the spacing scale, so a mark cannot disagree with what it measures.
The switches in the header turn the layer off entirely, and reveal the 12-column grid it is measured against.
tokens consumed