Components
Switches
A setting that takes effect immediately. On is the green switch token. Off is the muted track.
Buy nowSwitches
<Switch defaultChecked>Dark theme</Switch>
How to use
A setting that takes effect immediately. On is the green switch token. Off is the muted track.
Switches exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.
Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.
Tokens
| Token | Value | Use |
|---|---|---|
| --switches-bg | var(--background) | Surface behind the control |
| --switches-fg | var(--foreground) | Label and icon |
| --switches-border | var(--border) | Edge |
| --radius-md | 10px | Default corner |
| --duration-fast | 120ms | Hover and press |
Included
- On, off, and disabled
Memorisely