nav.y2k-chrome-pill-bar · Pill bar

A nav pattern from Y2K Chrome, 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.y2k-chrome-pill-bar". A guide only: DESIGN.md and tokens.json are the source of truth.

Rule
A floating capsule on the surface colour with a glow: wordmark left, pill links in the middle, a small primary pill button right.
Slots
siteName, pages, cta
Tokens
bg #F6FBFF · text #192028 · heading #091018 · accent #00B0FB · accent2 #7D9FFF · Unbounded / Sora · radius 28px · space unit 8px (full list in design/tokens.json)
Section
vertical padding step 2

Pattern notes

  • One capsule-shaped bar (full radius, 2 px border, glow shadow) inset from the page edge: the chrome wordmark on the left, page links as pills (the current one filled with accent) in the middle, and a small primary pill button on the right. At phone width the links scroll horizontally inside the capsule and the button hides.
Northfold
  • Services
  • Work
  • About
  • Contact
Start a project
Layout tree (as in design/layout.json)
{
  "pattern": "nav.y2k-chrome-pill-bar",
  "kind": "nav",
  "slots": [
    "siteName",
    "pages",
    "cta"
  ],
  "tree": {
    "el": "box",
    "bg": "surface",
    "dir": "row",
    "gap": 3,
    "pad": [
      1,
      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": "button",
        "mobile": "hide",
        "slot": "cta",
        "variant": "primary",
        "size": "sm"
      }
    ]
  }
}
Component example: reference/nav.y2k-chrome-pill-bar.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>nav.y2k-chrome-pill-bar — Y2K Chrome</title>
<link rel="stylesheet" href="base.css">
<style>
  header { padding-top: 16px; }
  .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 8px 8px 24px; border-radius: 999px; }
  .logo { font-size: var(--step-1); text-decoration: none; }
  nav { display: flex; gap: 6px; } nav a { padding: 8px 16px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; }
  nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
  .pill { padding: 10px 18px; }
  @media (max-width: 640px) { .bar { flex-wrap: wrap; border-radius: var(--radius); } nav { overflow-x: auto; width: 100%; } .bar > .pill { display: none; } }
</style>
</head>
<body>
<header class="wrap">
  <div class="bar panel">
    <a class="logo chrome" href="/">Hyperwave</a>
    <nav aria-label="Main"><a href="/artists" aria-current="page">Artists</a><a href="/releases">Releases</a><a href="/tour">Tour</a><a href="/shop">Shop</a></nav>
    <a class="pill primary" href="/listen">Listen</a>
  </div>
</header>
</body>
</html>

Other patterns in this design

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