kitbash Sign in Connect agent

Scattered Paper Cards

Playful · 7 parts · paper · collage · cards

Flat coloured cards in orange, lemon, mint and white dropped at small angles on a flat green table, some stacked into a deck, some tossed half off the edge, with round drawn creatures and grey pencil tools on them. It suits children's apps, games, toy shops and anything that wants to be tapped.

Get pack Remix

Whole page

Parts

Corner bar

Crumb mark and name on the green at the left, tilted paper tabs and a round outlined help button at the right; on phones the tabs fold into a paper sheet.

Code React For Figma
<header class="nav">
  <a class="nav__brand" href="#" aria-label="Crumbo home">
    <svg class="nav__mark" viewBox="0 0 64 48" width="64" height="48" aria-hidden="true">
      <circle cx="18" cy="26" r="16" fill="currentColor" />
      <circle cx="44" cy="16" r="10" fill="currentColor" />
      <circle cx="52" cy="38" r="6" fill="currentColor" />
    </svg>
    <span class="nav__name">crumbo</span>
  </a>

  <nav class="nav__menu" aria-label="Main">
    <ul class="nav__tabs" id="nav-tabs">
      <li><a class="nav__tab nav__tab--sun" href="#">Recipes</a></li>
      <li><a class="nav__tab nav__tab--mint" href="#">Sounds</a></li>
      <li><a class="nav__tab nav__tab--paper" href="#">Grown-ups</a></li>
    </ul>
  </nav>

  <div class="nav__end">
    <button class="nav__ring nav__toggle" type="button" aria-expanded="false" aria-controls="nav-tabs" aria-label="Menu">
      <svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M5 8h14M5 16h14" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" /></svg>
    </button>
    <a class="nav__ring nav__help" href="#" aria-label="Help">?</a>
  </div>
</header>

<style>
  .nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--space-l);
    padding: var(--space-l) var(--edge);
    color: var(--on-field);
    font-family: var(--font-display);
  }
  .nav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    min-height: 48px;
    color: inherit;
    text-decoration: none;
    margin-right: auto;
  }
  .nav__mark {
    width: 52px;
    height: auto;
    transition: transform var(--settle) var(--ease-pop);
  }
  .nav__brand:hover .nav__mark { transform: rotate(-12deg) scale(1.06); }
  .nav__name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  .nav__tabs {
    display: flex;
    gap: var(--space-m);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav__tab {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--space-l);
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 600;
    text-decoration: none;
    clip-path: var(--quad-a);
    transform: rotate(calc(var(--tilt-s) * -1));
    transition: transform var(--settle) var(--ease-pop);
  }
  .nav__tabs li:nth-child(2) .nav__tab { transform: rotate(var(--tilt-s)); clip-path: var(--quad-b); }
  .nav__tabs li:nth-child(3) .nav__tab { transform: rotate(calc(var(--tilt-s) * -0.5)); clip-path: var(--quad-c); }
  .nav__tab--sun { background: var(--card-sun); }
  .nav__tab--mint { background: var(--card-mint); }
  .nav__tab--paper { background: var(--paper); }
  .nav__tabs li .nav__tab:hover,
  .nav__tabs li .nav__tab:focus-visible { transform: rotate(0) translateY(-3px); }
  .nav__tab:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }

  .nav__end { display: flex; gap: var(--space-s); }
  .nav__ring {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    background: transparent;
    color: var(--on-field);
    font: 700 1.375rem/1 var(--font-display);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), transform var(--settle) var(--ease-pop);
  }
  .nav__ring:hover,
  .nav__ring:focus-visible { background: var(--on-field); color: var(--field); transform: rotate(-10deg); outline: none; }
  .nav__toggle { display: none; }

  @media (max-width: 44rem) {
    .nav { flex-wrap: wrap; gap: var(--space-m); }
    .nav__toggle { display: inline-grid; }
    .nav__menu { order: 3; flex-basis: 100%; }
    .nav__tabs {
      display: none;
      flex-direction: column;
      gap: var(--space-s);
      padding: var(--space-m);
      background: var(--paper-bright);
      clip-path: var(--quad-b);
      transform: rotate(-1.5deg);
    }
    .nav.is-open .nav__tabs { display: flex; animation: nav-drop var(--settle) var(--ease-pop); }
    .nav__tab { width: 100%; transform: none; }
    .nav__tabs li:nth-child(n) .nav__tab { transform: none; }
  }
  @keyframes nav-drop {
    from { transform: translateY(-16px) rotate(-6deg); opacity: 0; }
    to { transform: rotate(-1.5deg); opacity: 1; }
  }
</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>

Table hero

A deck of white, cream and blue-grey cards in the middle of the green with the headline on the top card, coloured scraps flying in from the edges on load; the button deals the top card away.

Code React For Figma
<section class="hero" aria-labelledby="hero-title">
  <div class="hero__scraps" aria-hidden="true">
    <span class="hero__scrap hero__scrap--sun"></span>
    <span class="hero__scrap hero__scrap--orange"></span>
    <span class="hero__scrap hero__scrap--lemon">
      <svg class="hero__tool" viewBox="0 0 60 140" fill="none" stroke-width="1.5" stroke-linecap="round">
        <path d="M30 4v46" />
        <path d="M30 50c-18 20-22 56-8 76 5 7 11 7 16 0 14-20 10-56-8-76z" />
        <path d="M30 50c-9 22-10 52-4 76M30 50c9 22 10 52 4 76M30 50c-14 18-18 48-12 70M30 50c14 18 18 48 12 70" />
      </svg>
    </span>
    <span class="hero__scrap hero__scrap--mint"></span>
    <span class="hero__scrap hero__scrap--red"></span>
    <span class="hero__scrap hero__scrap--white"></span>
  </div>

  <div class="hero__deck">
    <article class="hero__card hero__card--bright">
      <p class="hero__kicker">Card 1 of 4</p>
      <h1 class="hero__title" id="hero-title">Cook something loud today.</h1>
      <p class="hero__text">Recipe cards for small cooks: every step comes with a sound to make and a mess to allow.</p>
    </article>
    <article class="hero__card hero__card--shade" aria-hidden="true">
      <p class="hero__kicker">Card 2 of 4</p>
      <p class="hero__title">Crack, whisk, sizzle, done.</p>
      <p class="hero__text">Twenty-minute suppers with a drum part for whoever is not stirring.</p>
    </article>
    <article class="hero__card hero__card--blue" aria-hidden="true">
      <p class="hero__kicker">Card 3 of 4</p>
      <p class="hero__title">Flour on the ceiling is fine.</p>
      <p class="hero__text">Bakes that forgive a heavy hand and reward a loud one.</p>
    </article>
    <article class="hero__card hero__card--paper" aria-hidden="true">
      <p class="hero__kicker">Card 4 of 4</p>
      <p class="hero__title">Then wash up to a beat.</p>
      <p class="hero__text">The last card is always the sink. It has the best song.</p>
    </article>
  </div>

  <div class="hero__actions">
    <button class="hero__deal" type="button">Deal the next card</button>
    <a class="hero__link" href="#">See all 48 cards</a>
  </div>
