kitbash Connect agent
Components

Wordmark intro

Reed panel with a full-width red wordmark and a three-line suffix that types itself behind a block cursor, plus a two-option language switch in the corner.

Part of the style

Reed Mono Chapters

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --reed: #020204;
  --bark: #fff3e6;
  --sand: #000000;
  --night: #fffffd;
  --chalk: #f1f1f9;
  --chalk-dim: #000000;
  --shade: rgba(255, 255, 253, 0.28);
  --bark-veil: rgba(255, 243, 230, 0.2);
  --olive: #836136;
  --mustard: #fee4c5;
  --harbor: #795b33;
  --sky: #77644c;
  --signal: #775c3c;
  --skin: #776e64;
  --hair: #0c0805;
  --teal: #9b784d;
}
</style>

<header class="intro">
  <nav class="intro__langs" aria-label="Language">
    <a class="intro__lang is-active" href="#" aria-current="true"><span class="intro__chip">EN</span></a>
    <a class="intro__lang" href="#"><span class="intro__chip">NL</span></a>
  </nav>
  <h1 class="intro__mark" aria-label="pell signage">
    <span class="intro__word" aria-hidden="true">pell</span>
    <span class="intro__suffix" aria-hidden="true" data-lines="Sig|na|ge"></span>
  </h1>
</header>

<style>
  .intro {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(26rem, 58vw, 52rem);
    padding: var(--space-16) var(--gutter);
    background: var(--reed);
    overflow: hidden;
  }
  .intro__langs {
    position: absolute;
    top: calc(var(--gutter) - 0.75rem);
    right: calc(var(--gutter) - 0.5rem);
    display: flex;
  }
  .intro__lang {
    display: inline-grid;
    place-items: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: var(--bark);
    font-size: var(--text-xs);
    text-decoration: none;
  }
  .intro__chip {
    padding: 0.15em 0.5em;
    border: 1px solid transparent;
    transition: opacity 0.14s linear;
  }
  .intro__lang.is-active .intro__chip {
    background: var(--bark);
    color: var(--reed);
  }
  .intro__lang:hover .intro__chip { opacity: 0.6; }
  .intro__lang:focus-visible { outline: none; }
  .intro__lang:focus-visible .intro__chip { border-color: var(--bark); }

  .intro__mark {
    display: flex;
    align-items: center;
    gap: 0.06em;
    margin: 0;
    color: var(--signal);
    font-size: var(--text-mark);
    font-weight: 400;
    line-height: 1;
  }
  .intro__word {
    font-family: var(--font-mark);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.8;
    animation: intro-appear 0.6s linear 0.1s both;
  }
  .intro__suffix {
    display: grid;
    min-width: 3.2ch;
    font-family: var(--font-mono);
    font-size: 0.19em;
    font-weight: 500;
    line-height: 1.12;
    white-space: pre;
  }
  .intro__line { display: block; min-height: 1.12em; }
  .intro__cursor {
    display: inline-block;
    width: 0.62em;
    height: 0.9em;
    margin-left: 0.04em;
    vertical-align: -0.12em;
    background: currentColor;
  }
  .intro__cursor.is-blinking { animation: intro-blink 0.5s steps(1) 4 forwards; }

  @keyframes intro-appear { from { opacity: 0; } to { opacity: 1; } }
  @keyframes intro-blink { 50% { opacity: 0; } 100% { opacity: 0; } }

  @media (max-width: 40rem) {
    .intro__mark { flex-direction: column; align-items: flex-end; gap: 0.1em; }
    .intro__suffix { display: block; font-size: 0.24em; }
    .intro__line { display: inline; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)').matches;
    const beats = [80, 140, 80, 140, 80, 120];

    function type(suffix) {
      const lines = suffix.dataset.lines.split('|').map((text) => {
        const line = document.createElement('span');
        line.className = 'intro__line';
        suffix.append(line);
        return { line, text };
      });
      const cursor = document.createElement('span');
      cursor.className = 'intro__cursor';

      if (still) {
        lines.forEach(({ line, text }) => { line.textContent = text; });
        return;
      }

      const letters = lines.flatMap(({ line, text }) => [...text].map((letter) => ({ line, letter })));
      lines[0].line.append(cursor);
      let at = 1000;
      letters.forEach(({ line, letter }, index) => {
        setTimeout(() => {
          line.append(document.createTextNode(letter), cursor);
        }, at);
        at += beats[index % beats.length];
      });
      setTimeout(() => cursor.classList.add('is-blinking'), at);
    }

    document.querySelectorAll('.intro__suffix').forEach(type);
  })();
</script>

Similar components

Badge intro

Badge intro

Greeting loader

Greeting loader

Wordmark intro

Wordmark intro

Counter loader

Counter loader

Boot screen

Boot screen

Loading screen

Loading screen

Intro loader

Intro loader

Project windows

Project windows