FitScore
A 0–100 score as a tinted chip, banded into three tones a reader can scan without reading the digits.
Default
A 0–100 score as a chip. The tone escalates at 70 and 40; the number is always readable.
Usage
import { FitScore } from '@oceanic-hub/brand-system'No shadcn original — the nearest generic building block is Badge, and it is
orientation only: a Badge is a static label with no measurement in it, and forcing a score
through one would lose the tone bands this component exists to carry.
One of four meters, and it is not a meter of progress: Progress measures a task with a finish
line, SpendBar a quantity against a policy-set cap, and EngagementBar a rate. This one is a
score — no end state to arrive at, and no ceiling to be near.
The 70/40 bands are fixed, with no thresholds prop, on purpose: it is what keeps this chip and
EngagementBar's dots agreeing about where "good" starts when both sit in the same row. A
per-surface threshold would turn one shared scale into two local ones that happen to look alike.
score has no absent state, and that is the argument worth keeping: a contact nobody has scored
is not a "0", because a reader cannot tell a genuine bottom score from "we don't know" — and
everything downstream would then act on a number nobody computed. The caller renders its own
em-dash instead; see fit-score.contract.test-d.ts for the full case.
In a table
The score sits in its own column; a contact with none gets the table's own em-dash, never a grey zero — this component refuses to represent absence at all.
| Contact | Fit |
|---|---|
| Northwind | 82 |
| PadelSwift | 46 |
| Riverside Clinic | — |
API Reference
See the FitScore API page for every prop of every part, with types, defaults and the contract that pins them.