</section>

<style>
  .hero {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: var(--space-xl);
    min-height: clamp(560px, 52vw, 720px);
    padding: var(--space-xl) var(--edge) var(--section-space);
    overflow: hidden;
    background: var(--field);
  }

  /* Scraps tossed around the edge, cropped by the section. */
  .hero__scraps { position: absolute; inset: 0; pointer-events: none; }
  .hero__scrap {
    position: absolute;
    display: block;
    width: var(--w);
    aspect-ratio: var(--ar, 3 / 4);
    clip-path: var(--quad-a);
    rotate: var(--r);
    animation: hero-fly var(--deal) var(--ease-pop) both;
    animation-delay: calc(var(--n) * 90ms);
  }
  .hero__scrap--sun { --w: clamp(120px, 16vw, 240px); --r: 28deg; --n: 0; --fx: -60vw; --fy: -20vw; left: -6%; top: -8%; background: var(--card-sun); }
  .hero__scrap--orange { --w: clamp(140px, 20vw, 300px); --ar: 4 / 3; --r: 2deg; --n: 1; --fx: 0; --fy: -40vw; left: 34%; top: -16%; background: var(--card-orange); clip-path: var(--quad-b); }
  .hero__scrap--lemon { --w: clamp(150px, 20vw, 290px); --ar: 4 / 3; --r: -12deg; --n: 2; --fx: 50vw; --fy: -30vw; right: -2%; top: -10%; background: var(--card-lemon); }
  .hero__scrap--mint { --w: clamp(80px, 9vw, 130px); --r: -10deg; --n: 3; --fx: 40vw; --fy: 0; right: -3%; top: 14%; background: var(--card-aqua); clip-path: var(--quad-c); z-index: -1; }
  .hero__scrap--red { --w: clamp(70px, 8vw, 120px); --ar: 1; --r: 38deg; --n: 4; --fx: 40vw; --fy: 10vw; right: -4%; top: 56%; background: var(--card-red); }
  .hero__scrap--white { --w: clamp(150px, 20vw, 300px); --ar: 3 / 2; --r: -16deg; --n: 5; --fx: -40vw; --fy: 40vw; left: 8%; bottom: -14%; background: var(--paper); clip-path: var(--quad-b); }
  .hero__tool {
    position: absolute;
    left: 28%;
    bottom: 6%;
    width: 22%;
    height: auto;
    stroke: var(--line-draw);
    rotate: 8deg;
  }
  @keyframes hero-fly {
    from { translate: var(--fx) var(--fy); rotate: calc(var(--r) + 50deg); }
    to { translate: 0 0; rotate: var(--r); }
  }

  /* The deck: every card takes the place its --pos gives it. */
  .hero__deck {
    position: relative;
    display: grid;
    width: min(460px, 100%);
  }
  .hero__card {
    --pos: 0;
    grid-area: 1 / 1;
    display: grid;
    align-content: start;
    gap: var(--space-m);
    min-height: 340px;
    padding: var(--space-xl) var(--space-l) var(--space-l);
    clip-path: var(--quad-a);
    z-index: calc(10 - var(--pos));
    transition: rotate var(--settle) var(--ease-pop), translate var(--settle) var(--ease-pop);
  }
  .hero__card[data-pos="0"] { rotate: -2deg; }
  .hero__card[data-pos="1"] { rotate: 5deg; translate: 14px 6px; clip-path: var(--quad-b); }
  .hero__card[data-pos="2"] { rotate: -8deg; translate: -16px 10px; clip-path: var(--quad-c); }
  .hero__card[data-pos="3"] { rotate: 9deg; translate: 10px 16px; }
  .hero__card[data-pos]:not([data-pos="0"]) > * { visibility: hidden; }
  .hero__card--bright { background: var(--paper-bright); }
  .hero__card--shade { background: var(--paper-shade); }
  .hero__card--blue { background: var(--paper-blue); }
  .hero__card--paper { background: var(--paper); }
  .hero__card.is-leaving { animation: hero-deal var(--deal) var(--ease) forwards; z-index: 11; }
  @keyframes hero-deal {
    40% { translate: 60% -8%; rotate: 14deg; }
    100% { translate: 0 18px; rotate: 9deg; z-index: 0; }
  }

  .hero__kicker {
    margin: 0;
    color: var(--ink-soft);
    font: 600 var(--text-xs)/1 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .hero__title {
    margin: 0;
    font: 700 var(--display)/0.95 var(--font-display);
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .hero__text { margin: 0; max-width: 32ch; font-size: var(--text-m); }

  .hero__actions {
    position: relative;
    z-index: 12;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-l);
  }
  .hero__deal {
    min-height: 52px;
    padding: 0 var(--space-l);
    border: 0;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--paper-bright);
    font: 600 var(--text-m)/1 var(--font-display);
    cursor: pointer;
    transition: transform var(--settle) var(--ease-pop), background-color var(--quick) var(--ease);
  }
  .hero__deal:hover,
  .hero__deal:focus-visible { transform: rotate(-3deg) scale(1.04); outline: none; }
  .hero__deal:focus-visible { box-shadow: 0 0 0 var(--ring) var(--field), 0 0 0 calc(var(--ring) * 2) var(--on-field); }
  .hero__deal:active { transform: scale(0.96); }
  .hero__link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--on-field);
    font: 600 var(--text-m)/1 var(--font-display);
    text-underline-offset: 5px;
    text-decoration-thickness: var(--ring);
  }

  @media (max-width: 40rem) {
    .hero__card { min-height: 300px; padding: var(--space-l) var(--space-m) var(--space-m); }
    .hero__scrap--orange { left: 46%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__scrap { animation: none; }
    .hero__card.is-leaving { animation: none; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    for (const root of document.querySelectorAll('.hero')) {
      const deck = root.querySelector('.hero__deck');
      const button = root.querySelector('.hero__deal');
      if (!deck || !button) continue;
      let cards = [...deck.querySelectorAll('.hero__card')];
      const place = () => cards.forEach((card, i) => {
        card.dataset.pos = String(i);
        card.style.setProperty('--pos', i);
        card.setAttribute('aria-hidden', i === 0 ? 'false' : 'true');
      });
      place();
      let busy = false;
      button.addEventListener('click', () => {
        if (busy) return;
        const top = cards[0];
        const next = () => {
          top.classList.remove('is-leaving');
          cards = [...cards.slice(1), top];
          place();
          busy = false;
        };
        if (still.matches) return next();
        busy = true;
        top.classList.add('is-leaving');
        top.addEventListener('animationend', next, { once: true });
      });
    }
  })();
</script>

Creature deck

The signature: a stack of coloured cards, each with a drawn creature that bobs and blinks; arrows or a tap deal the top card off to the right and send it under the stack.

Code React For Figma
<section class="deck" aria-labelledby="deck-title">
  <div class="deck__intro">
    <p class="deck__kicker">The kitchen crew</p>
    <h2 class="deck__title" id="deck-title">Four helpers, one for every noisy job.</h2>
    <p class="deck__text">Tap the stack to deal the next helper. Each one teaches a sound and a skill.</p>
    <div class="deck__controls">
      <button class="deck__ring deck__prev" type="button" aria-label="Previous helper">
        <svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M15 5l-7 7 7 7" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" /></svg>
      </button>
      <p class="deck__count" aria-live="polite"><span class="deck__now">01</span> / <span class="deck__all">04</span></p>
      <button class="deck__ring deck__next" type="button" aria-label="Next helper">
        <svg viewBox="0 0 24 24" width="22" height="22" aria-hidden="true"><path d="M9 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" /></svg>
      </button>
    </div>
  </div>

  <div class="deck__stack" role="button" tabindex="0" aria-label="Deal the next helper">
    <article class="deck__card deck__card--orange">
      <svg class="deck__creature" viewBox="0 0 200 200" aria-hidden="true">
        <g class="deck__bob">
          <path class="deck__fur" d="M38 132 26 104l24 2-8-28 24 8 2-28 18 16 10-26 12 22 14-20 6 26 20-14-2 28 20-6-8 26 16 6-16 16z" />
          <ellipse class="deck__fur" cx="100" cy="124" rx="66" ry="40" />
          <ellipse class="deck__cream" cx="142" cy="128" rx="34" ry="26" />
          <circle class="deck__rust" cx="176" cy="124" r="8" />
          <g class="deck__eye"><circle class="deck__white" cx="140" cy="114" r="11" /><circle class="deck__pupil" cx="144" cy="114" r="6" /></g>
          <path class="deck__mouth" d="M150 142q8 6 16 0" />
          <ellipse class="deck__fur" cx="80" cy="166" rx="14" ry="7" />
          <ellipse class="deck__fur" cx="128" cy="166" rx="14" ry="7" />
        </g>
        <g class="deck__pencil">
          <path d="M34 186 62 112" />
          <path d="M62 112c-4-22 4-40 18-46 6 14 2 34-18 46zM62 112c2-18 12-30 18-46M62 112c-6-14-2-30 18-46" />
        </g>
      </svg>
      <h3 class="deck__name">Bristle</h3>
      <p class="deck__role">Head whisker · makes the whirr</p>
    </article>

    <article class="deck__card deck__card--mint">
      <svg class="deck__creature" viewBox="0 0 200 200" aria-hidden="true">
        <g class="deck__bob">
          <ellipse class="deck__rust" cx="92" cy="54" rx="7" ry="14" transform="rotate(-20 92 54)" />
          <ellipse class="deck__rust" cx="104" cy="50" rx="7" ry="16" />
          <ellipse class="deck__rust" cx="116" cy="54" rx="7" ry="14" transform="rotate(20 116 54)" />
          <circle class="deck__cream" cx="104" cy="114" r="54" />
          <path class="deck__fur" d="M64 116c-14 10-18 30-6 40 14-4 24-18 22-36z" />
          <path class="deck__rust" d="M148 104l26 10-26 10z" />
          <g class="deck__eye"><circle class="deck__white" cx="126" cy="98" r="12" /><circle class="deck__pupil" cx="130" cy="98" r="6.5" /></g>
          <path class="deck__legs" d="M88 166v18m-8 0h16M120 166v18m-8 0h16" />
        </g>
        <g class="deck__pencil">
          <ellipse cx="44" cy="70" rx="14" ry="18" />
          <path d="M44 88v58" />
        </g>
      </svg>
      <h3 class="deck__name">Pip</h3>
      <p class="deck__role">Egg inspector · does the crack</p>
    </article>

    <article class="deck__card deck__card--red">
      <svg class="deck__creature" viewBox="0 0 200 200" aria-hidden="true">
        <g class="deck__bob">
          <path class="deck__cream" d="M24 156q8-24 44-22h84q20 0 22-28 2-14 12-10 4 30-8 60z" />
          <circle class="deck__fur" cx="96" cy="100" r="48" />
          <path class="deck__spiral" d="M96 100m-6 0a6 6 0 1 1 12 0 14 14 0 1 1-28 0 22 22 0 1 1 44 0 32 32 0 1 1-64 0" />
          <path class="deck__legs" d="M176 98l-6-30M188 102l4-30" />
          <g class="deck__eye"><circle class="deck__white" cx="170" cy="64" r="9" /><circle class="deck__pupil" cx="172" cy="64" r="5" /></g>
          <circle class="deck__pupil" cx="192" cy="70" r="5" />
        </g>
      </svg>
      <h3 class="deck__name">Mo</h3>
      <p class="deck__role">Slow cooker · hums for hours</p>
    </article>

    <article class="deck__card deck__card--sun">
      <svg class="deck__creature" viewBox="0 0 200 200" aria-hidden="true">
        <g class="deck__bob">
          <path class="deck__rust" d="M150 104l40-34v68z" />
          <ellipse class="deck__rust" cx="96" cy="104" rx="64" ry="44" />
          <path class="deck__stripe" d="M80 64q-12 40 0 80M106 62q-12 42 0 84" />
          <path class="deck__fur" d="M92 60q16-26 40-18-10 14-28 22z" />
          <g class="deck__eye"><circle class="deck__white" cx="56" cy="92" r="12" /><circle class="deck__pupil" cx="52" cy="92" r="6.5" /></g>
          <ellipse class="deck__pupil" cx="40" cy="120" rx="7" ry="9" />
        </g>
        <g class="deck__pencil">
          <circle cx="40" cy="166" r="6" /><circle cx="22" cy="150" r="4" /><circle cx="30" cy="132" r="3" />
        </g>
      </svg>
      <h3 class="deck__name">Gulp</h3>
      <p class="deck__role">Soup taster · says the slurp</p>
    </article>
  </div>
</section>

<style>
  .deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--space-xl);
    padding: var(--section-space) var(--edge);
    overflow: hidden;
    background: var(--field);
    color: var(--on-field);
  }
  .deck__kicker {
    margin: 0 0 var(--space-m);
    font: 600 var(--text-s)/1 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .deck__title {
    margin: 0 0 var(--space-m);
    font: 700 var(--text-xl)/1.02 var(--font-display);
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .deck__text { margin: 0 0 var(--space-l); max-width: 34ch; }
  .deck__controls { display: flex; align-items: center; gap: var(--space-m); }
  .deck__count { margin: 0; min-width: 5ch; text-align: center; font: 600 var(--text-m)/1 var(--font-display); }
  .deck__ring {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    background: transparent;
    color: var(--on-field);
    cursor: pointer;
    transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), transform var(--settle) var(--ease-pop);
  }
  .deck__ring:hover,
  .deck__ring:focus-visible { background: var(--on-field); color: var(--field); outline: none; }
  .deck__prev:hover { transform: translateX(-3px) rotate(-8deg); }
  .deck__next:hover { transform: translateX(3px) rotate(8deg); }

  .deck__stack {
    position: relative;
    display: grid;
    width: min(400px, 100%);
    justify-self: center;
    cursor: pointer;
    outline: none;
  }
  .deck__stack:focus-visible .deck__card[data-pos="0"] { box-shadow: inset 0 0 0 4px var(--ink); }
  .deck__card {
    grid-area: 1 / 1;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: var(--space-s);
    aspect-ratio: 5 / 6;
    padding: var(--space-l);
    color: var(--ink);
    text-align: center;
    clip-path: var(--quad-a);
    z-index: calc(10 - var(--pos, 0));
    transition: rotate var(--settle) var(--ease-pop), translate var(--settle) var(--ease-pop);
  }
  .deck__card[data-pos="0"] { rotate: 3deg; }
  .deck__card[data-pos="1"] { rotate: -5deg; translate: -14px 8px; clip-path: var(--quad-b); }
  .deck__card[data-pos="2"] { rotate: 8deg; translate: 18px 12px; clip-path: var(--quad-c); }
  .deck__card[data-pos="3"] { rotate: -11deg; translate: -8px 20px; }
  .deck__card--orange { background: var(--card-orange); }
  .deck__card--mint { background: var(--card-mint); }
  .deck__card--red { background: var(--card-red); }
  .deck__card--sun { background: var(--card-sun); }
  .deck__card.is-leaving { animation: deck-deal var(--deal) var(--ease) forwards; z-index: 11; }
  .deck__card.is-arriving { animation: deck-back var(--deal) var(--ease-pop); z-index: 11; }
  @keyframes deck-deal {
    40% { translate: 70% -6%; rotate: 18deg; }
    100% { translate: -8px 20px; rotate: -11deg; z-index: 0; }
  }
  @keyframes deck-back {
    from { translate: -70% -6%; rotate: -18deg; }
  }

  .deck__creature { width: 72%; height: auto; overflow: visible; }
  .deck__bob { animation: deck-bob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
  .deck__eye { animation: deck-blink 4s infinite; transform-box: fill-box; transform-origin: center; }
  .deck.is-paused .deck__bob,
  .deck.is-paused .deck__eye { animation-play-state: paused; }
  @keyframes deck-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-6px) rotate(-2deg); }
  }
  @keyframes deck-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
  }
  .deck__fur { fill: var(--creature-brown); }
  .deck__cream { fill: var(--creature-cream); }
  .deck__rust { fill: var(--creature-rust); }
  .deck__white { fill: var(--paper-bright); }
  .deck__pupil { fill: var(--creature-dark); }
  .deck__mouth, .deck__legs { fill: none; stroke: var(--creature-dark); stroke-width: 4; stroke-linecap: round; }
  .deck__spiral, .deck__stripe { fill: none; stroke: var(--creature-cream); stroke-width: 7; stroke-linecap: round; }
  .deck__pencil { fill: none; stroke: var(--ink-soft); stroke-width: var(--line); stroke-linecap: round; }
  .deck__name { margin: 0; font: 700 var(--text-xl)/1 var(--font-display); }
  .deck__role { margin: 0; font: 600 var(--text-s)/1.3 var(--font-display); }

  @media (max-width: 48rem) {
    .deck { grid-template-columns: minmax(0, 1fr); }
    .deck__stack { width: min(320px, 86%); order: -1; }
  }
  @media (prefers-reduced-motion: reduce) {
    .deck__bob, .deck__eye, .deck__card.is-leaving, .deck__card.is-arriving { animation: none; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const watch = new IntersectionObserver((entries) => {
      for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
    });
    for (const root of document.querySelectorAll('.deck')) {
      const stack = root.querySelector('.deck__stack');
      const now = root.querySelector('.deck__now');
      const all = root.querySelector('.deck__all');
      if (!stack) continue;
      watch.observe(root);
      const original = [...stack.querySelectorAll('.deck__card')];
      let cards = [...original];
      const pad = (n) => String(n).padStart(2, '0');
      if (all) all.textContent = pad(cards.length);
      const place = () => {
        cards.forEach((card, i) => {
          card.dataset.pos = String(Math.min(i, 3));
          card.style.setProperty('--pos', i);
          card.setAttribute('aria-hidden', i === 0 ? 'false' : 'true');
        });
        if (now) now.textContent = pad(original.indexOf(cards[0]) + 1);
      };
      place();
      let busy = false;
      const next = () => {
        if (busy) return;
        const top = cards[0];
        const done = () => { top.classList.remove('is-leaving'); cards = [...cards.slice(1), top]; place(); busy = false; };
        if (still.matches) return done();
        busy = true;
        top.classList.add('is-leaving');
        top.addEventListener('animationend', done, { once: true });
      };
      const prev = () => {
        if (busy) return;
        const last = cards[cards.length - 1];
        cards = [last, ...cards.slice(0, -1)];
        place();
        if (still.matches) return;
        busy = true;
        last.classList.add('is-arriving');
        last.addEventListener('animationend', () => { last.classList.remove('is-arriving'); busy = false; }, { once: true });
      };
      stack.addEventListener('click', next);
      stack.addEventListener('keydown', (e) => {
        if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); next(); }
      });
      root.querySelector('.deck__next')?.addEventListener('click', next);
      root.querySelector('.deck__prev')?.addEventListener('click', prev);
    }
  })();
