Text
atomsThe only text primitive: variant presets for body, label, caption, code and eyebrow, with tone, weight, size, numeric and truncation axes.
Service detail panel
variant="eyebrow" kicks off a block, body carries the reading text, caption the meta, numeric keeps the figures steady, code marks an identifier.
worker-02 has been restarting every few hours since the last deploy. Memory climbs steadily until the pod is evicted.
Variants, tones, weights and sizes
variant picks a preset; tone, weight and size override one axis each.
Long content and overflow
truncate clips to one line, wrap="anywhere" breaks long tokens, wrap="balance" evens the lines, measure caps the line length, nowrap keeps a phrase on one line.
A paragraph capped at forty characters per line stays readable however wide the panel grows around it.
Last deploy finished 12 minutes ago and the rollout reached 3 of 4 regions before the pause; the figures stay on one line while the sentence wraps around them.
Tabular figures and font scale
numeric keeps digits the same width as a counter ticks; scale={false} pins a size against the toolbar font-scale picker.
Measure
measure caps a paragraph at --measure (68ch); a string such as "40ch" sets its own cap.
A paragraph that is allowed to run the full width of a wide pane becomes hard to follow, because the eye has to find the start of the next line from far away. Capping the measure keeps the return short enough to read without effort.
A paragraph that is allowed to run the full width of a wide pane becomes hard to follow, because the eye has to find the start of the next line from far away. Capping the measure keeps the return short enough to read without effort.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'span' | 'p' | 'div' | 'label' | 'span' | |
variant | 'body' | 'label' | 'caption' | 'code' | 'eyebrow' | — | body: default reading text · label: form-label · caption: small meta · code: monospace · eyebrow: small uppercase muted kicker. Omit for inline glue that should inherit its parent. |
tone | 'inherit' | 'default' | 'muted' | 'faint' | Tone | 'inherit' | `ok` and `success` are aliases. |
weight | 'normal' | 'medium' | 'semibold' | 'bold' | — | |
size | Size | — | |
numeric | boolean | false | Tabular figures: digits share a fixed advance width so counts/percentages don't jitter as they change. Use for counters, timers, metrics. |
mono | boolean | false | Monospace family without the `code` variant's chip styling. |
truncate | boolean | false | |
italic | boolean | false | |
nowrap | boolean | false | |
wrap | 'normal' | 'anywhere' | 'balance' | 'normal' | |
uppercase | boolean | false | |
leading | 'tight' | 'normal' | 'none' | — | |
measure | string | boolean | — | Line measure: `true` caps at --measure (68ch), a string sets a CSS max-width ("60ch"). |
grow | boolean | false | |
scale | boolean | true | false pins the size to its unscaled px value, ignoring --fs-scale. |
block | boolean | false | |
class | string | '' | |
children | Snippet | — |