ChartPalette
Resolves chart colors as daisyUI v5 theme tokens. daisyUI exposes each theme color as a CSS
custom property (e.g. --color-primary), so returning var(--color-primary) makes
every chart follow the active data-theme automatically — no recompilation, no JS.
Methods
Section titled “Methods”At(int, string)
Section titled “At(int, string)”Returns overrideColor when provided; otherwise the palette entry at
index (wrapping with modulo). Safe for any non-negative index.
FromColor(Color)
Section titled “FromColor(Color)”CSS variable for a semantic Color, or null for Default/Inherit.
Fields
Section titled “Fields”Default
Section titled “Default”The default cycling order: primary, secondary, accent, info, success, warning, error. Charts index into this (modulo length) so series/slices get distinct, theme-driven colors.
Neutral
Section titled “Neutral”The neutral token, handy for axes/gridlines fallbacks.