# Theme Switcher
A three-way toggle for switching between system, light, and dark color themes. Sets the `data-vesper-theme` attribute on the document element to control the active theme.
```tsx demo
import { ThemeSwitcher } from "@tenstorrent/vesper/theme-switcher";
export default function ThemeSwitcherDemo() {
return (
);
}
```
## Options
| Prop | Type | Description | Default |
| ------ | -------------- | ------------------------------- | ------- |
| `size` | `"sm" \| "lg"` | The size of the theme switcher. | `"lg"` |
## Examples
Render a `ThemeSwitcher` without any props. By default it renders at `lg` size:
```tsx demo
import { ThemeSwitcher } from "@tenstorrent/vesper/theme-switcher";
export default function BasicThemeSwitcher() {
return ;
}
```
To specify a size, pass `size="sm"` or `size="lg"`:
```tsx demo
import { ThemeSwitcher } from "@tenstorrent/vesper/theme-switcher";
export default function ThemeSwitcherSizes() {
return (
);
}
```