useTheme
Read and set the current theme (light, dark, system) with localStorage persistence.
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| theme | 'light'|'dark'|'system' | — | The currently active theme. |
| setTheme | (t: AtlasTheme) => void | — | Update and persist the theme. |