theme prop, then layer per-token overrides with themeOverrides.
Light and dark
Selects the base token set. Drives series palettes, text colors, grid and
tooltip chrome.
Overriding tokens
themeOverrides is a partial map of theme tokens layered over the base. Most tokens take a CSS string; the measured font tokens (fontTickLabel, fontAxisLabel, fontLegendLabel, fontDataLabel, and a few more) take a structured object so text measurement and paint stay in sync.
{ weight: 600 } on a font token changes only the weight.
Font token shape
A structured font override (FontTokenOverride) accepts any subset of:
CSS
font-family.Numeric font weight.
e.g.
'normal' or 'italic'.Font size.
Unitless multiplier; sizes HTML line boxes (canvas measurement ignores it).
Custom fonts
If your spec references fonts by id (for example in rich-text titles), map those ids to CSSfont-family strings with fontList:
@font-face or a font service) — the SDK references them, it doesn’t load them.
Background and borders
Chart-level background, border ring and corner radius are part of the spec’s appearance config, not the theme, because they travel with the chart. The theme governs the token defaults those settings fall back to.Related
- Appearance — background, border and corner radius
- Provider & renderer — where
themeandthemeOverridesare set

