kitbash Sign in Connect agent
Components

Shaded statement

A centred light-serif statement on paper under drifting leaf shadow; its words fill from faint to ink one after another.

Part of the style

Dappled Shade Paper

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #26160e;
  --night-soft: #23140b;
  --paper: #91816b;
  --paper-deep: #94846e;
  --screen: #8f806a;
  --bezel: #6a5c47;
  --ink: #1c0d06;
  --ink-soft: rgba(28, 13, 6, 0.5);
  --ink-faint: rgba(28, 13, 6, 0.16);
  --white: #7d6e57;
  --white-soft: rgba(125, 110, 87, 0.7);
  --white-line: rgba(125, 110, 87, 0.14);
  --glass: rgba(121, 106, 84, 0.82);
  --glass-dark: rgba(35, 20, 11, 0.72);
  --shade: rgba(42, 26, 17, 0.16);
  --night-veil: rgba(28, 13, 6, 0.45);
  --shade-deep: rgba(34, 18, 10, 0.38);
  --amber: #978068;
  --amber-deep: #8f7a63;
  --sticker: #988774;
  --leaf: #8a7e71;
  --moss: #261501;
  --moss-light: #2f1e0a;
}
</style>

<section class="manifesto">
  <svg class="manifesto__shade" viewBox="0 0 1000 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
    <defs><filter id="manifesto-soft" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="18"/></filter></defs>
    <g class="manifesto__shade-bars" filter="url(#manifesto-soft)">
      <g transform="rotate(-34 500 300)">
        <rect x="-400" y="-40" width="1800" height="70"/>
        <rect x="-400" y="130" width="1800" height="40"/>
        <rect x="-400" y="300" width="1800" height="90"/>
        <rect x="-400" y="520" width="1800" height="50"/>
        <rect x="560" y="-400" width="34" height="1400"/>
      </g>
    </g>
    <g class="manifesto__shade-leaves" filter="url(#manifesto-soft)">
      <ellipse cx="900" cy="60" rx="110" ry="34" transform="rotate(-24 900 60)"/>
      <ellipse cx="990" cy="190" rx="80" ry="28" transform="rotate(28 990 190)"/>
      <ellipse cx="820" cy="170" rx="54" ry="20" transform="rotate(-56 820 170)"/>
      <ellipse cx="70" cy="560" rx="90" ry="26" transform="rotate(18 70 560)"/>
    </g>
  </svg>

  <div class="manifesto__inner">
    <p class="manifesto__eyebrow">Introducing <em>Slate</em> — a calmer, kinder computer</p>
    <p class="manifesto__statement">We refuse a future where our screens are tiring, <em>restless</em> and built to keep us scrolling. Ours should feel like a good book on a slow afternoon.</p>
    <a class="manifesto__link" href="#">Read the founding letter ↗</a>
  </div>
</section>

<style>
  .manifesto {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(520px, 52vw, 760px);
    padding: var(--section-space) var(--edge);
    overflow: hidden;
    background: var(--paper);
  }
  .manifesto__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    fill: var(--shade);
    pointer-events: none;
  }
  .manifesto__shade-bars { animation: manifesto-sway var(--drift) ease-in-out infinite; transform-origin: 80% 0; }
  .manifesto__shade-leaves { animation: manifesto-sway calc(var(--drift) * 0.6) ease-in-out infinite reverse; transform-origin: 100% 0; }
  .manifesto.is-off .manifesto__shade-bars, .manifesto.is-off .manifesto__shade-leaves { animation-play-state: paused; }
  @keyframes manifesto-sway {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-18px, 12px) rotate(1.2deg); }
  }

  .manifesto__inner {
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--space-l);
    max-width: 920px;
    text-align: center;
  }
  .manifesto__eyebrow {
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-l);
    letter-spacing: var(--track);
  }
  .manifesto__eyebrow em { color: var(--ink); font-family: var(--font-serif); font-size: 1.1em; font-weight: 300; }
  .manifesto__statement {
    margin: 0;
    font-family: var(--font-serif);
    font-size: var(--display);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
  }
  .manifesto__statement em { font-style: italic; }
  .manifesto__word {
    transition: color var(--slow) var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
  }
  .manifesto.is-ready .manifesto__word { color: var(--ink-faint); }
  .manifesto.is-ready.is-seen .manifesto__word { color: var(--ink); }
  .manifesto__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-m);
    border-radius: var(--pill);
    background: var(--glass);
    box-shadow: inset 0 0 0 var(--line) var(--ink-faint);
    backdrop-filter: blur(var(--blur));
    color: var(--ink);
    font-size: var(--text-s);
    text-decoration: none;
    transition: background-color var(--quick) var(--ease-out);
  }
  .manifesto__link:hover { background: var(--paper-deep); }
  .manifesto__link:focus-visible { outline: var(--line-accent) solid var(--amber); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    .manifesto__shade-bars, .manifesto__shade-leaves { animation: none; }
    .manifesto.is-ready .manifesto__word { color: var(--ink); transition: none; }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        entry.target.classList.toggle('is-off', !entry.isIntersecting);
        if (entry.isIntersecting) entry.target.classList.add('is-seen');
      }
    }, { threshold: 0.2 });
    for (const root of document.querySelectorAll('.manifesto')) {
      const statement = root.querySelector('.manifesto__statement');
      let order = 0;
      for (const node of [...statement.childNodes]) {
        if (node.nodeType === Node.TEXT_NODE) {
          const pieces = node.textContent.split(/(\s+)/);
          const frag = document.createDocumentFragment();
          for (const piece of pieces) {
            if (!piece) continue;
            if (/^\s+$/.test(piece)) { frag.append(piece); continue; }
            const word = document.createElement('span');
            word.className = 'manifesto__word';
            word.style.setProperty('--i', order++);
            word.textContent = piece;
            frag.append(word);
          }
          node.replaceWith(frag);
        } else if (node.nodeType === Node.ELEMENT_NODE) {
          node.classList.add('manifesto__word');
          node.style.setProperty('--i', order++);
        }
      }
      root.classList.add('is-ready');
      seen.observe(root);
    }
  })();
</script>

Similar components

Tilting statement

Tilting statement

Letter and footer

Letter and footer

Big plain statement

Big plain statement

Statement

Statement

Statement with pictures

Statement with pictures

Giant words slide

Giant words slide

Script statement

Script statement

Privacy panel

Privacy panel