Files
buzz-sheet/lib/catalog/element.ts
T
gunshiz 1d19961d8b
CI / Verify (push) Successful in 55s
CI / Build immutable images and deploy (push) Successful in 1m13s
feat: update
2026-09-01 16:31:05 +07:00

14 lines
357 B
TypeScript

const elementBackgroundColors: Record<string, string> = {
Pyro: "#120000",
Hydro: "#000512",
Anemo: "#061415",
Electro: "#0D000F",
Dendro: "#000F04",
Cryo: "#032021",
Geo: "#0F0D00",
};
export function elementBackgroundColor(element: string | null | undefined): string {
return (element && elementBackgroundColors[element]) || "#17383d";
}