</script>

Sound tiles

A loose grid of tilted paper tiles with grey pencil kitchen tools; a tap squashes the tile, pulses white rings and plays a short tone.

Code React For Figma
<section class="board" aria-labelledby="board-title">
  <header class="board__head">
    <h2 class="board__title" id="board-title">The noisy kitchen</h2>
    <p class="board__text">Tap a card to hear it. Every recipe step has one.</p>
  </header>

  <ul class="board__grid">
    <li><button class="board__tile board__tile--paper" type="button" data-tone="262">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><path d="M40 6v28M40 34c-12 12-14 30-6 40 3 4 9 4 12 0 8-10 6-28-6-40zM40 34c-5 14-6 28-2 40M40 34c5 14 6 28 2 40" /></svg>
      <span class="board__label">Whisk</span></button></li>
    <li><button class="board__tile board__tile--sun" type="button" data-tone="294">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><ellipse cx="32" cy="46" rx="24" ry="10" /><path d="M8 46v6c0 6 11 10 24 10s24-4 24-10v-6M56 44l20-8" /></svg>
      <span class="board__label">Sizzle</span></button></li>
    <li><button class="board__tile board__tile--mint" type="button" data-tone="330">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><path d="M18 66h44l-4-34H22zM22 32c0-8 8-12 18-12s18 4 18 12M34 20v-4h12v4M58 38l14-8-2 12" /><path d="M48 12q4-4 0-8M56 12q4-4 0-8" /></svg>
      <span class="board__label">Kettle</span></button></li>
    <li><button class="board__tile board__tile--orange" type="button" data-tone="349">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><circle cx="40" cy="44" r="26" /><path d="M40 44V26M40 44l12 8M34 12h12M40 12v6" /></svg>
      <span class="board__label">Ding</span></button></li>
    <li><button class="board__tile board__tile--lemon" type="button" data-tone="392">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><path d="M26 70l6-56h16l6 56zM34 26h12M33 36h14M32 46h16M31 56h18" /></svg>
      <span class="board__label">Grate</span></button></li>
    <li><button class="board__tile board__tile--paper" type="button" data-tone="440">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><rect x="20" y="30" width="40" height="18" rx="9" /><path d="M6 39h14M60 39h14" /></svg>
      <span class="board__label">Roll</span></button></li>
    <li><button class="board__tile board__tile--aqua" type="button" data-tone="494">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><path d="M40 10c-14 0-24 26-24 40a24 24 0 0 0 48 0c0-14-10-40-24-40zM30 44l6 6 6-8 6 8" /></svg>
      <span class="board__label">Crack</span></button></li>
    <li><button class="board__tile board__tile--sun" type="button" data-tone="523">
      <svg class="board__tool" viewBox="0 0 80 80" aria-hidden="true"><path d="M14 30h52l-6 30c-1 6-6 8-20 8s-19-2-20-8zM8 30h64M40 30V8" /></svg>
      <span class="board__label">Slurp</span></button></li>
  </ul>
