kitbash Sign in Connect agent
Components

Holding sheet

One portfolio company: three grey label lines, a large serif name, square and round icon buttons, a grey logo tile, a paragraph and ruled stat rows whose numbers count up on view.

Part of the style

Wireframe Ledger

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #020408;
  --ink: #f0f5ff;
  --ink-mid: rgba(240, 245, 255, 0.6);
  --ink-soft: rgba(240, 245, 255, 0.45);
  --rule: rgba(240, 245, 255, 0.16);
  --rule-strong: #f0f5ff;
  --mist: #0b1017;
  --fog: #1a2028;
  --sand: #0e131a;
  --on-wine: #020408;
  --wine: #697b9b;
  --signal: #7887a2;
}
</style>

<article class="holding">
  <header class="holding__head">
    <p class="holding__labels"><span>saltmarshferries.example</span><span>Passenger ferries</span><span>Electric drive &amp; batteries</span></p>
    <h2 class="holding__name">Saltmarsh Ferries</h2>
  </header>

  <div class="holding__body">
    <ul class="holding__actions" aria-label="Links">
      <li><a class="holding__icon holding__icon--square" href="#" aria-label="Fleet notes">
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2 10c2-2 4 2 6 0s4 2 6 0M2 6.5c2-2 4 2 6 0s4 2 6 0"/></svg>
      </a></li>
      <li><a class="holding__icon" href="#" aria-label="Visit the company">
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 11 11 5M6 5h5v5"/></svg>
      </a></li>
      <li><a class="holding__icon" href="#" aria-label="Deal terms">
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M9 2 4 9h4l-1 5 5-7H8z"/></svg>
      </a></li>
    </ul>

    <figure class="holding__logo" aria-label="Saltmarsh Ferries logo">
      <svg viewBox="0 0 80 40" aria-hidden="true">
        <path d="M24 22a16 16 0 0 1 32 0" />
        <path d="M40 4v6M28 8l3 5M52 8l-3 5M19 15l5 3M61 15l-5 3" />
        <path d="M14 26h52M20 30h40M28 34h24" />
      </svg>
      <figcaption>Saltmarsh<br>Ferries</figcaption>
    </figure>

    <p class="holding__text">Keel bought the Saltmarsh crossing in its fourteenth year of diesel. Nine months later the first two hulls run on shore-charged batteries, the timetable is unchanged and the fuel bill is gone. <a href="#">Read the refit log.</a></p>

    <dl class="holding__stats">
      <div class="holding__stat"><dt>Fuel cost removed</dt><dd><span class="holding__number" data-to="94">94</span>%</dd></div>
      <div class="holding__stat"><dt>Crossings per day</dt><dd><span class="holding__number" data-to="38">38</span></dd></div>
      <div class="holding__stat"><dt>Hull life added</dt><dd><span class="holding__number" data-to="27">27</span> yrs</dd></div>
    </dl>
  </div>
</article>

<style>
  .holding {
    padding: var(--space-l) var(--gutter) var(--section-space);
    background: var(--paper);
    color: var(--ink);
  }
  .holding__head {
    padding-top: var(--space-m);
    border-top: var(--hairline) solid var(--rule);
  }
  .holding__labels {
    display: grid;
    margin: 0 0 clamp(2.5rem, 7vw, 6rem);
    color: var(--ink-soft);
    font-size: var(--text-label);
    line-height: 1.4;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
  }
  .holding__name {
    max-width: 8ch;
    margin: 0;
    padding-bottom: var(--space-l);
    border-bottom: var(--hairline) solid var(--rule);
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: var(--track-display);
  }
  .holding__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7.5rem minmax(0, 1.6fr);
    grid-template-areas:
      "actions logo text"
      ". stats stats";
    gap: var(--space-m) var(--space-m);
    padding-top: var(--space-m);
  }
  .holding__actions {
    grid-area: actions;
    display: flex;
    gap: 0;
    margin: -0.5rem 0 0 -0.5rem;
    padding: 0;
    list-style: none;
  }
  .holding__icon {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    color: var(--ink);
  }
  .holding__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.25rem;
    border: var(--hairline) solid var(--ink);
    border-radius: var(--radius-round);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    transition: background-color var(--quick) var(--ease-colour), color var(--quick) var(--ease-colour);
  }
  .holding__icon--square svg {
    border-radius: var(--radius-box);
  }
  .holding__icon:hover svg {
    background: var(--ink);
    color: var(--paper);
  }
  .holding__logo {
    grid-area: logo;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.25rem;
    aspect-ratio: 1;
    margin: 0;
    background: var(--mist);
  }
  .holding__logo svg {
    width: 3.75rem;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.2;
  }
  .holding__logo figcaption {
    font-size: 0.5625rem;
    line-height: 1.1;
    letter-spacing: var(--track-label);
    text-align: center;
    text-transform: uppercase;
  }
  .holding__text {
    grid-area: text;
    max-width: 28rem;
    margin: 0;
    color: var(--ink-mid);
    font-size: var(--text-small);
    line-height: 1.45;
  }
  .holding__text a {
    color: var(--ink);
    text-decoration: none;
  }
  .holding__text a:hover {
    text-decoration: underline;
  }
  .holding__stats {
    grid-area: stats;
    max-width: 24rem;
    margin: var(--space-l) 0 0;
  }
  .holding__stat {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--row);
    font-size: var(--text-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
  }
  .holding__stat::before,
  .holding__stat:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: var(--hairline);
    background: var(--rule);
    transform-origin: left;
    transform: scaleX(var(--drawn, 1));
    transition: transform var(--slow) var(--ease);
  }
  .holding__stat::before { top: 0; }
  .holding__stat:last-child::after { bottom: 0; }
  .holding__stat dt { color: var(--ink-soft); }
  .holding__stat dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
  }
  .holding.is-waiting .holding__stat { --drawn: 0; }

  @media (max-width: 40rem) {
    .holding__body {
      grid-template-columns: 6rem minmax(0, 1fr);
      grid-template-areas:
        "actions actions"
        "logo text"
        "stats stats";
    }
    .holding__stats { max-width: none; }
  }
</style>

<script>
(() => {
  const still = matchMedia('(prefers-reduced-motion: reduce)');
  const duration = 1200;

  function countUp(number) {
    const target = Number(number.dataset.to);
    const start = performance.now();
    const tick = (now) => {
      const progress = Math.min(1, (now - start) / duration);
      const eased = 1 - Math.pow(1 - progress, 3);
      number.textContent = Math.round(target * eased);
      if (progress < 1) requestAnimationFrame(tick);
    };
    number.textContent = '0';
    requestAnimationFrame(tick);
  }

  const watcher = new IntersectionObserver((entries) => {
    for (const entry of entries) {
      if (!entry.isIntersecting) continue;
      watcher.unobserve(entry.target);
      entry.target.classList.remove('is-waiting');
      entry.target.querySelectorAll('.holding__number').forEach(countUp);
    }
  }, { threshold: 0.2 });

  document.querySelectorAll('.holding').forEach((root) => {
    if (still.matches) return;
    root.classList.add('is-waiting');
    watcher.observe(root);
  });
})();
</script>

Similar components

Wireframe and system status

Wireframe and system status

Numbers

Numbers

Essay

Essay

Text columns with small figures

Text columns with small figures

Statement with pictures

Statement with pictures

Insights

Insights

Lead entry

Lead entry

Table of contents with progress

Table of contents with progress