- Home
- Design system
- Elements
- Header
Header
Options
Basic usage
Contents are left aligned in the header by default.
html
Copy
Text
ds-text elements have specific styling within the header.
html
Copy
Menu button
The primary menu button can be included using the following specific styling.
Default
html
Copy
Animated menu label
html
Copy
Controls
Controls can include components such as buttons/selects and are right aligned in the header.
html
Copy
Component color
Header supports component color, and automatically sets the color of the logo and text based on the chosen color in both dark and light mode to optimize legibility.
In most cases you should use either the default (light) header or dark
style header – or use the data-coverage attribute to switch
styles.
html
Copy
Styles
Custom styles exist for specific use cases.
Dark style
html
Copy
User console style
If the ds-header has a data-coverage attribute, the following styles will be applied.
html
Copy
Soracom
User console
html
Copy