Top bar
Transparent top bar with a drawn wordmark, four centred links and a bold label with a black arrow chip; on phones the links fold into a panel.
Part of the style
Ghosted Portrait Caps
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/ghosted-portrait-caps/nav/figma.html?palette=e9b76c4ed56b4e2e
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/ghosted-portrait-caps/nav/figma.html?palette=e9b76c4ed56b4e2e and pass that whole HTML document to the html_to_figma tool, so the part "Top bar" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #07150a;
--ink-soft: #202e22;
--ink-faint: #695f50;
--paper: #9d9485;
--mist: #9c9384;
--night: #000100;
--on-night: #978e7f;
--rule: #8e8576;
--rule-strong: #07150a;
--accent: #2d9148;
}
</style>
<header class="nav">
<div class="nav__bar">
<a class="nav__brand" href="#" aria-label="Northbeam home">
<svg class="nav__glyph" viewBox="0 0 28 28" aria-hidden="true">
<rect x="2" y="6" width="24" height="5" rx="2.5" />
<rect x="2" y="17" width="24" height="5" rx="2.5" />
<rect x="11.5" y="2" width="5" height="24" rx="2.5" />
</svg>
<span class="nav__word">north<b>beam</b></span>
</a>
<nav class="nav__links" id="nav-links" aria-label="Main">
<a class="nav__link" href="#">Cases</a>
<a class="nav__link" href="#">Services</a>
<a class="nav__link" href="#">About</a>
<a class="nav__link" href="#">Contact</a>
<a class="nav__link nav__link--cta" href="#">Span audit</a>
</nav>
<a class="nav__action" href="#">
<span class="nav__action-label">Span audit</span>
<span class="nav__chip" aria-hidden="true">
<svg viewBox="0 0 16 16"><path d="M2 8h11M9 4l4 4-4 4" /></svg>
</span>
</a>
<button class="nav__toggle" type="button" aria-expanded="false" aria-controls="nav-links">
<span class="nav__toggle-label">Menu</span>
<span class="nav__toggle-lines" aria-hidden="true"></span>
</button>
</div>
</header>
<style>
.nav {
position: relative;
z-index: 5;
background: var(--mist);
}
.nav__bar {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: var(--gap);
padding: var(--space-m) var(--edge);
}
.nav__brand {
display: inline-flex;
align-items: center;
gap: var(--space-s);
min-height: 44px;
color: var(--ink);
text-decoration: none;
justify-self: start;
}
.nav__glyph {
width: 26px;
height: 26px;
fill: var(--ink);
}
.nav__word {
font-family: var(--font-display);
font-size: 1.3rem;
font-weight: 300;
letter-spacing: -0.02em;
}
.nav__word b {
font-weight: 800;
}
.nav__links {
display: flex;
gap: clamp(1.25rem, 4vw, 4rem);
}
.nav__link {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
min-width: 44px;
color: var(--ink);
font-size: var(--text-s);
font-weight: 600;
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
color: var(--ink-soft);
}
.nav__link--cta {
display: none;
}
.nav__action {
justify-self: end;
display: inline-flex;
align-items: center;
gap: var(--space-m);
min-height: 44px;
color: var(--ink);
font-size: var(--text-s);
font-weight: 600;
letter-spacing: var(--track-label);
text-decoration: none;
}
.nav__chip {
display: inline-grid;
place-items: center;
width: var(--chip-w);
height: var(--chip-h);
border-radius: var(--radius-pill);
background: var(--ink);
transition: background-color var(--quick) var(--ease);
}
.nav__chip svg {
width: 16px;
height: 16px;
fill: none;
stroke: var(--paper);
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
transition: transform var(--quick) var(--ease);
}
.nav__action:hover .nav__chip svg,
.nav__action:focus-visible .nav__chip svg {
transform: translateX(4px);
}
.nav a:focus-visible,
.nav__toggle:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 3px;
border-radius: 2px;
}
.nav__toggle {
display: none;
justify-self: end;
align-items: center;
gap: var(--space-s);
min-height: 44px;
min-width: 44px;
padding: 0 0 0 var(--space-s);
border: 0;
background: none;
color: var(--ink);
font: 600 var(--text-s) var(--font-body);
cursor: pointer;
}
.nav__toggle-lines {
position: relative;
width: 22px;
height: 10px;
border-block: 2px solid var(--ink);
transition: transform var(--quick) var(--ease);
}
.nav.is-open .nav__toggle-lines {
transform: scaleY(0.2);
}
@media (max-width: 52rem) {
.nav__bar {
grid-template-columns: 1fr auto;
}
.nav__action {
display: none;
}
.nav__toggle {
display: inline-flex;
}
.nav__links {
display: none;
grid-column: 1 / -1;
flex-direction: column;
gap: 0;
border-top: var(--hairline) solid var(--rule-strong);
}
.nav__link {
font-size: var(--text-xl);
font-weight: 800;
justify-content: flex-start;
border-bottom: var(--hairline) solid var(--rule);
padding: var(--space-s) 0;
}
.nav__link--cta {
display: inline-flex;
}
.nav.is-open .nav__links {
display: flex;
}
.nav.is-open {
background: var(--paper);
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.nav')) {
const toggle = root.querySelector('.nav__toggle');
if (!toggle) continue;
toggle.addEventListener('click', () => {
const open = root.classList.toggle('is-open');
toggle.setAttribute('aria-expanded', String(open));
});
}
})();
</script>