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
fontweightStringSub-header font weightnormal
strongweightStringTop-header font weightbold
gapmacroNumberSpacing between blocks and bottom margin1.6em
line-heightnormalNumberDefault line height1.6em
decoratorsizeNumberDecorator line thickness2px

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

Color / VariantUsageDefault
shadeDefault decorator colorerror
shademuteSub-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