UI kit reference
components/tone
import { … } from 'zidane-ui'ui/src/components/tone.ts
Functions#
badgeColorStyleFunction#
An exact icon color (#rgb / #rrggbb) as an inline style over the tone class; nothing for anything else.
function badgeColorStyle(color: unknown): CSSProperties | undefinedParameters
| Name | Type | Description |
|---|---|---|
| color | unknown | The color an extension named. |
Returns
CSSProperties | undefinedtoneFillClassFunction#
toneTextClassFunction#
Types#
ToneType#
What a color says: body text, quiet text (muted, subtle), the accent, or a status.
type Tone =
| 'text'
| 'muted'
| 'subtle'
| 'accent'
| 'info'
| 'success'
| 'warning'
| 'danger'ToneAliasType#
The other names a tone goes by: core's warn (extension and composer badges), error and a view's default.
type ToneAlias = 'warn' | 'error' | 'default'