kitbash Sign in Connect agent
Components

Top bar

Wordmark with a grey job chip, centred plain links, hairline icon squares and one black ask button; on phones a black sparkle square and a menu square that drops a sheet.

Part of the style

Comment Bracket Folio

6 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700&display=swap");
:root {
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-glyph: "Space Mono", ui-monospace, monospace;
}
</style>

<header class="nav">
  <div class="nav__bar">
    <a class="nav__brand" href="#">
      <span class="nav__wordmark">Mara Kettunen</span>
      <span class="nav__chip">Interface Designer</span>
    </a>
    <nav class="nav__links" aria-label="Main">
      <a class="nav__link" href="#">Work</a>
      <a class="nav__link" href="#">Shipped</a>
      <a class="nav__link" href="#">Sandbox</a>
      <a class="nav__link" href="#">About</a>
    </nav>
    <div class="nav__tools">
      <a class="nav__icon" href="#" aria-label="Journal">
        <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2.5" y="2.5" width="11" height="11" rx="3.5" fill="none" stroke="currentColor" stroke-width="1.4"/><circle cx="8" cy="8" r="2.6" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
      </a>
      <a class="nav__icon" href="#" aria-label="Index">
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 3h4v4H3zM9 3h4v4H9zM3 9h4v4H3zM9 9h4v4H9z" fill="currentColor"/></svg>
      </a>
      <a class="nav__icon" href="#" aria-label="Mail">
        <svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2" y="3.5" width="12" height="9" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.4"/><path d="M2.5 4.5 8 9l5.5-4.5" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
      </a>
      <span class="nav__divider" aria-hidden="true"></span>
      <a class="nav__ask" href="#">
        <span class="nav__ask-label">Ask the bench</span>
        <svg class="nav__spark" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1.5c.5 3.4 3 6 6.5 6.5-3.5.5-6 3.1-6.5 6.5-.5-3.4-3-6-6.5-6.5 3.5-.5 6-3.1 6.5-6.5Z" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"/></svg>
      </a>
      <button class="nav__menu" type="button" aria-expanded="false" aria-label="Open menu">
        <span class="nav__menu-line"></span>
        <span class="nav__menu-line"></span>
      </button>
    </div>
  </div>
  <div class="nav__sheet">
    <a class="nav__sheet-link" href="#">Work</a>
    <a class="nav__sheet-link" href="#">Shipped</a>
    <a class="nav__sheet-link" href="#">Sandbox</a>
    <a class="nav__sheet-link" href="#">About</a>
  </div>
</header>

<style>
  .nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
  }
  .nav__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--gap);
    padding: var(--space-s) var(--edge);
  }
  .nav__brand {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    justify-self: start;
  }
  .nav__wordmark {
    font-size: var(--text-l);
    font-weight: var(--weight-bold);
    letter-spacing: var(--track-tight);
    white-space: nowrap;
  }
  .nav__chip {
    padding: 5px var(--space-s);
    border-radius: var(--radius-xs);
    background: var(--chip);
    font-size: var(--text-s);
    font-weight: 400;
    white-space: nowrap;
  }
  .nav__links {
    display: flex;
    gap: var(--space-xs);
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-s);
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 400;
    text-decoration: none;
    transition: opacity var(--quick) ease;
  }
  .nav__links:hover .nav__link:not(:hover) {
    opacity: 0.4;
  }
  .nav__tools {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-self: end;
  }
  .nav__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
  }
  .nav__icon svg {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 6px;
    border: var(--line) solid var(--rule);
    border-radius: var(--radius-s);
    background: var(--card);
    transition: transform var(--slow) var(--ease), border-color var(--quick) ease;
  }
  .nav__icon:hover svg,
  .nav__icon:focus-visible svg {
    border-color: var(--ink);
    transform: translateY(-2px);
  }
  .nav__divider {
    width: var(--line);
    height: 20px;
    margin: 0 var(--space-s);
    background: var(--rule);
  }
  .nav__ask {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    min-height: 44px;
    padding: 0 var(--space-m);
    border-radius: var(--radius-s);
    background: var(--night);
    color: var(--on-night);
    font-size: var(--text-s);
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav__spark {
    width: 14px;
    height: 14px;
    transition: transform var(--slow) var(--ease);
  }
  .nav__ask:hover .nav__spark,
  .nav__ask:focus-visible .nav__spark {
    transform: rotate(90deg);
  }
  .nav__menu {
    display: none;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: var(--space-s);
    padding: 0;
    border: var(--line) solid var(--rule);
    border-radius: var(--radius-s);
    background: var(--card);
    cursor: pointer;
  }
  .nav__menu-line {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform var(--slow) var(--ease);
  }
  .nav.is-open .nav__menu-line:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__menu-line:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav__sheet {
    display: none;
  }

  @media (max-width: 900px) {
    .nav__bar { grid-template-columns: 1fr auto; }
    .nav__links,
    .nav__icon,
    .nav__divider { display: none; }
    .nav__menu { display: grid; }
    .nav__ask { width: 44px; padding: 0; justify-content: center; }
    .nav__ask-label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .nav__sheet {
      display: grid;
      max-height: 0;
      overflow: hidden;
      padding: 0 var(--edge);
      visibility: hidden;
      transition: max-height var(--slow) var(--ease), visibility 0s linear var(--slow);
    }
    .nav.is-open .nav__sheet {
      max-height: 280px;
      visibility: visible;
      transition: max-height var(--slow) var(--ease);
    }
    .nav__sheet-link {
      display: flex;
      align-items: center;
      min-height: 56px;
      border-top: var(--line) solid var(--rule);
      color: var(--ink);
      font-size: var(--display-s);
      font-weight: var(--weight-bold);
      letter-spacing: var(--track-tight);
      text-decoration: none;
    }
  }
  @media (max-width: 380px) {
    .nav__chip { display: none; }
  }
</style>

<script>
  (() => {
    for (const root of document.querySelectorAll('.nav')) {
      const button = root.querySelector('.nav__menu');
      if (!button) continue;
      button.addEventListener('click', () => {
        const open = root.classList.toggle('is-open');
        button.setAttribute('aria-expanded', String(open));
        button.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
      });
    }
  })();
</script>

Similar components

Black bar and menu

Black bar and menu

Glass bar

Glass bar

Top bar

Top bar

Top bar

Top bar

Corner menu bar

Corner menu bar

Word stack

Word stack

Corner wordmark

Corner wordmark

Bar and opening line

Bar and opening line