Use consistent layout primitives so pages feel related and predictable.

Base structure

Ops Forward interfaces use three zones:

  1. Header
  2. Navigation rail
  3. Main content area
<div class="site-layout">
  <header>...</header>
  <div class="site-body">
    <aside>...</aside>
    <main>...</main>
  </div>
</div>

Standard measurements

AreaSize
Header height48px
Sidebar width260px
Docs content max width760px
Product content max width1280px
Docs TOC width220px

Spacing rhythm

  • Use the 4px base grid.
  • Prefer tokenized spacing (--of-space-*) over hard-coded px.
  • Leave clear separation between page sections (32px+).

Page containers

ContainerUse
--of-bg-baseFull page background
--of-bg-elevatedCards and panels
--of-bg-recessedInputs, code, nested controls
--of-bg-sunkenDeep inset areas

Responsive behavior

  • Keep single-column reading flow on smaller screens.
  • Collapse or hide TOC on tablet/mobile.
  • Avoid fixed-height panels unless content is controlled.

Documentation page

  • Left nav + centered content + optional right TOC
  • Strong heading hierarchy
  • Inline code + preview demos

Dashboard page

  • Sticky top bar
  • Fixed-width left rail
  • Main area with card grids and tables
  • Empty states for first-use flows