Files
buzz-sheet/lib/catalog/element.ts
T
gunshiz c9ca59e836
CI / Verify (push) Successful in 59s
CI / Build immutable images and deploy (push) Successful in 1m13s
Tune team element backgrounds and badges
2026-09-01 15:17:43 +07:00

14 lines
373 B
TypeScript

const elementBackgroundColors: Record<string, string> = {
Pyro: "#EF7938CC",
Hydro: "#4CC2F1CC",
Anemo: "#74C2A8CC",
Electro: "#AF8EC1CC",
Dendro: "#A5C83BCC",
Cryo: "#9FD6E3CC",
Geo: "#FAB632CC",
};
export function elementBackgroundColor(element: string | null | undefined): string {
return (element && elementBackgroundColors[element]) || "#17383dcc";
}