# Project


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

<!-- # Prologue -->

# console

## Theme Customization

[`setup_console`](https://civvic.github.io/pote/project.html#setup_console)
supports theme customization through:

1.  **String theme name**: Loads from `rich_theme_manager` if installed
2.  **Theme object**: Pass a `rich.theme.Theme` instance directly
3.  **None**: Uses default Rich theme

**Example with theme manager:**

``` python
# Requires: pip install rich-theme-manager
console, cprint = setup_console(width=120, theme='monokai')
```

**Example with custom theme:**

``` python
from rich.theme import Theme

custom_theme = Theme({
    "info": "cyan",
    "warning": "yellow",
    "error": "bold red"
})
console, cprint = setup_console(theme=custom_theme)
```

------------------------------------------------------------------------

<a href="https://github.com/civvic/pote/blob/main/pote/project.py#L43"
target="_blank" style="float:right; font-size:smaller">source</a>

### setup_console

``` python

def setup_console(
    width:int=140, theme:str | object | None=None, clear:bool=False, rule:NoneType=None
)->tuple[Console, Callable[..., None]]:

```

------------------------------------------------------------------------

<a href="https://github.com/civvic/pote/blob/main/pote/project.py#L38"
target="_blank" style="float:right; font-size:smaller">source</a>

### get_console

``` python

def get_console(
    
)->Console:

```

*Globally configured console*

``` python
print(_CONSOLE)
```

    <console width=140 ColorSystem.TRUECOLOR>

------------------------------------------------------------------------

<!-- # Colophon -->
