Skip to content

Style

style

Purple-themed CLI styling for T3 API utilities.

error_style module-attribute

error_style = Style(color='red', bold=True)

Bold red style for error messages and failures.

info_style module-attribute

info_style = Style(color='blue', bold=True)

Bold blue style for informational messages and help text.

success_style module-attribute

success_style = Style(color='green', bold=True)

Bold green style for success messages and completed actions.

warning_style module-attribute

warning_style = Style(color='yellow', bold=True)

Bold yellow style for warning messages and cautions.

progress_style module-attribute

progress_style = Style(color='magenta', bold=True)

Bold magenta style for progress indicators and status updates.

header_style module-attribute

header_style = Style(color='magenta', bold=True)

Bold magenta style for main section headers and titles.

subheader_style module-attribute

subheader_style = Style(color='bright_magenta', bold=True)

Bold bright magenta style for subsection headers.

menu_style module-attribute

menu_style = Style(color='magenta')

Magenta style for menu items and interactive selection elements.

file_path_style module-attribute

file_path_style = Style(color='cyan')

Cyan style for file and directory paths.

technical_style module-attribute

technical_style = Style(color='white', dim=True)

Dim white style for technical details and secondary information.

data_style module-attribute

data_style = Style(color='bright_white')

Bright white style for data values and code output.

primary_style module-attribute

primary_style = Style(color='magenta')

Primary magenta theme style for general branded elements.

accent_style module-attribute

accent_style = Style(color='bright_magenta')

Bright magenta accent style for highlights and emphasis.

muted_style module-attribute

muted_style = Style(color='magenta', dim=True)

Dim magenta style for subdued or secondary themed text.

print_success

print_success(message: str) -> None

Print a success message with green checkmark.

Parameters:

Name Type Description Default
message str

Text to display after the green checkmark symbol.

required
Source code in t3api_utils/style/messages.py
def print_success(message: str) -> None:
    """Print a success message with green checkmark.

    Args:
        message: Text to display after the green checkmark symbol.
    """
    console.print(f"{SUCCESS_SYMBOL} {message}")

print_error

print_error(message: str) -> None

Print an error message with red X mark.

Parameters:

Name Type Description Default
message str

Text to display after the red X mark symbol.

required
Source code in t3api_utils/style/messages.py
def print_error(message: str) -> None:
    """Print an error message with red X mark.

    Args:
        message: Text to display after the red X mark symbol.
    """
    console.print(f"{ERROR_SYMBOL} {message}")

print_warning

print_warning(message: str) -> None

Print a warning message with yellow warning symbol.

Parameters:

Name Type Description Default
message str

Text to display after the yellow warning symbol.

required
Source code in t3api_utils/style/messages.py
def print_warning(message: str) -> None:
    """Print a warning message with yellow warning symbol.

    Args:
        message: Text to display after the yellow warning symbol.
    """
    console.print(f"{WARNING_SYMBOL} {message}")

print_info

print_info(message: str) -> None

Print an info message with blue info symbol.

Parameters:

Name Type Description Default
message str

Text to display after the blue info symbol.

required
Source code in t3api_utils/style/messages.py
def print_info(message: str) -> None:
    """Print an info message with blue info symbol.

    Args:
        message: Text to display after the blue info symbol.
    """
    console.print(f"{INFO_SYMBOL} {message}")

print_progress

print_progress(message: str) -> None

Print a progress/status message with purple dots.

Parameters:

Name Type Description Default
message str

Status text to display after the purple dots symbol.

required
Source code in t3api_utils/style/messages.py
def print_progress(message: str) -> None:
    """Print a progress/status message with purple dots.

    Args:
        message: Status text to display after the purple dots symbol.
    """
    console.print(f"{PROGRESS_SYMBOL} {message}")

print_header

print_header(title: str) -> None

Print a main header with decorative purple borders.

Parameters:

Name Type Description Default
title str

Header text displayed between the decorative border symbols.

