# get_css_variable_defaults

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/theme/get_css_variable_defaults)

Return custom CSS variable defaults for the given mode.

Most styling is handled by Textual's built-in CSS variables (`$primary`,
`$text-muted`, `$error-muted`, etc.).  This function only returns
app-specific semantic variables that have no Textual equivalent.

## Signature

```python
get_css_variable_defaults(
    *,
    dark: bool = True,
    colors: ThemeColors | None = None,
) -> dict[str, str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `dark` | `bool` | No | Selects `DARK_COLORS` or `LIGHT_COLORS` when `colors` is None. (default: `True`) |
| `colors` | `ThemeColors \| None` | No | Explicit color set to use. Takes precedence over `dark`. (default: `None`) |

## Returns

`dict[str, str]`

Dict of CSS variable names to hex color values.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/b710a69b12e49479045eaa54dfb709326473500b/libs/cli/deepagents_cli/theme.py#L698)