Skip to content

Header Module ​

The Header module provides flexible heading layouts with optional thumbnails, sub-headers, decorators, and color or gap variants. Heading item (h1-h6) extends the Element module.

Main Title

Muted SubtitleStrong Item

Centered Header

Muted Subtitle

Main Title

Decorated Header

Colorized Header

Decorated Header

Signature:

scss
@mixin use-header($colors: (), $gaps: ());

Example:

scss
@include termeh.use-header(("primary", "indigo"), ("normal", "large"));

Module:

This module is registered as header in the presented modules.

Dependencies

Header module uses the following Termeh global var():

ComponentTypeUsageDefault
font → weightStringSub-header font weightnormal
strong → weightStringTop-header font weightbold
gap → macroNumberSpacing between blocks and bottom margin1.6em
line-height → normalNumberDefault line height1.6em
decorator → sizeNumberDecorator line thickness2px

Header module uses the following Termeh color() and variant():

Color / VariantUsageDefault
shadeDefault decorator colorerror
shade → muteSub-header text colornull

Child Elements ​

  • .thumbnail → heading icon or avatar
  • .headers → heading items container

Modifiers ​

  • .is-decorated → adds a side border decoration
  • .is-centered → centers all text within the header
  • .is-<gap>-gap → applies a predefined spacing value
  • .is-<color> → applies a predefined accent color