Files
buzz-sheet/lib/catalog/element.ts
T
gunshiz 094b61ff32
CI / Verify (push) Successful in 1m12s
CI / Build immutable images and deploy (push) Successful in 1m12s
Darken team element backgrounds
2026-09-01 15:21:51 +07:00

14 lines
373 B
TypeScript

const elementBackgroundColors: Record<string, string> = {
Pyro: "#12000033",
Hydro: "#00051233",
Anemo: "#06141533",
Electro: "#0D000F33",
Dendro: "#000F0433",
Cryo: "#03202133",
Geo: "#0F0D0033",
};
export function elementBackgroundColor(element: string | null | undefined): string {
return (element && elementBackgroundColors[element]) || "#17383d33";
}