Pill

canon

Outlined label whose colour is carried by a saturated dot: seven hues for distinctness, plus one reserved tone, critical.

No React component of its own — TagPills, StatusChip and the listing columns all emit .acrm-pill. AD 6 Sep 2026 (after Linear): the tinted ground was replaced by an outlined chip with a saturated --ic-* dot and full-contrast text. The old ground measured only 1.03-1.19:1 against the canvas, so in dark theme the tone did almost nothing and the colour was really carried by the text; it also left grey with no shape at all and needed a background AND an ink per tone. A label with an icon has no dot (:has(.ti)). The .dot class is now a no-op. There is deliberately no exception for tables: dropping the frame there needed two conditions, and the second (label alone in the cell) would make the same column render differently for a record with one tag than for one with two. AD 5 Sep 2026: the two-family tone model was dropped; red is the one reserved word. Leading icon from the whole Tabler set (owner 27 Sep 2026, acrm !4004): `TablerIcon` lazy-fetches `/tabler/<name>.svg`, caches it, restrokes to 1.75 and wraps it in `.ti` — same no-dot rule, DS `<Icon>` allowlist unchanged, app-level escape hatch for AI-picked meeting-topic glyphs only. "Section tags" composition (acrm !4013): removable `.acrm-pill` row with no frame + a quiet section action opening a `Popover` with one `Input` to add — used by meeting Minutes "Probraná témata"; a framed tag input stays a form-only control. Pill wave acrm !4079 (owner-approved 28 Sep 2026, variant A): ~20 hand-made "pills" with tinted backgrounds (20–24 px, 10–12 px type) replaced by ONE shape — `.acrm-pill` sm, 20 px, 12/500, outline + tone dot, no tinted fill. Rule: a CATEGORY (role, owner/share, segment) = `.acrm-pill` with a tone dot; a STATE (active/inactive, free/busy, call state, meeting state, prediction, import match, user status) = status chip (`.acrm-pill sm` + `data-status`); no new pill variant. Busy room = amber, never red (red is reserved for errors). Room equipment is NOT a pill: quiet text with a 14 px DS glyph per item (map apps/web/src/lib/room-equipment.ts, unknown item = text only), no dots between items (the icon separates), --fg-muted. Kept aside: `.grade` (credit grade) and `.pdr-pill`. The same MR fixed meeting status always showing grey "done". Leading icon carries the tone (owner 8 Oct 2026, acrm !4915, AD FA258-re no. 5): a pill with a DIRECT leading icon child has no dot (`:has(> .ti)`, not `:has(.ti)` — the remove cross `.x .ti` is a grandchild and must not take the dot away) and the icon is coloured by the tone instead: `.acrm-pill > .ti { color: var(--pill-dot, var(--ic-grey)) }`. General rule for every pill with a leading icon, not a special case of one component; first consumer is Project label.

Used in 9 files · 9 areas · 11× — components/TagsEditor, components/TagsField, components/projects, pages/CompanyRecordPage, pages/DialerPage, pages/LidePage …

Default

Klient
components--pill--defaultOpen standalone ↗Code

Variants

limeamberbluepurplegreenrosegrey
the seven hues — pick by distinctness from the neighbours; the dot carries the colour, the text stays at full contrast
Prohráno
the one reserved tone — red means something is wrong, and nothing else may claim it
AktivníČekáNeaktivní
the `dot` class is now a no-op — every label has a dot; it is kept only so old call sites do not break
components--pill--variantsOpen standalone ↗Code

Sizes

KlientPartner
default — page content, cards, rail
KlientPartner
sm — inside a table row or another dense line, where the default would push the row height
components--pill--sizesOpen standalone ↗Code

States

KlientVIPPraha
removable — click the × on a tag; the row reflows, nothing else moves
reset
Vyhráno
static — a pill that is not removable carries no button and no hover affordance
components--pill--statesOpen standalone ↗Code

With icon & kbd

E-mailTelefon
with a leading icon — only where the icon says something the word does not (channel, source, owner type)
Kampaň Q3
icon + remove — the tag input shape: meaning on the left, the way out on the right
Štítek
no shortcuts — a pill is a label, not a control; the keyboard reaches the × because it is a real button
components--pill--with-icon-and-kbdOpen standalone ↗Code

Composition

ATOL CapitalAktivní
KlientPartnerPrahaImport 2026
components--pill--compositionOpen standalone ↗Code