Skip to content

Header

Page-level header with flex layout, brand link, and nav styling.


Classes

ClassPurpose
.headerFlex container with space-between, bottom border, and spacing
.header > aBold brand link, font-size-lg, no underline
.header nav aSecondary color, font-size-sm, hover → primary

Preview


Usage

html
<header class="header" role="banner">
  <a href="/">Brand</a>
  <nav>
    <a href="/about">About</a>
    <a href="/blog">Blog</a>
  </nav>
</header>

Apply to a <header> element for the page-level navigation bar. Use role="banner" for the landmark.

A plain <header> without the class only gets display: block from the elements layer.