const elementBackgroundColors: Record = { 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"; }