Light and dark themes run on CSS variables. Flip the toggle here or in the header.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Content that can read and change the theme. |
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | Extra classes added to the toggle button. |