/** * Theme bridge for eddie-charts. * * Chart.js needs concrete color strings for series, axes, and tooltips, but * Eddie themes via CSS custom properties that resolve against the document * theme class. This module reads computed CSS values at runtime and returns * strings Chart.js can consume. * * Primary read: the tier-2 `--ed-theme-color-{background,border,content}-viz-*` * token family. Fallback chain to the base `--ed-theme-color-*` tokens is * retained so charts keep rendering against older versions of * `@brad-frost-web/eddie-design-tokens` that pre-date the viz block. */ export interface ChartTheme { palette: string[]; axisColor: string; gridlineColor: string; tickColor: string; labelColor: string; tooltipBg: string; tooltipFg: string; tooltipBorder: string; positive: string; negative: string; neutral: string; } export declare function readChartTheme(el: HTMLElement): ChartTheme; /** * Watch for theme swaps on the document root and invoke `cb` with a freshly * resolved theme. Also fires once synchronously on subscribe. * * Returns a cleanup function that disconnects the observer. */ export declare function observeThemeChange(el: HTMLElement, cb: (theme: ChartTheme) => void): () => void; export declare function prefersReducedMotion(): boolean; //# sourceMappingURL=theme-bridge.d.ts.map