Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233import type { Faction, Mode } from "./types";
/** Chart chrome tokens (dataviz reference palette). */export const CHROME = { light: { surface: "#fcfcfb", plane: "#f9f9f7", inkPrimary: "#0b0b0b", inkSecondary: "#52514e", muted: "#898781", hairline: "#e1e0d9", baseline: "#c3c2b7", dim: "#e7e6e0", border: "rgba(11,11,11,0.10)", }, dark: { surface: "#1a1a19", plane: "#0d0d0d", inkPrimary: "#ffffff", inkSecondary: "#c3c2b7", muted: "#898781", hairline: "#2c2c2a", baseline: "#383835", dim: "#31312e", border: "rgba(255,255,255,0.10)", },} as const;
export function factionColor(faction: Faction | undefined, mode: Mode): string { if (!faction) return CHROME[mode].muted; return mode === "dark" ? faction.colorDark : faction.colorLight;}