nav.constructivist-slab-bar · Slab bar

A nav pattern from Constructivist, drawn alone below with this design's tokens and sample copy. Used in this design on: every page, as the nav. Give the section root data-pattern="nav.constructivist-slab-bar". A guide only: DESIGN.md and tokens.json are the source of truth.

Rule
A full-bleed black slab: boxed wordmark in 1–3 and slash-separated capital links across 5–12, in the paper colour.
Slots
siteName, pages
Grid areas
logo 1-3 · links 5-12 (12-column grid, 1-based inclusive spans)
Tokens
bg #EFE6D2 · text #16130F · heading #16130F · accent #C8102E · accent2 #FF7777 · Anton / Barlow Semi Condensed · radius 0px · space unit 8px (full list in design/tokens.json)
Section
background heading · full-bleed · vertical padding step 2

Pattern notes

  • A full-bleed black slab (`bg: heading`): a boxed wordmark on 1–3 and slash-separated links in capitals across 5–12, both in the paper colour. The current link is red-underlined 4 px.
Northfold
  • Services
  • Work
  • About
  • Contact
Layout tree (as in design/layout.json)
{
  "pattern": "nav.constructivist-slab-bar",
  "kind": "nav",
  "grid": {
    "logo": "1-3",
    "links": "5-12"
  },
  "slots": [
    "siteName",
    "pages"
  ],
  "bg": "heading",
  "bleed": true,
  "tree": {
    "el": "grid",
    "gap": 2,
    "align": "center",
    "children": [
      {
        "el": "logo",
        "span": "1-3",
        "color": "bg",
        "slot": "siteName",
        "style": "boxed"
      },
      {
        "el": "nav-links",
        "span": "5-12",
        "mobile": "scroll-x",
        "color": "bg",
        "slot": "pages",
        "dir": "row",
        "style": "slash"
      }
    ]
  }
}
Component example: reference/nav.constructivist-slab-bar.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>nav.constructivist-slab-bar — Constructivist</title>
<link rel="stylesheet" href="base.css">
<style>
  .slab { background: var(--ink); color: var(--paper); padding: calc(var(--unit) * 2) 0; }
  .slab .grid { align-items: center; }
  .logo { grid-column: 1 / 4; justify-self: start; border: 4px solid var(--paper); padding: 4px 10px; font: 400 var(--step-1)/1 var(--font-heading); text-transform: uppercase; color: var(--paper); text-decoration: none; }
  ul { grid-column: 5 / 13; display: flex; list-style: none; padding: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  li + li::before { content: "/"; margin: 0 14px; color: var(--red); }
  ul a { color: var(--paper); text-decoration: none; } ul a[aria-current] { box-shadow: inset 0 -4px var(--red); }
  @media (max-width: 640px) { ul { overflow-x: auto; white-space: nowrap; margin-top: 12px; } }
</style>
</head>
<body>
<nav class="slab" aria-label="Main">
  <div class="wrap grid">
    <a class="logo" href="#">Depot</a>
    <ul><li><a href="#" aria-current="page">Programme</a></li><li><a href="#">Composers</a></li><li><a href="#">Venue</a></li><li><a href="#">Tickets</a></li></ul>
  </div>
</nav>
</body>
</html>

Other patterns in this design

Whole design · Spec bundle (JSON) · On the style page