Chip
A status word in a small tinted box: uppercase mono, one or two words.
HTML
<div class="bm-stage" style="flex-direction:column;gap:var(--space-4)"><div class="bm-rowx">
<span class="bm-chip bm-chip--success"><i class="bm-chip__dot"></i>Ready</span>
<span class="bm-chip bm-chip--heat">Heating</span>
<span class="bm-chip bm-chip--primary"><i class="bm-chip__dot"></i>Brewing</span>
<span class="bm-chip bm-chip--warning"><span data-icon="triangle-alert" data-size="14"></span>Flush recommended</span>
<span class="bm-chip bm-chip--danger"><span data-icon="circle-alert" data-size="14"></span>Scale lost</span>
<span class="bm-chip bm-chip--ink">In use</span>
<span class="bm-chip">Pro</span>
<span class="bm-chip">30.2 s</span>
</div>
<div class="bm-rowx"><span class="bm-eyebrow">Heat beside warning</span><span class="bm-chip bm-chip--heat">Heating</span><span class="bm-chip bm-chip--warning"><span data-icon="triangle-alert" data-size="14"></span>Water low</span></div>
</div>- Tones mean something:
successready or connected,heatheating,primarya process running,warningattention before the next shot,dangera fault,inkthe item in use, neutral for facts (PRO, 30.2 s). - The word carries the meaning; the tint only supports it. Add
.bm-chip__dotfor a live state. - A
warningChip always starts with thetriangle-alertglyph and adangerChip withcircle-alert, at 14 px. Amber and the orange ofheatare close neighbours, and both can sit in the Dial tile; the glyph is what tells them apart.BetterMate.hydrate()adds a missing glyph in static pages; in the app, write it in the markup. - One status Chip per tile, at the right of its head. Never a row of status Chips.
- Chips are not buttons. For a choice use Segmented.
Anatomy
span.bm-chip 24 px tall, radius-sm, padding space-2, label in chip, with an optional leading dot (mark 6 px) or 14 px glyph and a gap of space-1.
Tones
| Class | Ground | Text | Leading mark |
|---|---|---|---|
bm-chip--success | success-soft | success | dot, when live |
bm-chip--heat | heat-soft | heat-text | none |
bm-chip--primary | primary-soft | primary-text | dot, when live |
bm-chip--warning | warning-soft | warning | triangle-alert, always |
bm-chip--danger | danger-soft | danger | circle-alert, always |
bm-chip--ink | ink | on-ink | none |
| neutral | surface-2 | ink | none |
Every pair holds 5.2:1 or better in the three themes. A Chip has no hover, focus or disabled state.
Content
- One or two words, at most 20 characters: READY, HEATING, FLUSH RECOMMENDED. Longer messages are a Notice.
- State, not instruction: SCALE LOST, not RECONNECT SCALE.
- A fact Chip holds a value with its unit (
30.2 s) and stays neutral.
Screen reader
The word is the content, so it needs nothing extra; keep the glyph and dot aria-hidden. When a status Chip changes while the page is open, mirror the new word in the page's status region.