nav.claymorphism-floating-pill · Floating pill

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

Rule
One floating surface clay pill: wordmark left, pill links in the middle, a small primary pill button right.
Slots
siteName, pages, cta
Tokens
bg #F2EDFF · text #2B2340 · heading #1E1733 · accent #FF64AC · accent2 #00C09F · Fredoka / Nunito · radius 32px · space unit 8px (full list in design/tokens.json)
Section
vertical padding step 3

Pattern notes

  • One white clay pill floating 24 px below the top: wordmark left, pill links in the middle (current page on surfaceAlt), a small primary pill button right.
Northfold
  • Services
  • Work
  • About
  • Contact
Start a project
Layout tree (as in design/layout.json)
{
  "pattern": "nav.claymorphism-floating-pill",
  "kind": "nav",
  "slots": [
    "siteName",
    "pages",
    "cta"
  ],
  "tree": {
    "el": "box",
    "bg": "surface",
    "dir": "row",
    "gap": 4,
    "pad": [
      2,
      5
    ],
    "align": "center",
    "justify": "between",
    "wrap": true,
    "children": [
      {
        "el": "logo",
        "slot": "siteName",
        "style": "wordmark"
      },
      {
        "el": "nav-links",
        "mobile": "scroll-x",
        "slot": "pages",
        "dir": "row",
        "style": "pill"
      },
      {
        "el": "button",
        "slot": "cta",
        "variant": "primary",
        "size": "sm"
      }
    ]
  }
}
Component example: reference/nav.claymorphism-floating-pill.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>nav.claymorphism-floating-pill — Claymorphism</title>
<link rel="stylesheet" href="base.css">
<style>
  header { padding: 24px 0; position: sticky; top: 0; z-index: 10; }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 28px; border-radius: 999px; }
  .wordmark { font: 700 var(--step-2)/1 var(--font-heading); color: var(--heading); text-decoration: none; }
  nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
  nav a { display: block; padding: 10px 18px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 700; }
  nav a[aria-current] { background: var(--surface-alt); color: var(--heading); }
  .btn { height: 48px; padding: 0 22px; }
  @media (max-width: 640px) { .bar { flex-wrap: wrap; border-radius: 28px; padding: 12px 12px 12px 20px; } nav { order: 3; width: 100%; overflow-x: auto; } }
</style>
</head>
<body>
<header class="wrap">
  <div class="clay bar">
    <a class="wordmark" href="/">Jarjar</a>
    <nav aria-label="Main"><ul><li><a href="/" aria-current="page">Home</a></li><li><a href="/product">How it works</a></li><li><a href="/pricing">Pricing</a></li><li><a href="/faq">Parents' FAQ</a></li></ul></nav>
    <a class="btn clay" href="/signup">Get the app</a>
  </div>
</header>
</body>
</html>

Other patterns in this design

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