nav.bento-floating-bar · Floating bar

A nav pattern from Bento Tech, 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.bento-floating-bar". A guide only: DESIGN.md and tokens.json are the source of truth.

Rule
One bordered tile across the page: wordmark left, pill links centre, a ghost sign-in and a primary button right.
Slots
siteName, pages, cta2, cta
Tokens
bg #F6FBFF · text #192028 · heading #091018 · accent #5E65E8 · accent2 #9256C9 · Geist / Geist · radius 20px · space unit 4px (full list in design/tokens.json)
Section
vertical padding step 2

Pattern notes

  • One bordered surface tile with the style radius: wordmark left, pill links centred (current page pill in `surfaceAlt`), a ghost "Sign in" (hidden on phones) and a small primary button right.
Northfold
  • Services
  • Work
  • About
  • Contact
Read case studiesStart a project
Layout tree (as in design/layout.json)
{
  "pattern": "nav.bento-floating-bar",
  "kind": "nav",
  "slots": [
    "siteName",
    "pages",
    "cta2",
    "cta"
  ],
  "tree": {
    "el": "box",
    "bg": "surface",
    "dir": "row",
    "gap": 4,
    "pad": [
      2,
      3
    ],
    "align": "center",
    "justify": "between",
    "border": "all",
    "children": [
      {
        "el": "logo",
        "slot": "siteName",
        "style": "wordmark"
      },
      {
        "el": "nav-links",
        "mobile": "scroll-x",
        "slot": "pages",
        "dir": "row",
        "style": "pill"
      },
      {
        "el": "box",
        "dir": "row",
        "gap": 2,
        "align": "center",
        "children": [
          {
            "el": "button",
            "mobile": "hide",
            "slot": "cta2",
            "variant": "ghost",
            "size": "sm"
          },
          {
            "el": "button",
            "slot": "cta",
            "variant": "primary",
            "size": "sm"
          }
        ]
      }
    ]
  }
}
Component example: reference/nav.bento-floating-bar.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>nav.bento-floating-bar — Bento Tech</title>
<link rel="stylesheet" href="base.css">
<style>
  header { padding: 12px 0; }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
  .wordmark { font-weight: 600; letter-spacing: -0.02em; color: var(--heading); text-decoration: none; font-size: var(--step-1); }
  nav ul { display: flex; gap: 2px; list-style: none; padding: 0; }
  nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; }
  nav a[aria-current] { background: var(--surface-alt); color: var(--heading); }
  .right { display: flex; gap: 8px; }
  @media (max-width: 640px) { .bar { flex-wrap: wrap; } nav { order: 3; width: 100%; overflow-x: auto; } }
</style>
</head>
<body>
<header class="wrap">
  <div class="bar">
    <a class="wordmark" href="/">Ferry</a>
    <nav aria-label="Main"><ul><li><a href="/" aria-current="page">Product</a></li><li><a href="/pricing">Pricing</a></li><li><a href="/docs">Docs</a></li><li><a href="/changelog">Changelog</a></li></ul></nav>
    <div class="right"><a class="btn hide-phone" href="/login" style="border-color:transparent;background:transparent">Sign in</a><a class="btn btn-primary" href="/signup">Start free</a></div>
  </div>
</header>
</body>
</html>

Other patterns in this design

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