kitbash Sign in Connect agent
Components

Sky wordmark hero

A flat sky field with four nav words spread across the top, the puffy wordmark filling the width and a drawn clay figure that bobs, with a bouncing down arrow.

Part of the style

Puffy Wordmark Cream

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fbf4ee;
  --paper: #251a1a;
  --cream: #251a1a;
  --veil: rgba(137, 125, 125, 0.2);
  --clay: #87645e;
  --clay-dark: #664741;
  --sprout: #87645e;
  --sticker: #7e635e;
  --sky: #87645e;
}
</style>

<header class="hero">
  <nav class="hero__bar" aria-label="Main">
    <a class="hero__mark" href="#" aria-label="Mallow, home">
      <svg viewBox="0 0 48 32" width="48" height="32" aria-hidden="true">
        <path class="hero__mark-puff" d="M10 26c-5 0-8-3.4-8-7.5S5.2 11 9.5 11C10.8 6 15 3 20 3c4.6 0 8.4 2.7 9.8 6.6C31 9.2 32.3 9 33.6 9 40 9 46 13.4 46 19s-4.4 7-9 7H10z"/>
      </svg>
    </a>
    <button class="hero__toggle" type="button" aria-expanded="false" aria-controls="hero-menu">Menu</button>
    <ul class="hero__links" id="hero-menu">
      <li><a class="hero__link" href="#">Work</a></li>
      <li><a class="hero__link" href="#">Studio</a></li>
      <li><a class="hero__link" href="#">Kitchen
        <svg class="hero__sprout" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true"><path d="M12 22V12M12 12c0-5 3-8 9-8 0 5-3 8-9 8zM12 14C12 10 9.5 8 4 8c0 4 2.5 6 8 6z"/></svg>
        Garden</a></li>
      <li><a class="hero__link" href="#">Contact</a></li>
    </ul>
  </nav>

  <h1 class="hero__title">
    <svg class="hero__wordmark" viewBox="0 0 1400 300" role="img" aria-label="Mallow">
      <text x="0" y="262" textLength="1400" lengthAdjust="spacingAndGlyphs">MALLOW</text>
    </svg>
  </h1>

  <div class="hero__stage" aria-hidden="true">
    <svg class="hero__figure" viewBox="0 0 400 420">
      <defs>
        <filter id="hero-clay" x="-10%" y="-10%" width="120%" height="120%">
          <feTurbulence type="fractalNoise" baseFrequency="1.4" numOctaves="2" seed="7" result="grain"/>
          <feColorMatrix in="grain" type="matrix" values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.6 1.1" result="dots"/>
          <feComposite in="dots" in2="SourceAlpha" operator="in" result="grit"/>
          <feBlend in="SourceGraphic" in2="grit" mode="multiply"/>
        </filter>
      </defs>
      <g class="hero__body" filter="url(#hero-clay)">
        <ellipse class="hero__clay-dark" cx="200" cy="400" rx="150" ry="70"/>
        <path class="hero__clay" d="M70 420c0-90 58-150 130-150s130 60 130 150z"/>
        <path class="hero__arm" d="M95 360c-30-6-52-28-48-50 4-16 26-14 36 2 8 14 18 26 34 32z"/>
        <g class="hero__head">
          <path class="hero__clay" d="M200 290c-76 0-122-44-122-104 0-48 30-82 76-92h92c46 10 76 44 76 92 0 60-46 104-122 104z"/>
          <path class="hero__cap" d="M40 120C40 50 116 10 200 10s160 40 160 110c0 18-14 26-34 26H74c-20 0-34-8-34-26z"/>
          <circle class="hero__dot" cx="120" cy="70" r="16"/>
          <circle class="hero__dot" cx="210" cy="42" r="12"/>
          <circle class="hero__dot" cx="290" cy="84" r="20"/>
          <g class="hero__eyes">
            <ellipse class="hero__eye" cx="160" cy="196" rx="16" ry="20"/>
            <ellipse class="hero__eye" cx="246" cy="196" rx="16" ry="20"/>
            <circle class="hero__glint" cx="165" cy="189" r="5"/>
            <circle class="hero__glint" cx="251" cy="189" r="5"/>
          </g>
          <path class="hero__smile" d="M176 236c14 16 40 16 54 0"/>
          <ellipse class="hero__cheek" cx="128" cy="232" rx="16" ry="9"/>
          <ellipse class="hero__cheek" cx="278" cy="232" rx="16" ry="9"/>
        </g>
      </g>
    </svg>
    <span class="hero__arrow">
      <svg viewBox="0 0 24 24" width="28" height="28"><path d="M12 3v17M5 13l7 7 7-7"/></svg>
    </span>
  </div>
