/** * Resolves the visual styling of a chart from the grid's active CSS theme * tokens, so hand-drawn canvas charts honor light / dark / custom themes * without hardcoding colors. * * The resolver reads computed CSS custom properties from the chart's own DOM * node. It must be called **once per render** (never inside an animation frame * or hover redraw) because `getComputedStyle` forces layout; the result is * cached by the renderer for the duration of a render pass. */ /** * The fully-resolved set of colors and fonts a {@link ChartRenderer} draws with. * Every value is a concrete, ready-to-use CSS color / font string. */ export interface ResolvedChartTheme { /** Primary text: titles, axis labels, values. */ readonly textColor: string; /** Secondary / muted text: subtitles, axis ticks. */ readonly mutedColor: string; /** Grid lines and axis lines. */ readonly gridColor: string; /** Panel/plot background; `'transparent'` when the theme has no surface token. */ readonly background: string; /** Font family for all chart text. */ readonly fontFamily: string; /** Ordered series color palette. */ readonly palette: readonly string[]; } /** * Reads the active theme tokens from `el` and returns a concrete * {@link ResolvedChartTheme}. Missing tokens fall back to neutral defaults so * charts still render legibly in an unstyled or server-rendered context. * * @param el - A DOM node inside the themed grid (typically the chart canvas). * @returns The resolved colors, font and series palette. */ export declare function resolveChartTheme(el: HTMLElement): ResolvedChartTheme; //# sourceMappingURL=chart-theme.d.ts.map