charton API / @chart-on/core / index / ColorPreset
Interface: ColorPreset
Defined in: packages/core/src/color-presets.ts:21
A one-click colour scheme with a light and a dark variant, each a background and a primary colour. presetTheme derives the rest of the chart theme from the variant of the current mode.
Properties
dark
dark:
ColorPresetVariant
Defined in: packages/core/src/color-presets.ts:29
Colours in dark mode.
id
id:
string
Defined in: packages/core/src/color-presets.ts:23
Stable id, saved with the user's appearance choices.
label
label:
string
Defined in: packages/core/src/color-presets.ts:25
Name shown to the user, e.g. as the swatch's tooltip and accessible name.
light
light:
ColorPresetVariant
Defined in: packages/core/src/color-presets.ts:27
Colours in light mode.