</section>

<style>
  .board {
    padding: var(--section-space) var(--edge);
    background: var(--field);
    color: var(--on-field);
  }
  .board__head { max-width: 40rem; margin: 0 auto var(--space-xl); text-align: center; }
  .board__title { margin: 0 0 var(--space-s); font: 700 var(--text-xl)/1.02 var(--font-display); }
  .board__text { margin: 0; }
  .board__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
  .board__grid li:nth-child(4n + 1) { --r: -4deg; --q: var(--quad-a); }
  .board__grid li:nth-child(4n + 2) { --r: 3deg; --q: var(--quad-b); }
  .board__grid li:nth-child(4n + 3) { --r: -1.5deg; --q: var(--quad-c); }
  .board__grid li:nth-child(4n + 4) { --r: 5deg; --q: var(--quad-a); }
  .board__grid li:nth-child(n + 5) { translate: 0 -6px; }

  .board__tile {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: var(--space-s);
    width: 100%;
    aspect-ratio: 1;
    min-height: 120px;
    padding: var(--space-m);
    border: 0;
    color: var(--ink);
    font: inherit;
    clip-path: var(--q);
    rotate: var(--r);
    cursor: pointer;
    transition: rotate var(--settle) var(--ease-pop), scale var(--settle) var(--ease-pop);
  }
  .board__tile:hover { rotate: 0deg; scale: 1.04; }
  .board__tile:focus-visible { outline: none; rotate: 0deg; box-shadow: inset 0 0 0 4px var(--ink); }
  .board__tile.is-playing { animation: board-squash var(--settle) var(--ease-pop); }
  .board__tile--paper { background: var(--paper); }
  .board__tile--sun { background: var(--card-sun); }
  .board__tile--mint { background: var(--card-mint); }
  .board__tile--orange { background: var(--card-orange); }
  .board__tile--lemon { background: var(--card-lemon); }
  .board__tile--aqua { background: var(--card-aqua); }
  .board__tool {
    width: 52%;
    height: auto;
    fill: none;
    stroke: var(--line-draw);
    stroke-width: var(--line);
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .board__tile--orange .board__tool,
  .board__tile--aqua .board__tool { stroke: var(--ink-soft); }
  .board__label { font: 600 var(--text-l)/1 var(--font-display); }

  /* White rings that pulse out of a tapped tile. */
  .board__grid li { position: relative; }
  .board__ping {
    position: absolute;
    inset: 15%;
    border: var(--ring) solid var(--on-field);
    border-radius: var(--pill);
    pointer-events: none;
    animation: board-ping 700ms var(--ease) forwards;
  }
  .board__ping + .board__ping { animation-delay: 140ms; }
  @keyframes board-ping {
    from { opacity: 1; scale: 0.6; }
    to { opacity: 0; scale: 1.5; }
  }
  @keyframes board-squash {
    0% { scale: 1; rotate: var(--r); }
    30% { scale: 1.1 0.88; rotate: calc(var(--r) * -1.5); }
    60% { scale: 0.95 1.06; rotate: calc(var(--r) * 0.6); }
    100% { scale: 1; rotate: var(--r); }
  }

  @media (max-width: 40rem) {
    .board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .board__grid li:nth-child(n + 5) { translate: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .board__tile.is-playing, .board__ping { animation: none; }
    .board__ping { display: none; }
  }
</style>

<script>
  (() => {
    let audio = null;
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const play = (freq) => {
      const Ctx = window.AudioContext || window.webkitAudioContext;
      if (!Ctx) return;
      audio = audio || new Ctx();
      const t = audio.currentTime;
      const osc = audio.createOscillator();
      const gain = audio.createGain();
      osc.type = 'triangle';
      osc.frequency.setValueAtTime(freq, t);
      osc.frequency.exponentialRampToValueAtTime(freq * 1.5, t + 0.08);
      gain.gain.setValueAtTime(0.0001, t);
      gain.gain.exponentialRampToValueAtTime(0.2, t + 0.01);
      gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.35);
      osc.connect(gain).connect(audio.destination);
      osc.start(t);
      osc.stop(t + 0.4);
    };
    for (const root of document.querySelectorAll('.board')) {
      for (const tile of root.querySelectorAll('.board__tile')) {
        tile.addEventListener('click', () => {
          play(Number(tile.dataset.tone) || 440);
          if (still.matches) return;
          tile.classList.remove('is-playing');
          void tile.offsetWidth;
          tile.classList.add('is-playing');
          const cell = tile.parentElement;
          for (let i = 0; i < 2; i++) {
            const ring = document.createElement('span');
            ring.className = 'board__ping';
            cell.append(ring);
            ring.addEventListener('animationend', () => ring.remove(), { once: true });
          }
        });
        tile.addEventListener('animationend', () => tile.classList.remove('is-playing'));
      }
    }
  })();
</script>

Recipe cards

Paintings cropped hard inside coloured paper cards with a title and time, dropped at angles; hover straightens and lifts a card.

Code React For Figma
<section class="prints" aria-labelledby="prints-title">
  <header class="prints__head">
    <h2 class="prints__title" id="prints-title">This week's cards</h2>
    <a class="prints__all" href="#">All recipes</a>
  </header>

  <ul class="prints__table">
    <li class="prints__item">
      <a class="prints__card prints__card--paper" href="#">
        <img class="prints__img" src="assets/apples.jpg" alt="A painted basket of apples tipped on a table beside a bottle and biscuits" width="800" height="639" loading="lazy" />
        <span class="prints__name">Tipped-basket apple crumble</span>
        <span class="prints__meta">35 min · two loud bowls</span>
      </a>
    </li>
    <li class="prints__item">
      <a class="prints__card prints__card--sun" href="#">
        <img class="prints__img" src="assets/fruit.jpg" alt="A painting of grapes, lemons, pears and apples on a pale cloth" width="1200" height="994" loading="lazy" />
        <span class="prints__name">Squashed grape lemonade</span>
        <span class="prints__meta">10 min · one jar, shaken</span>
      </a>
    </li>
    <li class="prints__item">
      <a class="prints__card prints__card--mint" href="#">
        <img class="prints__img" src="assets/dessert.jpg" alt="A painted kitchen shelf with a pewter jug, a copper pot and grapes" width="800" height="670" loading="lazy" />
        <span class="prints__name">Copper pot grape jam</span>
        <span class="prints__meta">50 min · a grown-up stirs</span>
      </a>
    </li>
    <li class="prints__item">
      <a class="prints__card prints__card--orange" href="#">
        <img class="prints__img" src="assets/kitchen.jpg" alt="A painting of a basket of chestnuts with mushrooms, berries and almonds on a table" width="800" height="659" loading="lazy" />
        <span class="prints__name">Crackling chestnut cakes</span>
        <span class="prints__meta">40 min · listen for the pop</span>
      </a>
    </li>
  </ul>
</section>

<style>
  .prints {
    padding: var(--section-space) var(--edge);
    overflow: hidden;
    background: var(--field);
    color: var(--on-field);
  }
  .prints__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-m);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
  }
  .prints__title { margin: 0; font: 700 var(--text-xl)/1.02 var(--font-display); }
  .prints__all {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: inherit;
    font: 600 var(--text-m)/1 var(--font-display);
    text-decoration-thickness: var(--ring);
    text-underline-offset: 5px;
  }
  .prints__table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
  .prints__item:nth-child(1) { --r: -5deg; --q: var(--quad-a); }
  .prints__item:nth-child(2) { --r: 3deg; --q: var(--quad-b); translate: 0 28px; }
  .prints__item:nth-child(3) { --r: -2deg; --q: var(--quad-c); translate: 0 -8px; }
  .prints__item:nth-child(4) { --r: 6deg; --q: var(--quad-a); translate: 0 20px; }

  .prints__card {
    display: grid;
    gap: var(--space-s);
    padding: var(--space-m) var(--space-m) var(--space-l);
    color: var(--ink);
    text-decoration: none;
    clip-path: var(--q);
    rotate: var(--r);
    transition: rotate var(--settle) var(--ease-pop), translate var(--settle) var(--ease-pop);
  }
  .prints__card:hover,
  .prints__card:focus-visible { rotate: 0deg; translate: 0 -10px; outline: none; }
  .prints__card:focus-visible .prints__name { text-decoration: underline; text-underline-offset: 4px; }
  .prints__card--paper { background: var(--paper-bright); }
  .prints__card--sun { background: var(--card-sun); }
  .prints__card--mint { background: var(--card-mint); }
  .prints__card--orange { background: var(--card-orange); }
  .prints__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: var(--space-s);
    clip-path: var(--quad-c);
  }
  .prints__name { font: 700 var(--text-l)/1.08 var(--font-display); text-wrap: balance; }
  .prints__meta { font: 600 var(--text-xs)/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
  .prints__card--orange .prints__meta { color: var(--ink); }

  @media (max-width: 60rem) {
    .prints__table { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-xl); }
  }
  @media (max-width: 30rem) {
    .prints__table { grid-template-columns: minmax(0, 1fr); padding: 0 var(--space-m); }
    .prints__item:nth-child(n) { translate: none; }
  }
