Files
buzz-sheet/lib/catalog/element.ts
T
gunshiz e0312b4598
CI / Verify (push) Successful in 1m0s
CI / Build immutable images and deploy (push) Successful in 1m26s
Use element colors for team portraits
2026-09-01 15:03:37 +07:00

14 lines
357 B
TypeScript

const elementBackgroundColors: Record<string, string> = {
Pyro: "#EF7938",
Hydro: "#4CC2F1",
Anemo: "#74C2A8",
Electro: "#AF8EC1",
Dendro: "#A5C83B",
Cryo: "#9FD6E3",
Geo: "#FAB632",
};
export function elementBackgroundColor(element: string | null | undefined): string {
return (element && elementBackgroundColors[element]) || "#17383d";
}