Tab

Tabs organize the content across different screen areas.


Recommendations#

  • Only one tab page can be active, the other tab is default.
  • Only the content of the activated tab is visible to the user.
  • Use the tab to organize different content areas.

Overall styling#

  • The text-style is basic bold.
  • The line-height is default.
  • The indicator has a thickness of 4px.

    ☀ Light mode☾ Dark mode
    tab bartab bar

Elements#

☀ Light mode styling#

Types Attributes Preview
defaulttext-color: greyscale/light-mode/general/high-contrast
background-color: greyscale/light-mode/background/light-1
default
activetext-color: brand-primary-base
background-color: greyscale/light-mode/background/-light-1
indicator: brand-primary-base
active 

☾ Dark mode styling#

Types Attributes Preview
defaulttext-color: greyscale/dark-mode/general/high-contrast
background-color: greyscale/dark-mode/general/low contrast
default
activetext-color: greyscale/dark-mode/general/high-contrast
background-color: brand-primary-base
indicator: greyscale/dark-mode/general/high-contrast
active 

Spacing & measurements#

Types Attributes Preview
horizontal spacingThe tab component can be variable in width but the text is always centered and has a minimum spacing of 16px.horizontal-spacing
vertical spacing defaultpadding-top: 8px
padding-bottom: 8px
vertical-spacing
vertical spacing activepadding-top: 8px
padding-bottom: 4px
indicator: 4px
vertical-spacing

What can be modified?#

  • Override the text.
  • Adjust the width of single symbols according to the width of the device.