</style>

Question slips

Questions on tilted paper slips that open in place; an open slip straightens and shows its answer.

Code React For Figma
<section class="help" aria-labelledby="help-title">
  <div class="help__side">
    <span class="help__badge" aria-hidden="true">?</span>
    <h2 class="help__title" id="help-title">Questions from the grown-ups</h2>
    <p class="help__text">The short answers. The long ones are in the box with the cards.</p>
  </div>

  <div class="help__slips">
    <details class="help__slip help__slip--paper" open>
      <summary class="help__q">What age are the cards for?</summary>
      <p class="help__a">Four and up with a helper, eight and up alone. The pictures carry the steps, so reading is optional.</p>
    </details>
    <details class="help__slip help__slip--sun">
      <summary class="help__q">Does it really need sound on?</summary>
      <p class="help__a">No. Every sound has a word on the card too, so the kitchen can stay as quiet as the house needs.</p>
    </details>
    <details class="help__slip help__slip--mint">
      <summary class="help__q">Is there anything sharp?</summary>
      <p class="help__a">Cards with a knife or the hob have a red corner. Those steps belong to whoever is tallest.</p>
    </details>
    <details class="help__slip help__slip--paper">
      <summary class="help__q">Can we print our own?</summary>
      <p class="help__a">Yes. Every card comes as a printable sheet, and a blank one for family recipes.</p>
    </details>
  </div>
