# Theme

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/final_markdown/_layout/Theme)

Theme facts that change block geometry, colors, or fence highlighting.

Block backgrounds and borders with alpha are inline styles rather than
component classes: a partial component style pre-blends its alpha
against transparent black, which darkens a light theme's `white 30%`.

## Signature

```python
Theme(
    self,
    ansi: bool,
    dark: bool,
    quote_bar: str,
    rule: str,
)
```

## Constructors

```python
__init__(
    self,
    ansi: bool,
    dark: bool,
    quote_bar: str,
    rule: str,
) -> None
```

| Name | Type |
|------|------|
| `ansi` | `bool` |
| `dark` | `bool` |
| `quote_bar` | `str` |
| `rule` | `str` |


## Properties

- `ansi`
- `dark`
- `quote_bar`
- `rule`
- `fence`
- `quote_border`
- `table`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/tui/widgets/final_markdown/_layout.py#L40)