Load embed colors from TOML file.
Source code in tux/utils/constants.py
Pythondef _load_colors() -> dict[str, int]:
"""Load embed colors from TOML file."""
colors_file = _ASSETS_DATA_PATH / "embed_colors.toml"
with colors_file.open("rb") as f:
data = tomllib.load(f)
return data["colors"]