NorbieLink
search close
Home›Components›Switches

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.

On
On state
Track: color.warning (#E8622A) · Thumb: white · positioned right
Off
Off state
Track: gray-300 (#D1D5DB) · Thumb: white · positioned left
Disabled
Disabled state
Opacity: 40% · cursor: not-allowed · no interaction

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.

On
Track #E8622A (color.switch-on) · the only "on" colour in the product. Used for the Dark Mode and Legacy View toggles in the sidebar footer, and for every settings and feature toggle.
Off
Track #D1D5DB · rgba(255,255,255,0.20) in dark mode. The thumb stays white in every state.

Specs

PropertyValue
Track width36px
Track height20px
Track radius9999px
Thumb size16×16px circle, top 2px
Thumb colorwhite always
Thumb shadow0 1px 3px rgba(0,0,0,.20)
On positionThumb at translateX(19px)
Off positionThumb at translateX(2px)
Track on#E8622A — the only on colour
Track off (light)#D1D5DB (gray-300)
Track off (dark)rgba(white, 20%)