Skip to content

Heading Styles

Applies consistent heading styles for h1h6 elements. This includes font sizes, line heights, bottom margins, and bold weight to create a clear typographic hierarchy for headings in your UI.

Heading 1 – Has Massive Size

Heading 2 – Has Huge Size

Heading 3 – Has Big Size

Heading 4 – Has Large Size

Heading 5 – Has Medium Size
Heading 6 – Has Normal Size

Usage

Signature:

scss
@mixin use-heading();

Example:

scss
@include termeh.use-heading();
Dependencies

Heading module uses the following Termeh global var():

ComponentTypeUsageDefault
line-heightlargeNumberLine height for <h1> and <h2>1.2em
line-heightmediumNumberLine height for <h3> and <h4>1.4em
line-heightnormalNumberLine height for <h5> and <h6>1.6em
gapmacroNumberBottom margin for headings1.6em

Heading module uses the following Termeh size():

SizeUsageDefault
massiveFont size for <h1>error
hugeFont size for <h2>error
bigFont size for <h3>error
largeFont size for <h4>error
mediumFont size for <h5>error
normalFont size for <h6>error