# get_registry

> **Function** in `deepagents_code`

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

Return the read-only theme registry, building it on first access.

Lazy so that `theme.py` can be imported on the `deepagents --help` cold
path without pulling in `textual.theme.BUILTIN_THEMES` (which transitively
imports Textual, ~470ms). Inside a Textual app, the build is microseconds
because Textual is already loaded; callers like `_register_custom_themes()`
iterate the result during `App.__init__`, which warms the cache before any
user-facing surface (e.g. the theme picker) reads it.

## Signature

```python
get_registry() -> MappingProxyType[str, ThemeEntry]
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/theme.py#L703)