kitbash Sign in Connect agent
Components

Project chapter

Olive chapter opener: underlined eyebrow on the left, a big statement on the right and a row of tags that fill one after another with a wipe.

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: #130401;
  --bark: #db937b;
  --sand: #020000;
  --night: #efa58d;
  --chalk: #f9ded3;
  --chalk-dim: #000000;
  --shade: rgba(252, 215, 203, 0.28);
  --bark-veil: rgba(219, 147, 123, 0.2);
  --olive: #8e412e;
  --mustard: #ffccbf;
  --harbor: #865045;
  --sky: #51312b;
  --signal: #79260a;
  --skin: #492a21;
  --hair: #291a16;
  --teal: #be634a;
}
</style>

<section class="chapter">
  <span class="chapter__corner" aria-hidden="true">p</span>
  <div class="chapter__inner">
    <h2 class="chapter__eyebrow">North Pier Baths</h2>
    <div class="chapter__body">
      <p class="chapter__statement">A sea pool at the end of a long pier, now easy to find from the ferry, the tram and the beach. Forty signs, one map, a timetable you can read wet.</p>
      <p class="chapter__tags">
        <span class="chapter__by">By me:</span>
        <span class="chapter__tag"><span class="chapter__tag-text">Signage</span></span>
        <span class="chapter__tag"><span class="chapter__tag-text">Wayfinding</span></span>
        <span class="chapter__tag"><span class="chapter__tag-text">Website</span></span>
        <span class="chapter__tag"><span class="chapter__tag-text">Pictograms</span></span>
      </p>
    </div>
  </div>
</section>

<style>
  .chapter {
    position: relative;
    padding: var(--space-wall) var(--edge) var(--space-16);
    background: var(--olive);
    color: var(--sand);
  }
  .chapter__corner {
    position: absolute;
    top: calc(var(--gutter) - 0.6rem);
    left: var(--gutter);
    color: var(--signal);
    font-family: var(--font-mark);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
  }
  .chapter__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
    gap: var(--space-7);
  }
  .chapter__eyebrow {
    justify-self: start;
    align-self: start;
    margin: 0.85em 0 0;
    padding-bottom: 0.15em;
    border-bottom: var(--rule) solid currentColor;
    font-size: var(--text-m);
    font-weight: 500;
    letter-spacing: var(--tracking-caps);
    line-height: 1;
    text-transform: uppercase;
  }
  .chapter__statement {
    max-width: 22em;
    margin: 0 0 var(--space-7);
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-tight);
    line-height: 1.25;
  }
  .chapter__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: var(--text-s);
    line-height: 1;
  }
  .chapter__by { margin-right: var(--space-1); }
  .chapter__tag {
    position: relative;
    padding: 0.45em 0.75em;
    border: 1px solid var(--sand);
    overflow: hidden;
  }
  .chapter__tag::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-m) var(--ease-out);
    transition-delay: calc(var(--order, 0) * 260ms + 200ms);
  }
  .chapter__tag-text {
    position: relative;
    transition: color var(--duration-s) linear;
    transition-delay: calc(var(--order, 0) * 260ms + 380ms);
  }
  .chapter.is-seen .chapter__tag::before { transform: scaleX(1); }
  .chapter.is-seen .chapter__tag-text { color: var(--olive); }

  @media (max-width: 48rem) {
    .chapter__inner { grid-template-columns: minmax(0, 1fr); }
    .chapter__eyebrow { margin-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .chapter__tag::before { transform: scaleX(1); transition: none; }
    .chapter__tag-text { color: var(--olive); 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.15 });
    for (const root of document.querySelectorAll('.chapter')) {
      root.querySelectorAll('.chapter__tag').forEach((tag, order) => tag.style.setProperty('--order', order));
      seen.observe(root);
    }
  })();
</script>

Similar components

Red flood studio

Red flood studio

Small caps statement

Small caps statement

Black statement

Black statement

Discipline shapes

Discipline shapes

Big statement

Big statement

Case study flood

Case study flood

Profile

Profile

Project sheet

Project sheet