/** * Chart configuration types and theme utilities. * * Charts read colors from CSS variables (--chart-1 through --chart-8) defined * in the shared Tailwind theme, so they respect light/dark mode automatically. */ export type ChartColorToken = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; /** Named chart color aliases for semantic use. */ export declare const chartColors: { readonly primary: 1; readonly success: 2; readonly accent: 3; readonly violet: 4; readonly rose: 5; readonly cyan: 6; readonly amber: 7; readonly green: 8; }; export type ChartDataEntry = { label: string; value: number; color?: ChartColorToken; }; export type ChartSeriesConfig = { dataKey: string; label: string; color?: ChartColorToken; }; /** Chart size presets — matches the compact/default/feature Card variants. */ export type ChartSize = "sm" | "md" | "lg" | "responsive"; export declare const chartHeights: Record, number>; /** * Resolve a chart color token to the CSS variable string that Recharts accepts. * Recharts supports raw CSS color values, so we resolve via `hsl(var(--chart-N))`. */ export declare function chartColor(token: ChartColorToken): string; /** Default palette — cycles through 8 chart tokens. */ export declare function chartColorByIndex(index: number): string; /** Format a number for display inside charts (compact for large values). */ export declare function formatChartValue(value: number): string; //# sourceMappingURL=chartConfig.d.ts.map