ThemeBuilt-in theme names shipped in Phase 2.
type BuiltinThemeName = BuiltinThemeNameCreate an immutable theme, optionally extending a base (default: dark).
(input?: ThemeInput, base?: Theme) => ThemeBuilt-in dark theme (graphite + electric cyan).
ThemeThemeThemeBuilt-in light theme.
ThemeAdditional shipped themes (Phase 4).
ThemeThemeResolve a built-in name or a custom theme object.
(theme?: BuiltinThemeName | Theme) => ThemeThemeResolved, immutable visual theme (PRD §34–35).
interface Theme| name | string |
| background | Rgba |
| plot | { readonly fill: Rgba; readonly padding: ThemePadding; } |
| axis | { readonly line: Rgba; readonly tick: Rgba; readonly label: Rgba; readonly title: Rgba; readonly fontFamily: string; readonly fontSize: number; readonly titleSize: number; } |
| grid | { readonly major: Rgba; readonly minor: Rgba; } |
| cursor | { readonly line: Rgba; } |
| tooltip | { readonly background: Rgba; readonly border: Rgba; readonly text: Rgba; readonly fontFamily: string; readonly fontSize: number; } |
| series | readonly Rgba[] |
| typography | { readonly fontFamily: string; readonly fontSize: number; } |
Partial input for {@link createTheme }. Color fields accept {@link ColorInput}.
interface ThemeInput| name? | string | undefined |
| background? | ColorInput | undefined |
| plot? | { readonly fill?: ColorInput; readonly padding?: Partial<ThemePadding>; } | undefined |
| axis? | Partial<{ line: ColorInput; tick: ColorInput; label: ColorInput; title: ColorInput; fontFamily: string; fontSize: number; titleSize: number; }> | undefined |
| grid? | Partial<{ major: ColorInput; minor: ColorInput; }> | undefined |
| cursor? | Partial<{ line: ColorInput; }> | undefined |
| tooltip? | Partial<{ background: ColorInput; border: ColorInput; text: ColorInput; fontFamily: string; fontSize: number; }> | undefined |
| series? | readonly ColorInput[] | undefined |
| typography? | Partial<{ fontFamily: string; fontSize: number; }> | undefined |
Plot-area insets in CSS pixels.
interface ThemePadding| top | number |
| right | number |
| bottom | number |
| left | number |
Got any questions? I'm happy to help with products, licensing, and examples.