Spread nav with mascot
Four words pinned to the corners and quarters of the top row, with a drawn mascot in the centre that spins on hover.
Part of the style
Bulging Orb Index
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/bulging-orb-index/nav/figma.html?palette=8f2dfd739429cd98
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/bulging-orb-index/nav/figma.html?palette=8f2dfd739429cd98 and pass that whole HTML document to the html_to_figma tool, so the part "Spread nav with mascot" 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: #e8e6ed;
--paper: #101213;
--ink-soft: #5e6365;
--tile-grey: #2d3031;
--tile-dark: #9c9ba0;
--pop: #a9352d;
--pop-soft: #7e544e;
--tile-sky: #a9352d;
}
</style>
<header class="nav">
<nav class="nav__bar" aria-label="Main">
<a class="nav__link nav__link--work" href="#">Work</a>
<a class="nav__link nav__link--news" href="#">News</a>
<a class="nav__home" href="#" aria-label="Puddle & Pip, home">
<svg class="nav__mascot" viewBox="0 0 64 64" aria-hidden="true">
<path class="nav__sprout" d="M32 17 C29 9 35 3 43 5 C41 11 37 14 32 17 Z" />
<path class="nav__stem" d="M32 18 L32 13" />
<ellipse class="nav__body" cx="32" cy="38" rx="23" ry="20" />
<ellipse class="nav__shine" cx="21" cy="28" rx="5" ry="3" transform="rotate(-30 21 28)" />
<circle class="nav__eye" cx="24" cy="35" r="6.5" />
<circle class="nav__eye" cx="41" cy="35" r="6.5" />
<circle class="nav__pupil" cx="25.5" cy="36" r="3.2" />
<circle class="nav__pupil" cx="42.5" cy="36" r="3.2" />
<path class="nav__mouth" d="M26 45 Q33 54 40 45 Z" />
</svg>
</a>
<a class="nav__link nav__link--info" href="#">Info</a>
<a class="nav__link nav__link--contact" href="#">Contact</a>
</nav>
</header>
<style>
.nav {
position: sticky;
top: 0;
z-index: 10;
padding: 0 var(--edge);
pointer-events: none;
}
.nav__bar {
display: grid;
grid-template-columns: 1fr 1fr auto 1fr 1fr;
align-items: start;
column-gap: var(--gap);
}
.nav__link,
.nav__home {
pointer-events: auto;
}
.nav__link {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: var(--tap);
min-height: var(--tap);
color: var(--ink);
font-size: var(--text-m);
font-weight: 700;
line-height: 1;
text-decoration: none;
text-underline-offset: 3px;
text-decoration-thickness: var(--line);
}
.nav__link:hover,
.nav__link:focus-visible {
text-decoration-line: underline;
}
.nav__link:focus-visible,
.nav__home:focus-visible {
outline: var(--line) solid var(--ink);
outline-offset: 2px;
}
.nav__link--work,
.nav__link--news {
justify-self: start;
}
.nav__link--info,
.nav__link--contact {
justify-self: end;
}
.nav__home {
display: block;
width: 58px;
height: 58px;
margin-top: 8px;
border-radius: var(--radius-round);
}
.nav__mascot {
width: 100%;
height: 100%;
overflow: visible;
}
.nav__home:hover .nav__mascot,
.nav__home:focus-visible .nav__mascot {
animation: nav-spin var(--spin) var(--ease-spin) 1;
}
.nav__body {
fill: var(--tile-sky);
stroke: var(--ink);
stroke-width: 2.5;
}
.nav__shine {
fill: var(--paper);
}
.nav__sprout {
fill: var(--ink);
}
.nav__stem {
stroke: var(--ink);
stroke-width: 2.5;
stroke-linecap: round;
}
.nav__eye {
fill: var(--paper);
stroke: var(--ink);
stroke-width: 2.2;
}
.nav__pupil {
fill: var(--ink);
}
.nav__mouth {
fill: var(--pop);
stroke: var(--ink);
stroke-width: 2.2;
stroke-linejoin: round;
}
@keyframes nav-spin {
to { transform: rotate(1turn); }
}
@media (max-width: 40rem) {
.nav__link {
font-size: var(--text-l);
}
.nav__home {
width: 52px;
height: 52px;
}
}
</style>