@octopusdeploy/design-system-components
Version:
The design systems component library.
15 lines (14 loc) • 477 B
TypeScript
export declare const chartStrokeColorValues: string[];
export type ChartStrokeColor = (typeof chartStrokeColorValues)[number];
interface ThemedChartColors {
grid: string;
xAxis: string;
yAxis: string;
label: string;
strokes: Record<ChartStrokeColor, string>;
}
export declare function addColorToDataset<T extends Record<string, any>>(data: T[]): (T & {
color: string;
})[];
export declare const useThemedChartColors: () => ThemedChartColors;
export {};