components/bits/statusToken#
statusTokens()#
The token set for a tone.
Parameters#
| Parameter | Type |
|---|---|
tone |
StatusTone |
Returns#
statusToToken()#
Normalises a backend status word onto a tone.
Parameters#
| Parameter | Type |
|---|---|
status |
string | null | undefined |
Returns#
StatusTokens#
Properties#
fg#
Text colour readable on the app ground (NOT on main).
main#
Solid fill / dot colour.
onSolid#
Ink for text sitting on top of main.
soft#
Tinted background for chips and soft badges.
StatusTone#
One status vocabulary for the whole app.
The tone is the unit of meaning; the CSS custom properties are the unit of paint. Everything in the UI layer should reason in tones.