coverage.colors

Tier/state color palette and validation for coverage rendering.

Colors come from [coverage.tiers.<name>] color in settings.toml and may be a CSS named color or a #RRGGBB hex code. Validation happens at settings load; the renderer consumes values verbatim.

otto.coverage.colors.validate_color(value: str) str

Return value if it is a valid CSS named color or #RRGGBB hex.

Raises:

ValueError – if the value is neither.