Header

The Header component provides a reusable pattern for header in the interface.

Basic

Primary color

Secondary color

Accented

Primary color accented

Secondary color accented

With logotype (auto-scale on)

Header with a logotype. Logotype auto-scale is enabled by default - resize the browser to see the logotype scale fluidly between its minimum and maximum height.

Logotype

With logotype (auto-scale off)

Same header with the logotype auto-scale disabled. The logotype height is fixed regardless of screen or container size.

Logotype

With brand

Header using the brand component instead of logotype while keeping the rest of the header layout unchanged.

Brand

With brand and text

Header using the brand component with accompanying text. The text is aligned to the right of the brand component and will wrap if necessary.

With brand and multiline text

Header using the brand component with accompanying text. The text is aligned to the right of the brand component and will wrap if necessary.

No margin (x and y disabled)

Header with both horizontal and vertical margins disabled via --padding-x-enabled and --padding-y-enabled set to 0.

Logotype

API

Parameter Default Description
header -
null -
false -
false -
false -

CSS API

Variable Default Type Values Description
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--outer-space) range - Spacing between components. Use --space for spacing inside components.
var(--color--surface) color - Controls the header background, text contrast, and border color.
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--color--primary) color - Primary
var(--color--primary-contrast) color - Primary Contrast
var(--color--primary-border) color - Manual companion token for primary border and hover states.
var(--color--secondary) color - Secondary
var(--color--secondary-contrast) color - Secondary Contrast
var(--color--secondary-border) color - Manual companion token for secondary border and hover states.
var(--base) range - Main unit that drives radius and spacing scales.
5 range - Minimum height multiplier (times base 8px) used for both logotype and brand.
5 range - Minimum height multiplier (times base 8px) used for both logotype and brand.
12 minmaxrange - Maximum height multiplier (times base 8px) used for both logotype and brand.
12 minmaxrange - Maximum height multiplier (times base 8px) used for both logotype and brand.
1 select 0.85, 1, 1.2 Selects how quickly the logotype and brand scale with viewport width when auto scale is enabled.
1 select 0.85, 1, 1.2 Selects how quickly the logotype and brand scale with viewport width when auto scale is enabled.
1 select 0, 1 Enables fluid scaling of the logotype or brand component based on available space or screen size. Uses a min/max/scale clamp calculation for smooth mobile adaptation.
1 select 0, 1 Enables fluid scaling of the logotype or brand component based on available space or screen size. Uses a min/max/scale clamp calculation for smooth mobile adaptation.
select - Controls the rendered width of header containers.
1 range - Scales the inner padding and gap of the header proportionally.
1 select 0, 1 Enables or disables horizontal (left and right) margin on the header.
1 select 0, 1 Enables or disables vertical (top and bottom) margin on the header.

Similar components