fin1te/dsv1.0.0
  1. ds
  2. Components
  3. Card

Card

A bordered surface. Use rows first.

Show code
<div class="cards">
  <a class="card" href="#">
    <p class="label">Case study</p>
    <h3>Spark to Rust</h3>
    <p>Same jobs, a third of the memory.</p>
  </a>
  <a class="card" href="#">
    <p class="label">Deep dive</p>
    <h3>ClickHouse sort keys</h3>
    <p>How the first column decides what gets read.</p>
  </a>
  <div class="card sunk">
    <p class="label">Draft</p>
    <h3>Coming next</h3>
    <p>A sunk card is not clickable.</p>
  </div>
</div>

Linked cards turn their title purple on hover. A card is a surface with a hairline border and a 10px radius; it never carries a shadow on fin1te.com.

Before you reach for cards, check whether the items are really peers in a grid. Most lists on the two sites are rows.

ClassOnWhat it does
.carddiv, aBordered surface with padding.
.sunk.cardOn --bg-sunk, for inactive or secondary items.
.flat.cardRule on top only, no box.
.cardsdivResponsive grid of cards, 16rem minimum.