Style logo rich: style

1 2 3 4 5 6 7 8 9 10 11 12

The main entry to rich is the Console object. From here you can get more control of the style that is applied when printing.

from rich.console import Console

console = Console()

console.print("This is some text.")
console.print("This is some text.", style="bold")
console.print("This is some text.", style="bold underline")
console.print("This is some text.", style="bold underline red")
console.print("This is some text.", style="bold underline red on black")