Mordoc

App Layout

Style the header, side navigation, and content area boxes that make up every Mordoc page.

1 MIN READ

Every page in a Mordoc site is built from the same three boxes. config/styles/app.css styles those boxes' placement, background, and border, without touching what's inside them.

Text
┌────────────────────────────────────────────────┐
│                  Header Area                   │
├────────────────┬───────────────────────────────┤
│                │                               │
│  Sidenav Area  │        Content Area           │
│                │                               │
│                │                               │
└────────────────┴───────────────────────────────┘
  • Header Area: sticky across the top of every page.
  • Sidenav Area: the side navigation, to the left of the content on desktop, off-canvas on mobile.
  • Content Area: everything else, the article, its table of contents, and the footer.

What goes inside each box is its own component's job. This page only covers the box itself. See Header, Side Navigation, and Content Layout for what's drawn inside each one.

Open the override file

Text
config/styles/app.css

Tokens

TokenWhat it controls
--header-area-bgBackground of the Header Area box.
--sidenav-area-bgBackground of the Sidenav Area box.
--sidenav-area-widthWidth of the Sidenav Area box on desktop. Defaults to 16rem.

Example app.css

A config/styles/app.css that sets every token on this page, for both light and dark mode:

Css
:root {
  --header-area-bg: #ffffff;
  --sidenav-area-bg: #ffffff;
  --sidenav-area-width: 18rem;
}

.dark {
  --header-area-bg: #0d0d0d;
  --sidenav-area-bg: #0d0d0d;
}

Next step

© 2026 MordocPowered by Mordoc