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.
https://kitbash.me/components/tile-ring-blackroom/collection/figma.html?palette=5504e7e266ee8244
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/tile-ring-blackroom/collection/figma.html?palette=5504e7e266ee8244 and pass that whole HTML document to the html_to_figma tool, so the part "Grey card rail" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--night: #ffffff;
--night-raised: #faf7ef;
--night-chip: #f1e8cf;
--white: #6603dd;
--card: #6b23df;
--ink: #ffffff;
--ash: #7359c7;
--line: #ede2c2;
--line-light: #7441e4;
--lime: #1d7f23;
--chartreuse: #2aa631;
--mint: #289d89;
--sky: #6da125;
}
</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>