kitbash Sign in Connect agent
Components

Dark manifesto

A dark band of centred, loosely set lines that fade up one by one; key lines sit on a grey slab wiped in from the left.

Part of the style

Grey Backdrop Lineup

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #f8e2c6;
  --paper: #20201f;
  --ink-mute: #4d4d45;
  --night: #c6b7a5;
  --on-night: #20201f;
  --fog: #2c2c29;
  --backdrop: #353530;
  --chip: #494941;
  --rule-colour: #33332f;
  --shade: rgba(248, 226, 198, 0.42);
}
</style>

<section class="manifesto" aria-label="Why we bake">
  <div class="manifesto__inner">
    <p class="manifesto__line">Yesterday's bread taught us something small.</p>
    <p class="manifesto__line">A little more water, a little more time,</p>
    <p class="manifesto__line">and tomorrow's loaf rises a little higher.</p>
    <p class="manifesto__line manifesto__line--gap">Every bakery that ever fed a street</p>
    <p class="manifesto__line">started with someone who could not sleep</p>
    <p class="manifesto__line">until the dough was right.</p>
    <p class="manifesto__line manifesto__line--gap"><mark class="manifesto__chip">That is the whole job, really.</mark></p>
    <p class="manifesto__line manifesto__line--gap">Between <span class="manifesto__digit">0</span> and <span class="manifesto__digit">400</span> loaves a night,</p>
    <p class="manifesto__line">your curiosity is the ingredient we cannot buy,</p>
    <p class="manifesto__line">and the one that turns a shop into a neighbourhood.</p>
    <p class="manifesto__line manifesto__line--gap"><mark class="manifesto__chip">Come early, stay curious.</mark></p>
    <p class="manifesto__line manifesto__line--quiet">The ovens are already warm.</p>
  </div>
</section>

<style>
  .manifesto {
    padding: var(--section-space) var(--edge);
    background: var(--night);
    color: var(--on-night);
  }
  .manifesto__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
  }
  .manifesto__line {
    margin: 0;
    font-size: var(--text-m);
    font-weight: 500;
    line-height: var(--leading);
    letter-spacing: var(--tracking);
    text-wrap: balance;
    opacity: 0;
    translate: 0 16px;
    transition: opacity var(--time-slow) var(--ease), translate var(--time-slow) var(--ease);
    transition-delay: calc(var(--order, 0) * 90ms);
  }
  .manifesto__line--gap {
    margin-top: var(--space-xl);
  }
  .manifesto__line--quiet {
    margin-top: var(--space-l);
    color: var(--chip);
  }
  .manifesto.is-seen .manifesto__line {
    opacity: 1;
    translate: 0 0;
  }
  .manifesto__chip {
    padding: var(--space-xs) var(--space-s);
    background: linear-gradient(var(--chip), var(--chip)) 0 0 / 0% 100% no-repeat;
    color: inherit;
    font-size: 1.15em;
    letter-spacing: 0.12em;
    transition: background-size var(--time-slow) var(--ease);
    transition-delay: calc(var(--order, 0) * 90ms + 300ms);
  }
  .manifesto.is-seen .manifesto__chip {
    background-size: 100% 100%;
    color: var(--night);
  }
  .manifesto__digit {
    display: inline-block;
    margin: 0 0.15em;
    font-family: var(--font-wide);
    font-stretch: var(--wide);
    font-size: 1.9em;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: -0.15em;
  }

  @media (prefers-reduced-motion: reduce) {
    .manifesto__line {
      opacity: 1;
      translate: none;
      transition: none;
    }
    .manifesto__chip {
      background-size: 100% 100%;
      color: var(--night);
      transition: none;
    }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.1 });
    for (const root of document.querySelectorAll('.manifesto')) {
      root.querySelectorAll('.manifesto__line').forEach((line, order) => {
        line.style.setProperty('--order', order);
        const chip = line.querySelector('.manifesto__chip');
        if (chip) chip.style.setProperty('--order', order);
      });
      seen.observe(root);
    }
  })();
</script>

Similar components

Condensed black statement

Condensed black statement

Centred statement

Centred statement

Big statement

Big statement

Shaded statement

Shaded statement

Matted diff feature

Matted diff feature

Black statement

Black statement

Big plain statement

Big plain statement

Notes

Notes