required
Source code in t3api_utils/style/messages.py
def print_header(title: str) -> None:
    """Print a main header with decorative purple borders.

    Args:
        title: Header text displayed between the decorative border symbols.
    """
    console.print(f"{MAIN_HEADER_PREFIX} {title} {MAIN_HEADER_SUFFIX}")

print_subheader

print_subheader(title: str) -> None

Print a section subheader with decorative purple borders.

Parameters:

Name Type Description Default
title str

Subheader text displayed between the decorative border symbols.

required
Source code in t3api_utils/style/messages.py
def print_subheader(title: str) -> None:
    """Print a section subheader with decorative purple borders.

    Args:
        title: Subheader text displayed between the decorative border symbols.
    """
    console.print(f"{SUB_HEADER_PREFIX} {title} {SUB_HEADER_SUFFIX}")

print_menu_item

print_menu_item(number: int, text: str) -> None

Print a numbered menu item with purple styling.

Parameters:

Name Type Description Default
number int

Menu item number displayed as the selection index.

required
text str

Description text displayed after the number.

required
Source code in t3api_utils/style/messages.py
def print_menu_item(number: int, text: str) -> None:
    """Print a numbered menu item with purple styling.

    Args:
        number: Menu item number displayed as the selection index.
        text: Description text displayed after the number.
    """
    formatted_number = MENU_NUMBER.format(number=number)
    console.print(f"  {formatted_number} {text}")

print_file_path

print_file_path(path: Any) -> None

Print a file path with cyan highlighting.

Parameters:

Name Type Description Default
path Any

File or directory path to display with cyan styling.

required
Source code in t3api_utils/style/messages.py
def print_file_path(path: Any) -> None:
    """Print a file path with cyan highlighting.

    Args:
        path: File or directory path to display with cyan styling.
    """
    console.print(f"[cyan]{path}[/cyan]")

print_technical

print_technical(info: str) -> None

Print technical information in dim text.

Parameters:

Name Type Description Default
info str

Technical detail text rendered in dim styling.

required
Source code in t3api_utils/style/messages.py
def print_technical(info: str) -> None:
    """Print technical information in dim text.

    Args:
        info: Technical detail text rendered in dim styling.
    """
    console.print(f"[dim]{info}[/dim]")

print_data

print_data(data: str) -> None

Print data/code in bright white.

Parameters:

Name Type Description Default
data str

Data or code content displayed in bright white styling.

required
Source code in t3api_utils/style/messages.py
def print_data(data: str) -> None:
    """Print data/code in bright white.

    Args:
        data: Data or code content displayed in bright white styling.
    """
    console.print(f"[bright_white]{data}[/bright_white]")

print_labeled_info

print_labeled_info(label: str, value: Any) -> None

Print labeled information with purple label and white value.

Parameters:

Name Type Description Default
label str

Descriptive label rendered in magenta, followed by a colon.

required
value Any

Associated value rendered in bright white after the label.

required
Source code in t3api_utils/style/messages.py
def print_labeled_info(label: str, value: Any) -> None:
    """Print labeled information with purple label and white value.

    Args:
        label: Descriptive label rendered in magenta, followed by a colon.
        value: Associated value rendered in bright white after the label.
    """
    console.print(f"[magenta]{label}:[/magenta] [bright_white]{value}[/bright_white]")

print_state_info

print_state_info(state_items: list[str]) -> None

Print current state information with purple styling.

Parameters:

Name Type Description Default
state_items list[str]

List of state descriptor strings joined with pipe separators. No output is produced if the list is empty.

required
Source code in t3api_utils/style/messages.py
def print_state_info(state_items: list[str]) -> None:
    """Print current state information with purple styling.

    Args:
        state_items: List of state descriptor strings joined with pipe
            separators. No output is produced if the list is empty.
    """
    if state_items:
        state_text = " | ".join(state_items)
        console.print(f"[dim]Current state:[/dim] [magenta]{state_text}[/magenta]")