</section>

<style>
  .help {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-xl);
    align-items: start;
    padding: var(--section-space) var(--edge);
    background: var(--field);
    color: var(--on-field);
  }
  .help__badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-l);
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    font: 700 2rem/1 var(--font-display);
    rotate: -10deg;
  }
  .help__title { margin: 0 0 var(--space-m); font: 700 var(--text-xl)/1.02 var(--font-display); text-wrap: balance; }
  .help__text { margin: 0; max-width: 30ch; }

  .help__slips { display: grid; gap: var(--space-m); }
  .help__slip {
    color: var(--ink);
    clip-path: var(--q);
    rotate: var(--r);
    transition: rotate var(--settle) var(--ease-pop);
  }
  .help__slip:nth-child(1) { --r: -1.5deg; --q: var(--quad-a); }
  .help__slip:nth-child(2) { --r: 1.8deg; --q: var(--quad-b); margin-inline: var(--space-l) 0; }
  .help__slip:nth-child(3) { --r: -2.4deg; --q: var(--quad-c); margin-inline: var(--space-s) var(--space-l); }
  .help__slip:nth-child(4) { --r: 1.2deg; --q: var(--quad-a); margin-inline: var(--space-xl) 0; }
  .help__slip[open] { rotate: 0deg; }
  .help__slip--paper { background: var(--paper); }
  .help__slip--sun { background: var(--card-sun); }
  .help__slip--mint { background: var(--card-mint); }
  .help__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
    min-height: 60px;
    padding: var(--space-m) var(--space-l);
    font: 600 var(--text-l)/1.15 var(--font-display);
    list-style: none;
    cursor: pointer;
  }
  .help__q::-webkit-details-marker { display: none; }
  .help__q::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: var(--ring) solid currentColor;
    border-radius: var(--pill);
    font-size: 1.25rem;
    transition: rotate var(--settle) var(--ease-pop);
  }
  .help__slip[open] .help__q::after { rotate: 45deg; }
  .help__q:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
  .help__a {
    margin: 0;
    padding: 0 var(--space-l) var(--space-l);
    max-width: 52ch;
    animation: help-drop var(--settle) var(--ease);
  }
  @keyframes help-drop { from { opacity: 0; translate: 0 -8px; } }

  @media (max-width: 48rem) {
    .help { grid-template-columns: minmax(0, 1fr); }
    .help__slip:nth-child(n) { margin-inline: 0; }
  }
