Molecule · stable · v1.0.0 · owner: Site system lead · contract 19 of 20 points (open: figma)
Do and don't
Do: A cited figure
Rendered by stat.tsOpen example: Stat · Do: A cited figure Use the full-page example to follow page links.
Do: Our own count
Rendered by stat.tsOpen example: Stat · Do: Our own count Use the full-page example to follow page links.
Don't: An unsourced multiplier
Rendered by stat.tsOpen example: Stat · Don't: An unsourced multiplier Use the full-page example to follow page links.
Don't: A number without a unit
Rendered by stat.tsOpen example: Stat · Don't: A number without a unit Use the full-page example to follow page links.
Rules
| Rule | Why | Check |
|---|---|---|
| Every stat is our own measured output or carries its source. | Numbers are the site's evidence; an unsourced one undermines all the others. | Automated: site-claims test (numbers in copy match the register) |
| Every value has a label. | A bare number means nothing. | Automated: tests/unit/site-system.test.ts |
API
| Prop | Type | Required | Default | What it does |
|---|---|---|---|---|
value | string | Yes | The figure, with its unit. | |
label | string | Yes | What it counts, in plain words. | |
source | html | No | The source, when the figure is cited. |
Contract details
The full contract: identity, anatomy, variants, states, tokens, layout, motion, accessibility, content, tests
Identity
| Aspect | Value |
|---|---|
| Id | stat |
| Layer | Molecules |
| Category | data |
| Owner | Site system lead |
| Status | stable |
| Version | 1.0.0 |
| Source | apps/showcase/site/system/molecules/stat.ts (private repository; the contract and the render function are this one module) |
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2026-10-26 | A big number with its label and, when cited, its source. |
Use when
- A measured or published figure supports the argument. Why: One clear number persuades more than a paragraph.
- Before-and-after or counts in a proof. Why: Numbers side by side compare at a glance.
Do not use when
- For a number that is not measured or sourced. Why: Big invented numbers are exactly what the truthfulness rule forbids.
- More than four in a row. Why: Beyond four the eye stops comparing.
Anatomy
| Part | What it is |
|---|---|
| root | div.stat |
| value | b: the number, tabular figures. |
| label | span: what it counts. |
| source | Caption atom: where it comes from. |
Made of: text, caption, tokens:type.
Used in: conversations, drift-palette, first-90, ops-board, proof-shift, score-us, takenote-card.
Variants
| Variant | When | Why |
|---|---|---|
| plain | Our own measured output. | The label says what was measured. |
| cited | A third-party figure. | The source must be next to the number. |
States
| State | Rendered or not applicable |
|---|---|
| default | default |
| hover | Not applicable: A stat is not interactive, so it has no hover state. |
| focus-visible | Not applicable: A stat does not take focus; links and buttons inside it carry their own focus ring. |
| active | Not applicable: A stat cannot be pressed. |
| disabled | Not applicable: A stat has nothing to disable. |
| loading | Not applicable: A stat is rendered at build time and is complete when the page loads. |
| empty | Not applicable: A stat is not rendered without content; the builder skips it. |
| error | Not applicable: A stat shows no data that can fail. |
| current | Not applicable: A stat has no current item. |
| visited | Not applicable: A stat is not a link. |
| expanded | Not applicable: A stat does not open or close. |
Tokens
| Part | Token |
|---|---|
| value.font | --type-h2, tabular-nums |
| label.font | --type-small |
| label.color | --ink-2 |
| --stat-gap-space-2 | var(--space-2) |
| --stat-font-type-h2 | var(--type-h2) |
| --stat-letter-spacing-ls-h2 | var(--ls-h2) |
| --stat-font-type-small | var(--type-small) |
| --stat-color-ink-2 | var(--ink-2) |
Layout
| Aspect | Value |
|---|---|
| breakpoints | Required review at 390, 768, 1024 and 1440 px; execution is not implied by this declaration; rows of stats wrap to two columns on phones. |
| wrapping | The value never wraps; the label wraps. |
| textExpansion | Japanese labels wrap under the value. |
Spacing and rhythm
| Aspect | Value |
|---|---|
| internal | --space-2 between value and label. |
| external | Gap from its grid (--grid-gap). |
| rhythm | Inside a section's figure area. |
Motion
| Aspect | Value |
|---|---|
| None | Numbers do not count up; an animated figure delays the fact. |
Runtime and reuse
Render-only element; mount any registered child enhancements separately. Preserve required Site CSS, fonts, responsive and locale rules from nativeElement.
Accessibility passport
| Aspect | Value |
|---|---|
| role | group of text |
| name | Value then label |
| keyboard | Not interactive. |
| focus | Not focusable. |
| screenReader | Reads the number, then what it counts. |
| contrast | Ink on cotton 15.9:1. |
| target | Not a target. |
Content
| Slot | Length | Voice |
|---|---|---|
| value | 6 characters | The number and unit |
| label | 10 words | What it counts, plain |
Good: “16% of design systems are run by one person.”
Bad: “10x faster”
Japanese: Text comes from the page content; Japanese strings are reviewed per page (apps/showcase/site/loom/locales). Awaiting native review, as the banner on every Japanese page says.
Icons and illustrations
None: this element uses no icon or illustration of its own.
Decisions and exceptions
Usage
118 uses across the built pages (measured by npm run site:system).
Tests
| Aspect | Value |
|---|---|
| unit | tests/unit/site-system.test.ts: renders every do and don't example through the registry and checks the classes it owns |
| visual | Not yet: there are no screenshot baselines; the Library page is checked for sideways scroll at 1440 px by tests/site/system.spec.ts |
| a11y | tests/site/system.spec.ts: axe (0 serious or critical) on the element's Library page in light and dark |
| parity | scripts/site/system/check.ts: Library examples are rendered by the same render function the site imports |
Figma
not-yet: The Loom Site Figma library is the last stage of the plan; this element is not mapped yet.