</header>

<style>
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(36rem, 62vw, 58rem);
    overflow: hidden;
    background: var(--sky);
    color: var(--cream);
  }
  .hero__bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--edge);
  }
  .hero__mark {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .hero__mark-puff {
    fill: none;
    stroke: var(--cream);
    stroke-width: 4;
  }
  .hero__links {
    display: flex;
    flex: 1;
    justify-content: space-between;
    margin: 0 0 0 clamp(2rem, 14vw, 18rem);
    padding: 0;
    list-style: none;
  }
  .hero__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: inherit;
    font-size: var(--text-s);
    font-weight: 600;
    letter-spacing: var(--track-caps);
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--quick) var(--ease);
  }
  .hero__link:hover { opacity: 0.6; }
  .hero__link:focus-visible,
  .hero__toggle:focus-visible,
  .hero__mark:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 2px;
  }
  .hero__sprout path {
    fill: var(--sprout);
    stroke: var(--sprout);
    stroke-width: 2;
    stroke-linecap: round;
  }
  .hero__toggle {
    display: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: 600 var(--text-m)/1 var(--font-body);
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
    cursor: pointer;
  }

  .hero__title {
    position: relative;
    z-index: 2;
    margin: -0.25rem var(--edge) 0;
    font-size: inherit;
  }
  .hero__wordmark {
    width: 100%;
    height: auto;
    overflow: visible;
    animation: hero-fade var(--slow) var(--ease) both;
  }
  .hero__wordmark text {
    fill: var(--cream);
    font-family: var(--font-display);
    font-size: 330px;
  }

  .hero__stage {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: -4%;
  }
  .hero__figure {
    width: min(38rem, 62%);
    height: auto;
    margin-bottom: -2px;
  }
  .hero__head {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hero-bob 3.2s ease-in-out infinite;
  }
  .hero__clay { fill: var(--clay); }
  .hero__clay-dark,
  .hero__arm { fill: var(--clay-dark); }
  .hero__cap { fill: var(--ink); }
  .hero__dot { fill: var(--cream); }
  .hero__eye { fill: var(--ink); }
  .hero__glint { fill: var(--cream); }
  .hero__cheek { fill: var(--clay-dark); opacity: 0.5; }
  .hero__smile {
    fill: none;
    stroke: var(--ink);
    stroke-width: 8;
    stroke-linecap: round;
  }
  .hero__eyes {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: hero-blink 5s var(--ease) infinite;
  }
  .hero__arrow {
    position: absolute;
    bottom: var(--space-m);
    left: 50%;
    translate: -50% 0;
    animation: hero-bounce 2s var(--ease) infinite;
  }
  .hero__arrow path {
    fill: none;
    stroke: var(--cream);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  @keyframes hero-fade { from { opacity: 0; } }
  @keyframes hero-bob {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-6px); }
  }
  @keyframes hero-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
  }
  @keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
  }

  @media (max-width: 40rem) {
    .hero { min-height: clamp(30rem, 150vw, 46rem); }
    .hero__toggle { display: block; }
    .hero__links {
      position: absolute;
      top: 100%;
      right: var(--edge);
      left: var(--edge);
      display: none;
      flex-direction: column;
      margin: 0;
      padding: var(--space-s) var(--space-m);
      border-radius: var(--radius);
      background: var(--cream);
      color: var(--ink);
    }
    .hero.is-open .hero__links { display: flex; }
    .hero__link { font-size: var(--text-m); }
    .hero__title { margin-top: var(--space-s); }
    .hero__stage { margin-top: var(--space-l); }
    .hero__figure { width: 92%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__wordmark, .hero__head, .hero__eyes, .hero__arrow { animation: none; }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.hero')) {
    const toggle = root.querySelector('.hero__toggle');
    if (!toggle) continue;
    const set = (open) => {
      root.classList.toggle('is-open', open);
      toggle.setAttribute('aria-expanded', String(open));
      toggle.textContent = open ? 'Close' : 'Menu';
    };
    toggle.addEventListener('click', () => set(!root.classList.contains('is-open')));
    root.addEventListener('keydown', (event) => {
      if (event.key === 'Escape' && root.classList.contains('is-open')) { set(false); toggle.focus(); }
    });
    for (const link of root.querySelectorAll('.hero__link')) link.addEventListener('click', () => set(false));
  }
})();
</script>

Similar components

Masthead

Masthead

Corner frame hero

Corner frame hero

Split wordmark hero

Split wordmark hero

Split words

Split words

Sticker headline hero

Sticker headline hero

Mat-top hero

Mat-top hero

Masthead

Masthead

Sky hero

Sky hero