</style>

Style

  • --field #00ad5d
  • --field-deep #00954f
  • --on-field #fafafa
  • --paper #f2f2f2
  • --paper-bright #fafafa
  • --paper-shade #e6e5dd
  • --paper-blue #bccad3
  • --ink #1d2b24
  • --ink-soft #5c6a62
  • --line-draw #9a9a9a
  • --card-orange #ed8500
  • --card-sun #fed44a
  • --card-lemon #f5de16
  • --card-mint #7ee9b7
  • --card-aqua #4cecb2
  • --card-red #ff394e
  • --creature-brown #895032
  • --creature-rust #d14533
  • --creature-cream #f9edd2
  • --creature-dark #24201c

Type

  • Fredoka for headlines, labels and buttons, stands in for the source sets almost no text; its fat rounded note mark sets the tone, and Fredoka's rounded heavy letters carry it into type
  • Nunito for running text, stands in for a friendly rounded sans for the few lines of copy

Motion

  • Scraps at the edge of the hero fly in from outside the frame on load, each to its own angle, 700 ms with an overshoot easing, staggered by 90 ms.
  • Dealing a card slides the top card off to the right and turns it, 700 ms, then it drops to the bottom of the stack and the stack re-tilts.
  • Drawn creatures bob on a slow 2.4 s loop and blink every 4 s; the loop pauses off screen.
  • A tapped sound tile squashes and wobbles for 450 ms while two white rings pulse out from it, and a short tone plays.
  • Cards straighten from their tilt and lift a step on hover, 450 ms with overshoot.

