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,
),
},
)
|