UI kit reference
theme/accents
import { … } from 'zidane-ui'ui/src/theme/accents.ts
Functions#
presetForFunction#
The preset a stored accent is one of the variants of.
function presetFor(hex: string | null): AccentPreset | undefinedParameters
| Name | Type | Description |
|---|---|---|
| hex | string | null | The stored |
Returns
AccentPreset | undefinedThe preset, or undefined for the theme's accent or a custom colour.
Constants#
ACCENT_PRESETSConstant#
The accent presets, in display order.
const ACCENT_PRESETS: readonly AccentPreset[]Interfaces#
AccentPresetInterface#
An accent the user can pick instead of the theme's own.
interface AccentPresetProperties
| Name | Type | Description |
|---|---|---|
| dark | string |
|
| hue | number | Hue, for ordering and tinting the swatches. |
| id | string | Stable id. |
| label | string | Display name. |
| light | string |
|