/** Categorical order for account shares; past these, accounts fold into "Other". */ export const SHARE_COLORS = ["--chart-blue", "--chart-purple", "--chart-green", "--chart-orange", "--chart-yellow"] as const; const OTHER = "--muted-foreground"; /** The colour for the i-th item of a side, so the bar and the row dots agree. */ export function shareColor(i: number) { return `hsl(var(${SHARE_COLORS[i] ?? OTHER}))`; }