Rules

  • The page is one flat green; every surface on it is a card of flat paper colour with no shadow.
  • Nothing sits straight: each card is turned between 2 and 14 degrees, and stacks show the edges of the cards below in white, cream and grey-blue.
  • Card edges are cut slightly out of square with a polygon, like paper cut by hand.
  • Scraps run off the edges of a section, cropped by it, so the table looks bigger than the screen.
  • Text is rounded and heavy, set on cards, never floating on the green except for short white labels.
  • Round outlined buttons in white on the green, 2 px rings, for help and arrows.
  • Illustrations are flat closed shapes in brown, rust and cream with a big eye; tools are thin grey pencil lines.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;700;800&display=swap");

:root {
  /* Ground */
  --field: #00ad5d; /* page background: the flat green table every card lies on */
  --field-deep: #00954f; /* pressed and shaded green, focus halo on the field */
  --on-field: #fafafa; /* text, marks and rings set straight on the green */

  /* Paper */
  --paper: #f2f2f2; /* the plain white card */
  --paper-bright: #fafafa; /* top card of a stack */
  --paper-shade: #e6e5dd; /* the card under the top card */
  --paper-blue: #bccad3; /* the cold grey-blue card at the bottom of a stack */
  --ink: #1d2b24; /* main text on paper */
  --ink-soft: #5c6a62; /* second-level text on paper */
  --line-draw: #9a9a9a; /* grey pencil line of drawn tools */

  /* Coloured card stock */
  --card-orange: #ed8500; /* orange card */
  --card-sun: #fed44a; /* warm yellow card */
  --card-lemon: #f5de16; /* lemon card */
  --card-mint: #7ee9b7; /* pale mint card */
  --card-aqua: #4cecb2; /* bright aqua card */
  --card-red: #ff394e; /* red card, used sparingly */
  --creature-brown: #895032; /* fur and feathers of drawn creatures */
  --creature-rust: #d14533; /* cheeks, crests and beaks */
  --creature-cream: #f9edd2; /* faces, bellies and shell spirals */
  --creature-dark: #24201c; /* pupils and mouths */

  /* Type */
  --font-display: "Fredoka", "Arial Rounded MT Bold", sans-serif; /* headlines, labels, buttons */
  --font-body: "Nunito", system-ui, sans-serif; /* running text */
  --text-xs: 0.8125rem; /* small labels and counters */
  --text-s: 0.9375rem; /* captions */
  --text-m: 1.0625rem; /* body */
  --text-l: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* card titles */
  --text-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); /* section headings */
  --display: clamp(2.5rem, 1.6rem + 4vw, 5rem); /* hero headline */

  /* Space */
  --edge: clamp(20px, 4vw, 56px); /* outer page margin */
  --gap: clamp(16px, 2vw, 28px); /* gap between cards */
  --space-xs: 4px; /* tight */
  --space-s: 8px; /* small */
  --space-m: 16px; /* medium */
  --space-l: 28px; /* large */
  --space-xl: 48px; /* extra large */
  --section-space: clamp(64px, 9vw, 128px); /* between sections */

  /* Shape */
  --radius-none: 0; /* cards are cut square */
  --pill: 999px; /* circles and pill buttons */
  --ring: 2px; /* outline of the round help and arrow buttons */
  --line: 1.5px; /* pencil line weight in drawings */
  --tilt-s: 2.5deg; /* a card almost straight */
  --tilt-m: 6deg; /* a card dropped casually */
  --tilt-l: 14deg; /* a scrap tossed at the edge */
  --quad-a: polygon(0.8% 1.6%, 100% 0, 98.6% 100%, 0 98.2%); /* hand-cut card edge, first cut */
  --quad-b: polygon(0 0, 98.8% 1.8%, 100% 97.6%, 1.4% 100%); /* hand-cut card edge, second cut */
  --quad-c: polygon(1.6% 0, 100% 1%, 99% 98.8%, 0 100%); /* hand-cut card edge, third cut */

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* default easing */
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1); /* overshoot for cards landing */
  --quick: 200ms; /* hover and press */
  --settle: 450ms; /* a card straightening or bouncing */
  --deal: 700ms; /* a card dealt across the table */
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--field); color: var(--ink); font: 400 var(--text-m)/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("scattered-paper-cards"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect