Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion typer/colors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Variable names to colors, just for completion
"""Color constants for terminal output styling.

This module provides string constants for standard and bright terminal colors
that can be used with typer's styling functions like `typer.style()` and
`typer.secho()` for the `fg` (foreground) and `bg` (background) parameters.

Example:
>>> import typer
>>> typer.secho("Hello", fg=typer.colors.GREEN)
>>> styled = typer.style("Error", fg=typer.colors.RED, bold=True)
"""

BLACK = "black"
RED = "red"
GREEN = "green"
Expand Down