kitbash Sign in Connect agent
Components

Grey card rail

Centred headline with a two-grey lead, then three light grey cards each with a white date chip, a small black screen holding a picture and a mono meta line below.

Part of the style

Tile Ring Blackroom

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #1e1b11;
  --night-raised: #242115;
  --night-chip: #302c1d;
  --white: #d1ad7a;
  --card: #c9a675;
  --ink: #1e1b11;
  --ash: #a28967;
  --line: #363120;
  --line-light: #b9996c;
  --lime: #b3826b;
  --chartreuse: #8a5d48;
  --mint: #8a6043;
  --sky: #8d5f49;
}
</style>

<section class="collection">
  <header class="collection__head">
    <h2 class="collection__title">Better harvests, without the guesswork</h2>
    <p class="collection__lead">Grow standout plants <span class="collection__soft">in any patch of soil,</span> without the trial and error. <span class="collection__soft">Every packet comes with</span> a sowing card and a grower's note.</p>
  </header>
  <ul class="collection__rail">
    <li class="collection__item">
      <a class="collection__card" href="#">
        <span class="collection__chip">Added 3 days ago</span>
        <span class="collection__screen"><img class="collection__picture" src="assets/poppy-field.jpg" alt="A poppy field below a row of poplars" width="800" height="520"></span>
      </a>
      <p class="collection__meta"><span class="collection__number">212</span>Field poppy, sun, autumn sowing</p>
    </li>
    <li class="collection__item">
      <a class="collection__card" href="#">
        <span class="collection__chip">Added 1 week ago</span>
        <span class="collection__screen"><img class="collection__picture" src="assets/pears-lemons.jpg" alt="Grapes, pears and lemons on a cloth" width="800" height="662"></span>
      </a>
      <p class="collection__meta"><span class="collection__number">211</span>Dwarf pear, pips, cold start</p>
    </li>
    <li class="collection__item">
      <a class="collection__card" href="#">
        <span class="collection__chip">Added 2 weeks ago</span>
        <span class="collection__screen"><img class="collection__picture" src="assets/sunflowers.jpg" alt="Two sunflower heads in a vase" width="617" height="800"></span>
      </a>
      <p class="collection__meta"><span class="collection__number">210</span>Giant sunflower, spring</p>
    </li>
  </ul>
</section>

<style>
  .collection {
    padding: var(--section-space) var(--edge);
    background: var(--night);
    color: var(--white);
  }
  .collection__head {
    max-width: 560px;
    margin: 0 auto var(--space-l);
    text-align: center;
  }
  .collection__title {
    margin: 0 0 var(--space-m);
    font: var(--weight) var(--display-m)/var(--leading-tight) var(--font-display);
    letter-spacing: var(--track-tight);
    text-wrap: balance;
  }
  .collection__lead {
    margin: 0;
    font-size: var(--text-m);
    line-height: 1.4;
    text-wrap: balance;
  }
  .collection__soft { color: var(--ash); }
  .collection__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .collection__card {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 15%;
    border-radius: var(--radius-l);
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    outline-offset: 3px;
  }
  .collection__chip {
    position: absolute;
    top: var(--gap);
    left: var(--gap);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: var(--white);
    font: var(--weight) var(--text-xs)/1 var(--font-mono);
    text-transform: uppercase;
    transition: background-color var(--quick) ease;
  }
  .collection__card:hover .collection__chip { background: var(--lime); }
  .collection__screen {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-s);
    background: var(--night);
  }
  .collection__picture {
    width: 42%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: width var(--slow) var(--ease), aspect-ratio var(--slow) var(--ease);
  }
  .collection__card:hover .collection__picture,
  .collection__card:focus-visible .collection__picture {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .collection__meta {
    margin: var(--space-s) 0 0;
    font: var(--weight) var(--text-xs)/1.4 var(--font-mono);
    text-transform: uppercase;
  }
  .collection__number { display: block; }

  @media (max-width: 760px) {
    .collection__rail {
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: 86%;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      margin: 0 calc(var(--edge) * -1);
      padding: 0 var(--edge);
      scrollbar-width: none;
    }
    .collection__item { scroll-snap-align: center; }
    .collection__card { aspect-ratio: 4 / 5; padding: 8%; }
  }
</style>

Similar components

Two-up entry cards

Two-up entry cards

Selected work cards

Selected work cards

App tiles

App tiles

Route notes

Route notes

Object cards

Object cards

Coming-soon card

Coming-soon card

Three-up long tail

Three-up long tail

Hairline feature grid

Hairline feature grid