Switches toggle a single setting on or off. In Norbielink, they appear in the sidebar footer to control Dark Mode and Legacy View, and in settings forms. Three color variants reflect different semantic meanings.
Dark Mode
On — Orange
Legacy View
Off — Gray
Notifications
On — Orange
Feature Flag
On — Orange
States
Each switch has three states: on, off, and disabled. The thumb always stays white. The track color changes to communicate the current state.
Color variants
Three track colors are used depending on context. Dark Mode uses Orange (a signal of a major mode change), settings use Teal, and feature flags use Purple.
Specs
| Property | Value |
|---|---|
| Track width | 52px |
| Track height | 30px |
| Track radius | 15px (shape.full) |
| Thumb size | 22×22px circle |
| Thumb color | white always |
| Thumb shadow | 0 1px 4px rgba(0,0,0,.25) |
| On position | Thumb at right: translateX(26px) |
| Off position | Thumb at left: translateX(4px) |
| Track on (Dark Mode) | #F97316 (warning) |
| Track on (General) | #E8622A (warning/orange) |
| Track on (Feature) | #E8622A (warning/orange) |
| Track off (light) | #D1D5DB (gray-300) |
| Track off (dark) | rgba(white, 20%) |