Badge
A short, static label attached to something else.
Default
Omitting `variant` lands on `outline`, not the value literally named `default` — badges accumulate, so the quiet bordered chip is the one you get without asking for it.
Usage
import { Badge } from '@oceanic-hub/brand-system'A badge labels; it does not act. If it is clickable it is a Button, and if it
carries a lifecycle state it is a StatusPill — the status vocabulary is shared across
products on purpose, and a hand-rolled badge breaks that.
More variants than upstream, and two of them are ours. primary renders identically to
default today — both paint the one accent this palette has — and is kept as its own value
rather than collapsed into an alias, so a caller reaching for it now needs no migration if the
palette ever grows a second accent to tell the two apart. muted is ours too: for a label that
has already lost its relevance — an archived export, a superseded version — it is one step
quieter than outline, the border dropping to hairline and the label to ink-faint, so
it recedes rather than disappears.
<Badge> with no variant renders outline, not the value literally named default —
the one naming trap in this API. Badges accumulate, and a page of loud accent chips reads as
noise, so the quiet bordered chip is what you get by omission; reach for
variant="default" when a label genuinely needs the loudest treatment in the set.
Two variants upstream ships that this package refuses, both cited in
badge.contract.test-d.ts. link is Base UI's render-prop anchor styling — coloured
text, which core-layer.md § "A status tone is a fill and a dot. It is not text." forbids;
the sanctioned idiom for a navigable action is Button with variant="link" and
asChild. ghost's whole payload only applies when the badge is an anchor, which this
<span> never is. Upstream's "Custom Colors" example is refused the same way every arbitrary
hex is: a new tone is a tokens.source.mjs conversation, not a className override. Nor is a
spinner inside a badge — an in-flight badge is the lifecycle state this component already
sends elsewhere; StatusPill's inFlight is where that halo lives.
RTL is not supported — recorded in pairings.json under direction: nothing in this
package has ever been laid out or measured right-to-left, and upstream ships an RTL example.
Accent
The value actually named default in the API — the loudest chip in the set. Reach for it when a label genuinely needs to compete for attention; omit variant for everything else.
Primary
Renders identically to the Accent chip today — both paint the one accent this palette has. Kept as its own value rather than collapsed into an alias, so a caller reaching for it now needs no migration if the palette ever grows a second accent to tell the two apart.
Secondary
The info tint, for a fact that is neither the headline action nor a warning — a plan tier, a build channel, anything worth naming without asking for attention.
Destructive
The tone is the fill and the border; the label stays ink, so it can be read. Compare the chip against the pill beside it — a badge names a fact, a StatusPill names a state.
Outline
The same rendering as an omitted variant — write it explicitly when the call site should say so on its own, without depending on defaultVariants staying outline.
Muted
One step quieter than Outline — for a label that has already lost its relevance, like an archived export or a superseded version. The border drops to hairline and the label to ink-faint, so it recedes rather than disappears.
With an icon
A plain child, not a slot — gap-1.5 on the pill already spaces an icon from the label, so no data-icon attribute or slot is needed the way Base UI's generation wants one.
API Reference
See the Badge API page for every prop of every part, with types, defaults and the contract that pins them. It also documents badgeVariants — exported alongside the parts, and signatures rather than props.