Skip to content

cli_app.utils.format

cli_app.utils.format

get_theme cached

get_theme()

Return the Rich theme with info, warning, and danger styles.

Source code in src/cli_app/utils/format.py
@cache
def get_theme() -> Theme:
    """Return the Rich theme with info, warning, and danger styles."""
    return Theme(
        {
            "info": Style(
                color="cyan",
                dim=True,
                bold=True,
            ),
            "warning": Style(
                color="magenta",
                bold=True,
            ),
            "danger": Style(
                color="red",
                bold=True,
            ),
        },
    )