Mordoc

Header

Style the header's own spacing, logo size, and hamburger button, independent of what's inside it.

1 MIN READ

The Header Area box (from App Layout) contains the Header component. Header draws its own two-row skeleton inside that box:

Text
┌─────────────────────────────────────────────────────────────┐
│ [Logo]           [        Search        ]      [Actions]    │  primary row
├─────────────────────────────────────────────────────────────┤
│  Link   Link   Link                                         │  top navigation row
└─────────────────────────────────────────────────────────────┘
  • Primary row: a logo on the left, search centered, and actions (header links, language picker, theme toggle) on the right. Below 768px, search and the right-side actions collapse behind a hamburger button.
  • Top navigation row: only present when your project uses config/navigation/topnav.yaml instead of a single sidenav. See Top Navigation for its own tokens.

This page covers Header's own spacing and the logo/hamburger. Header links, the language picker, the theme toggle, and search each have their own page, linked at the bottom.

Open the override file

Text
config/styles/header.css

Tokens

TokenWhat it controls
--header-paddingHorizontal padding on both rows. Defaults to 16px.
--primary-area-gapGap between the logo, search, and actions in the primary row. Grows at wider breakpoints by default; setting this overrides all of them to one fixed value.
--brand-logo-sizeHeight of the logo image.
--menu-btn-sizeWidth and height of the mobile hamburger/close button.
--menu-btn-radiusCorner radius of the mobile hamburger/close button.
--menu-btn-iconSize of the hamburger/close icon inside the button.
Css
:root {
  --brand-logo-size: 32px;
  --menu-btn-radius: 10px;
}

Example header.css

A config/styles/header.css that sets every token on this page. None of them are colors, so there's no separate dark-mode variant to set:

Css
:root {
  --header-padding: 20px;
  --primary-area-gap: 16px;
  --brand-logo-size: 32px;
  --menu-btn-size: 40px;
  --menu-btn-radius: 10px;
  --menu-btn-icon: 22px;
}

Next step

© 2026 MordocPowered by Mordoc