UI shell header
Color
Note: The UI Shell does not currently use the Carbon theme tokens; theming options for the shell will be available in the future. All color used in the UI Shell is from the IBM Design Langauge palette.
Class | Property | Color value |
---|---|---|
.bx--header | background color | Gray 100 |
.bx--header | border-bottom | Gray 80 |
.bx--header__name | text color | Gray 10 |
.bx--header__menu-trigger | fill | Gray 10 |
.bx--header__nav::before | border | Gray 80 |
![ui shell header ui shell header](/static/4cadac4c63ea082a793765881d00f9b3/3cbba/header-style-1.png)
Menu-trigger
Class | Property | Color value |
---|---|---|
.bx--header__menu-trigger | fill | Gray 10 |
.bx--header__menu-trigger:hover | background color | Gray 100-hover |
.bx--header__menu-trigger:focus | border | White |
.bx--header__menu-trigger:active | background color | Gray 80 |
![Menu trigger interactive states Menu trigger interactive states](/static/95988cf25cffad49a3c12fba5b798d9c/3cbba/header-style-5.png)
Menu-trigger interactive states
Menu-item
Class | Property | Color value |
---|---|---|
.bx--header__menu-item | text color | Gray 30 |
.bx--header__menu-item | svg | Gray 30 |
.bx--header__menu-item:hover | background color | Gray 100-hover |
.bx--header__menu-item:hover | text color | Gray 10 |
.bx--header__menu-item:hover | svg | Gray 10 |
.bx--header__menu-item:focus | border | White |
.bx--header__menu-item:active | background color | Gray 80 |
.bx--header__menu-item:active | text color | Gray 10 |
.bx--header__menu-item:active | svg | Gray 10 |
![Menu item interactive states Menu item interactive states](/static/ea28a64f84c2d8f2195dd33cbc49bc5e/3cbba/header-style-6.png)
Sub-menu interactive states
Sub-menu
Class | Property | Color value |
---|---|---|
.bx--header__submenu | background color | Gray 90 |
.bx--header__submenu | text color | Gray 30 |
.bx--header__submenu:hover | background color | Gray 90-hover |
.bx--header__submenu:hover | text color | Gray 10 |
.bx--header__submenu:focus | border | White |
.bx--header__submenu:active | background color | Gray 70 |
.bx--header__submenu:active | text color | Gray 10 |
![Sub-menu interactive states Sub-menu interactive states](/static/4c9a2558047019a9f82eea639279ad36/3cbba/header-style-7.png)
Action
Class | Property | Color value |
---|---|---|
.bx--header__action | fill | Gray 30 |
.bx--header__action:hover | background color | Gray 100-hover |
.bx--header__action:hover | fill | Gray 10 |
.bx--header__action:focus | border | White |
.bx--header__action:active | background color | Gray 80 |
.bx--header__action:active | fill | Gray 10 |
![Header action interactive states Header action interactive states](/static/56e97a05456666532ee4c842170b063f/3cbba/header-style-8.png)
Header action interactive states
Typography
Menu labels and text should be set in sentence case.
Class | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
.bx--header__name | 14 / 0.875 | SemiBold / 600 | $heading-01 |
.bx--header__name--prefix | 14 / 0.875 | Regular / 400 | $body-short-01 |
.bx--header__menu-item | 14 / 0.875 | Regular / 400 | $body-short-01 |
Structure
The header should span the full width of the browser window. The header can either stay sticky to the top of the browser or scroll away.
Class | Property | px/rem | Spacing token |
---|---|---|---|
.bx--header | height | 48 / 3 | – |
.bx--header__menu-trigger | height, width | 48 / 3 | – |
.bx--header__name | padding-left | 16 / 1 | $spacing-05 |
.bx--header__name | padding-right | 32 / 2 | $spacing-07 |
.bx--header__nav | padding-left | 16 / 1 | $spacing-05 |
.bx--header__menu-item | padding-left, padding right | 16 / 1 | $spacing-05 |
.bx--header__menu-arrow | padding-left | 8 / 0.5 | $spacing-03 |
.bx--header__submenu | padding-left, padding right | 16 / 1 | $spacing-05 |
.bx--header__action | height, width | 48 / 3 | – |
![ui shell header spec ui shell header spec](/static/3dfb8d3b0e65f129ffd0492b1cb0f7d8/3cbba/header-style-2.png)
Structure and spacing measurements for UI shell header | px | rem
![ui shell header submenu spec ui shell header submenu spec](/static/8f5750e466c9425b8f28ef6c0711250a/3cbba/header-style-3.png)
Structure and spacing measurements for header submenu | px | rem
Responsive behavior
In smaller broswer windows, menu items
in the header should collapse into the left side nav menu. Items that were once in the header should stack at the top of the side nav panel if other items were already present in the panel.
![responsive behavior example responsive behavior example](/static/c2b804afbb6c37a78cfbe1d8c10ab0ee/3cbba/header-style-4.png)
Responsive behavior for UI shell header