Tabs
The following page documents visual specifications such as color, typography, structure, and size.
Color
Line tab color
Type | Element | Property | Color token |
---|---|---|---|
Unselected | Tab | background-color | transparent |
border-bottom |
| ||
Label | text-color |
| |
Icon | svg |
| |
Selected | Label | text-color |
|
Icon | svg |
| |
Tab | border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Example of selected and unselected line tabs](/static/1d81b00ceb3bf4ff612b41e3337231c3/3cbba/tab-style-1.png)
Example of selected and unselected line tabs.
Line tab interactive state color
State | Element | Property | Color token |
---|---|---|---|
Hover | Label | text-color |
|
Icon | svg |
| |
Tab | border-bottom |
| |
Focus | Tab: unselected | border |
|
Tab: selected | border |
| |
Disabled | Label | text-color |
|
Icon | svg |
| |
Tab | background-color | transparent | |
border-bottom |
|
![Examples of hover, unselected focus, selected focus, and disabled states for line tabs.](/static/1e9a4d112e6754fec7a5b9bb16160ddc/3cbba/tab-style-2.png)
Examples of hover, unselected focus, selected focus, and disabled states for line tabs.
Line tab scrollable states
State | Element | Property | Color token |
---|---|---|---|
Enabled | Icon | svg |
|
Button | linear-gradient |
| |
background-color |
| ||
Hover | Button | background-color |
|
Active | Button | background-color |
|
![Examples of enabled, hover, and active states for scrollable line tabs.](/static/8a3b4a60ae0371dddbae7f2e270b45a7/3cbba/tab-style-3.png)
Examples of enabled, hover, and active states for scrollable line tabs.
Dismissible line tab color
Type | Element | Property | Color token |
---|---|---|---|
Unselected | Tab | background-color | transparent |
border-bottom |
| ||
Label | text-color |
| |
Icon | svg |
| |
Selected | Label | text-color |
|
Icon | svg |
| |
Tab | border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Example of selected and unselected dismissible line tabs.](/static/fad4aa0cbb3e24ec85c19f4167dfb9cc/3cbba/tab-style-4.png)
Example of selected and unselected dismissible line tabs.
Dismissible line tab interactive state
State | Element | Property | Color token |
---|---|---|---|
Hover | Label | text-color |
|
Icon | svg |
| |
background-color |
| ||
Tab | border-bottom |
| |
Focus | Tab: unselected | border |
|
Tab: selected | border |
| |
Disabled | Label | text-color |
|
Icon | svg |
| |
Tab | background-color | transparent | |
border-bottom |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of unselected close hover, unselected hover, unselected focus, and disabled states for dismissible line tabs.](/static/82f91cb64c0bf273b597b48bec6fef9a/3cbba/tab-style-5.png)
Examples of unselected close hover, unselected hover, unselected focus, and disabled states for dismissible line tabs.
![Examples of selected close hover and selected focus states for dismissible line tabs](/static/36bba03b32f7045f92a8fff86f05f7aa/3cbba/tab-style-6.png)
Examples of selected close hover and selected focus states for dismissible line tabs.
Contained tab color
Type | Element | Property | Color token |
---|---|---|---|
Unselected | Tab | background-color |
|
border-right |
| ||
Label | text-color |
| |
Secondary label | text-color |
| |
Icon | svg |
| |
Selected | Tab | background-color |
|
border-top |
| ||
Label | text-color |
| |
Secondary label | text-color |
| |
Icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of selected and unselected contained tabs.](/static/1377f39a220f132cc2d68cec183fcc5d/3cbba/tab-style-7.png)
Examples of selected and unselected contained tabs.
Contained tab interactive state color
State | Element | Property | Color token |
---|---|---|---|
Hover | Tab | background-color |
|
Label | text-color |
| |
Secondary label | text-color |
| |
Icon | svg |
| |
Focus | Tab | border |
|
Disabled | Label | text-color |
|
Secondary label | text-color |
| |
Icon | svg |
| |
Tab | background-color |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of hover, unselected focus, selected focus, and disabled states for contained tabs.](/static/c23505d256762fb4ac4b86e25e43cf68/3cbba/tab-style-8.png)
Examples of hover, unselected focus, selected focus, and disabled states for contained tabs.
Contained tab scrollable states
State | Element | Property | Color token |
---|---|---|---|
Enabled | Icon | svg |
|
Button | background-color |
| |
Hover | Button | background-color |
|
Icon | svg |
| |
Active | Button | background-color |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of enabled, hover, and active states for contained scrollable tabs.](/static/f6df1c3631a8eea895d7b8b96c5faf23/3cbba/tab-style-9.png)
Examples of enabled, hover, and active states for contained scrollable tabs.
Dismissible contained tab color
Type | Element | Property | Color token |
---|---|---|---|
Unselected | Tab | background-color |
|
border-right |
| ||
Label | text-color |
| |
Icon | svg |
| |
Dismissible icon | svg |
| |
Selected | Tab | background-color |
|
border-top |
| ||
Label | text-color |
| |
Icon | svg |
| |
Dismissible icon | svg |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of selected and unselected dismissible contained tabs.](/static/ef54541a2f13c9575081e0be2b92b2bf/3cbba/tab-style-10.png)
Examples of selected and unselected dismissible contained tabs.
Dismissible contained tab interactive state color
State | Element | Property | Color token |
---|---|---|---|
Hover | Tab | background-color |
|
Label | text-color |
| |
Icon | svg |
| |
Dismissible icon | svg |
| |
Dismissible icon: selected | background-color |
| |
Dismissible icon: unselected | background-color |
| |
Focus | Tab | border |
|
Disabled | Label | text-color |
|
Icon | svg |
| |
Tab | background-color |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Unselected close hover, unselected hover, unselected focus, and disabled states for dismissible contained
tabs.](/static/402bb14a48013d85181b813384bd788d/3cbba/tab-style-11.png)
Examples of unselected close hover, unselected hover, unselected focus, and disabled states for dismissible contained tabs.
![Selected close hover and selected focus states for dismissible contained
tabs.](/static/7af7b0fde1d2bccb394c732a46926176/3cbba/tab-style-12.png)
Examples of selected close hover and selected focus states for dismissible contained tabs.
Vertical tab color
Type | Element | Property | Color token |
---|---|---|---|
Unselected | Tab | background-color |
|
border-bottom, border-right, border-left |
| ||
Label | text-color |
| |
Extended background | background-color |
| |
border-right |
| ||
Selected | Tab | background-color |
|
border-bottom |
| ||
border-left |
| ||
Label | text-color |
| |
tab panel | background | background-color |
|
* Denotes a contextual color token that will change values based on the layer it is placed on.
![Examples of selected and unselected vertical tabs.](/static/ceb4f2cc73861283143dd783f729108e/3cbba/tab-style-20.png)
Examples of selected and unselected vertical tabs.
Vertical tab interactive state color
State | Element | Property | Color token |
---|---|---|---|
Hover | Label | text-color |
|
Tab | background-color |
| |
Focus | Tab: unselected | border |
|
Label: unselected | text-color |
| |
Tab: selected | border |
| |
Label: selected | text-color |
| |
Disabled | Label | text-color |
|
![Examples of hover, unselected focus, selected focus, and disabled states for vertical tabs.](/static/c598abc61e0c4b8a0f5de8f8170590d9/3cbba/tab-style-21.png)
Examples of hover, unselected focus, selected focus, and disabled states for vertical tabs.
Typography
Tab labels should be set in sentence case, and should not exceed three words.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Label: unselected | 14 / 0.875 | Regular / 400 |
|
Label: selected | 14 / 0.875 | SemiBold / 600 |
|
Secondary label | 12 / 0.75 | Regular / 400 |
|
Structure
Line tab structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab | height | 40 / 2.5 | – |
border-bottom | 2px | – | |
width | auto-width | – | |
margin-left | 1px | – | |
Label | padding-left, padding-right | 16 / 1 |
|
padding-top, padding-bottom | 8 / 0.5 |
| |
Icon | padding-right | 16 / 1 |
|
padding-left | 8 / 0.5 |
| |
svg | 16 x 16 | – | |
Scrollable icon | svg | 16 x 16 | – |
![Structure and spacing measurements for line tabs.](/static/56eb5b12f4332efba0703aeb7d53f6ac/3cbba/tab-style-13.png)
Structure and spacing measurements for line tabs | px / rem
Line tab icon-only modifier
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab (md) | height, width | 40 / 2.5 | – |
svg | 16 x 16 | – | |
Tab (lg) | height, width | 48 / 3 | – |
svg | 20 x 20 | – |
![Structure and spacing measurements for line tabs in px and rem](/static/8151625b3096bdd07cb28b432c996fd4/3cbba/tab-style-14.png)
Structure and spacing measurements for icon-only line tabs | px / rem
Dismissible line tab structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab | height | 40 / 2.5 | – |
border-bottom | 2px | – | |
width | auto-width | – | |
margin-left | 1px | – | |
Label | padding-left, padding-right | 16 / 1 |
|
padding-top, padding-bottom | 8 / 0.5 |
| |
Dismissible icon | padding-right | 16 / 1 |
|
padding-left | 8 / 0.5 |
| |
svg | 16 x 16 | – | |
Icon | padding-right | 8 / 0.5 |
|
padding-left | 16 / 1 |
| |
svg | 16 x 16 | – |
![Structure and spacing measurements for dismissible line tabs without icons (top) and with icons (bottom).](/static/c68b70a8d5a136347de4e6474363c3ae/3cbba/tab-style-15.png)
Structure and spacing measurements for line tabs without icons (top) and with icons (bottom) | px / rem
Contained tab structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab | height | 40 / 2.5 | – |
border-top | 2px | – | |
width | auto-width, grid | – | |
Label | padding-left, padding-right | 16 / 1 |
|
Icon | padding-right | 16 / 1 |
|
padding-left | 16 / 1 |
| |
svg | 16 x 16 | – | |
Tab | border-right | 1px | – |
Scrollable icon | svg | 16 x 16 | – |
Scrollable button | border-right, border-left | 1px | – |
![Structure and spacing measurements for contained tabs in px and rem](/static/ac2ebbc274d57c242f243b999406b180/3cbba/tab-style-16.png)
Structure and spacing measurements for contained tabs | px / rem
Contained tab icon-only modifier
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab (lg) | height, width | 48 / 3 | – |
svg | 20 x 20 | – |
![Structure and spacing measurements for icon-only contained tabs in px and
rem](/static/6a1587feb3acc0aa15be7e3e01dcfd05/3cbba/tab-style-17.png)
Structure and spacing measurements for icon-only contained tabs | px / rem
Dismissible contained tab structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab | height | 40 / 2.5 | – |
border-top | 2px | – | |
width | auto-width, grid | – | |
Label | padding-left, padding-right | 16 / 1 |
|
Dismissible icon | padding-right | 16 / 1 |
|
padding-left | 8 / .5 |
| |
svg | 16 x 16 | – | |
Icon | padding-right | 8 / .5 |
|
padding-left | 16 / 1 |
| |
svg | 16 x 16 | – | |
Tab | border-right | 1px | – |
![Structure and spacing measurements for dismissible contained tabs in px and rem](/static/08dd88a8d8f4b35ffafae29c25772803/3cbba/tab-style-18.png)
Structure and spacing measurements for dismissible contained tabs without icons (top) and with icons (bottom)| px / rem
Verical tab structure
Element | Property | px / rem | Spacing token |
---|---|---|---|
Tab | height | 64 / 4 | – |
border-left | 3 px | – | |
Tab: unselected | border-bottom, border-right | 1 px | – |
Tab: selected | border-bottom | 1 px | – |
Label | padding-left, padding-right | 16 / 1 |
|
Extended background | border-right | 1 px | – |
![Structure and spacing measurements for vertical tabs in px and rem](/static/28b3b6247bfa2e0ad275d56e3983d387/3cbba/tab-style-22.png)
Structure and spacing measurements for vertical tabs without overflow (left) and with overflow (right) | px / rem
Feedback
Help us improve this component by providing feedback, asking questions, and leaving any other comments on GitHub.