def apply_theme_overrides(theme, overrides):
    """
    Apply overrides to a theme.
    """
    if overrides is None:
        return theme

    for key, args in overrides.items():
        setattr(theme, key, theme.color(*args))
    return theme