Components
Label
Uppercase, tracked metadata: where, when, what kind. Labels name things; they never say things. Anything Aurora says in a sentence belongs in the serif.
Overview
London · Thursday 30 JulyNowAurora is holdingLanded
Edge trimming
Tracking adds space after the last letter, so a label aligned to a right edge falls short of it by the tracking amount. Set trim on any label that ends on an edge: it pulls the trailing space back so the last glyph meets the edge exactly.
Aurora is holdingAurora is holding
Usage
London · Thursday 30 July
Use labels for short metadata: a place and a date, a signal’s name, a column header.
Aurora found two things worth doing here and judged neither worth it
Don’t write sentences in labels. Uppercase and tracking make anything longer than a few words hard to read.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | 'label' | 'primary' | 'secondary' | 'faint' | 'label' | Primary for the one label that matters, like Now. |
| trim | boolean | false | Trim trailing tracking for right-aligned or centred runs. |
| as | ElementType | 'span' | Render as another element, like dt or cite. |
Tokens
| Token | Value | Used for |
|---|---|---|
| .au-type-label | Uppercase metadata. Trim the trailing tracking on right-aligned runs. | |
| --au-text-label | → stone.500 · #86847D | Uppercase labels. 5.3:1. |
| --au-text-primary | → stone.50 · #EDEBE5 | What Aurora says. 16.7:1 on ground. |
| --au-text-tertiary | → stone.400 · #8B8981 | Details and metadata. 5.7:1. |
| --au-text-faint | → stone.600 · #5C5B56 | Past or inactive content. Decorative, never the only carrier of meaning. |
Code
<Label>London · Thursday 30 July</Label>
<Label trim>Aurora is holding</Label><span class="au-label">London · Thursday 30 July</span>
<span class="au-label" data-trim="true">Aurora is holding</span>