Mesa Design System White Logo

Tabs allow users to navigate between related sections of content without leaving a page. Tabs contain at least two items, and one tab is active at a time.

Color

Line tab

StateElementPropertyColor token
UnselectedTabbackground-colortransparent
  border-bottom$border-subtle-01
 Labeltext color$text-secondary
 Iconsvg$icon-secondary
SelectedTabbackground-colortransparent
  border$border-interactive
 Labeltext color$text-primary
 Iconsvg$icon-primary

 

Contained tab

StateElementPropertyColor token
UnselectedTabbackground-color$background-secondary-light
  border$border-subtle-01
 Labeltext color$text-secondary
 Iconsvg$icon-secondary
SelectedTabbackground-color$background-secondary-light
  border$border-interactive
 Labeltext color$text-primary
 Iconsvg$icon-primary

Typography

ElementFont-size (px/rem)Font-weightType token
Label:unselected18 / 1.125Regular / 400$tab-label-01
Label:selected18 / 1.125Semibold / 600$tab-label-selected-01

Structure

ElementPropertypx / remSpacing token
Tabheight50px
 border-bottom2px
 widthauto-width
 margin-left1px
Labelpadding-left, padding-right24 / 1.5$spacing-06
 padding-top, padding-bottom12 / 0.75$spacing-04
Iconpadding-right16 / 1$spacing-05
 padding-left8 / 0.5$spacing-03
 svg16 x 16