kitbash Sign in Connect agent
Components

Glass feature cards

Three rounded translucent cards with monotone photos that warm to colour on hover, mono index labels and short copy.

Part of the style

Cutting Mat Desk

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #e0e0e0;
  --night: #ebebeb;
  --cream: #0f0e0d;
  --cream-line: rgba(15, 14, 13, 0.302);
  --shade: rgba(248, 248, 248, 0.922);
  --signal: #b8380b;
  --cream-soft: rgba(255, 231, 225, 0.502);
  --paper: #1b0300;
  --desk: #a66d5d;
  --desk-deep: #9c7c73;
  --signal-glow: rgba(219, 73, 26, 0.2);
  --umber: #96766c;
  --mat: #ad7a6a;
  --mat-deep: #a97363;
  --cream-veil: rgba(169, 107, 80, 0.11);
}
</style>

<section class="features">
  <header class="features__head">
    <p class="features__kicker">Features</p>
    <h2 class="features__title">Three reasons it never sulks.</h2>
  </header>
  <div class="features__grid">
    <article class="features__card" tabindex="0">
      <span class="features__index">01 / Hold</span>
      <div class="features__frame">
        <img class="features__photo" style="object-position: 50% 12%" src="assets/compass-watch.jpg" alt="A silver pocket watch with a compass dial and a long chain" width="679" height="800" />
      </div>
      <h3 class="features__name">Settles in two seconds</h3>
      <p class="features__text">A damped needle that stops swinging before you stop walking.</p>
    </article>
    <article class="features__card" tabindex="0">
      <span class="features__index">02 / Read</span>
      <div class="features__frame">
        <img class="features__photo" src="assets/sextant-set.jpg" alt="A brass sextant, telescope and boxed compass on soft leather" width="800" height="574" />
      </div>
      <h3 class="features__name">A dial for bad light</h3>
      <p class="features__text">Deep-cut numerals that catch any glow, from dusk to a phone screen.</p>
    </article>
    <article class="features__card" tabindex="0">
      <span class="features__index">03 / Keep</span>
      <div class="features__frame">
        <img class="features__photo" style="object-position: 50% 18%" src="assets/compass-equinoctial.jpg" alt="An engraved brass compass dial seen from above" width="1200" height="1181" />
      </div>
      <h3 class="features__name">Outlives its owner</h3>
      <p class="features__text">Solid brass, one screw, no battery. Hand it on, not in.</p>
    </article>
  </div>
</section>

<style>
  .features {
    padding: var(--section-space) var(--edge);
    background: var(--page);
    color: var(--cream);
  }
  .features__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-s) var(--gap);
    margin-bottom: var(--space-l);
  }
  .features__kicker,
  .features__index {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream-soft);
  }
  .features__kicker::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: var(--space-s);
    border-radius: 50%;
    background: var(--signal);
    vertical-align: 2px;
  }
  .features__title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.05;
    text-transform: uppercase;
  }
  .features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
  }
  .features__card {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-s) var(--space-l);
    border: var(--rule) solid transparent;
    border-radius: var(--radius-card);
    background: var(--cream-veil);
    transition: border-color var(--border-time) var(--ease-plain);
    outline: none;
  }
  .features__card:hover,
  .features__card:focus-visible {
    border-color: var(--cream-line);
  }
  .features__index {
    padding: var(--space-s) var(--space-m) 0;
  }
  .features__frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-frame);
    overflow: hidden;
    background: var(--paper);
  }
  .features__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.15);
    transform: scale(1.02);
    transition: filter var(--slow) var(--ease-plain), transform var(--time) var(--ease-plain);
  }
  .features__card:hover .features__photo,
  .features__card:focus-visible .features__photo {
    filter: grayscale(0) contrast(1);
    transform: scale(1.06);
  }
  .features__name {
    margin: var(--space-s) var(--space-m) 0;
    font-size: var(--text-l);
    font-weight: 500;
    line-height: 1.2;
  }
  .features__text {
    margin: 0 var(--space-m);
    max-width: 30ch;
    font-size: var(--text-s);
    line-height: 1.6;
    color: var(--cream-soft);
  }

  @media (max-width: 860px) {
    .features__grid { grid-template-columns: minmax(0, 1fr); }
    .features__card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: var(--space-s); }
    .features__frame { grid-row: 1 / -1; aspect-ratio: 1; }
    .features__index { padding: var(--space-s) 0 0; }
    .features__name, .features__text { margin-inline: 0; }
  }
  @media (max-width: 480px) {
    .features__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: var(--space-m); }
    .features__frame { grid-row: auto; aspect-ratio: 4 / 3; }
    .features__index, .features__name, .features__text { padding-inline: var(--space-s); }
  }
</style>

Similar components

Hairline feature grid

Hairline feature grid

Feature cells

Feature cells

Three-step panel

Three-step panel

Colour specimen

Colour specimen

Card rail

Card rail

Edition slips

Edition slips

Specimen cards

Specimen cards

Selected work cards

Selected work cards