Mesa Design System White Logo

A toggle is a digital on/off switch. These are best used for changing the state of system functionalities and preferences. They may replace two radio buttons or a single checkbox to allow users to choose between two opposing states.

Color

ElementPropertyColor token
Label texttext color$text-secondary
Action texttext color$text-primary
Background (off)background-color$layer-03
Handle (off)background-color$icon-on-color
Background (on)background-color$icon-brand
Handle (on)background-color$icon-on-color
Checkmarkfill$icon-on-color

Typography

ElementFont-size (px/rem)Font-weightType token
Label text14 / 0.875Semibold / 600$heading-compact-02
Icon text14 / 0.875Regular / 400$body-compact-02

Structure

ElementPropertypx / remSpacing token
Togglewidth35px
 height20px
Handleheight, width16px
Label textmargin-bottom12 / 0.75$spacing-06
Action textmargin-left8 / 0.5$spacing-05