Object cards
Grey rounded cards, each with a greyscale still life multiplied into the stage, a title, a meta line and a small step-dot pill that runs through its steps on hover.
Part of the style
Soft Pill Console
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/soft-pill-console/recipes/figma.html?palette=705e90a3e7b73cff
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/soft-pill-console/recipes/figma.html?palette=705e90a3e7b73cff and pass that whole HTML document to the html_to_figma tool, so the part "Object cards" 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 {
--paper: #cbe5f1;
--stage: #bed8e3;
--well: #b5cfda;
--fill: #9db6c2;
--dot: #aac3ce;
--chip: #cbe5f1;
--ink: #161103;
--ink-2: #36301f;
--ink-soft: #534d3a;
--ink-mute: #7b7561;
--ink-faint: #7e96a1;
--night: #090600;
--night-2: #110c01;
--on-night: #c1dbe7;
--on-night-soft: #687f8a;
--line: rgba(22, 17, 3, 0.14);
}
</style>
<section class="recipes">
<div class="recipes__head">
<h2 class="recipes__title">This week's bakes</h2>
<a class="recipes__more" href="#">All recipes</a>
</div>
<ul class="recipes__grid">
<li class="recipes__card">
<a class="recipes__link" href="#" data-steps="5">
<span class="recipes__frame">
<img class="recipes__img" src="assets/loaf-mackerel.jpg" alt="A painted still life of a crusty loaf, fish and glassware on a white cloth" width="800" height="644" loading="lazy">
</span>
<span class="recipes__body">
<span class="recipes__name">Country loaf</span>
<span class="recipes__meta">5 steps · 26 hours</span>
<span class="recipes__dots" aria-hidden="true"></span>
</span>
</a>
</li>
<li class="recipes__card">
<a class="recipes__link" href="#" data-steps="4">
<span class="recipes__frame">
<img class="recipes__img recipes__img--object" src="assets/met-bowl.jpg" alt="A porcelain bowl with a painted scroll border on a plain ground" width="800" height="558" loading="lazy">
</span>
<span class="recipes__body">
<span class="recipes__name">Custard in a bowl</span>
<span class="recipes__meta">4 steps · 50 minutes</span>
<span class="recipes__dots" aria-hidden="true"></span>
</span>
</a>
</li>
<li class="recipes__card">
<a class="recipes__link" href="#" data-steps="6">
<span class="recipes__frame">
<img class="recipes__img" src="assets/artichoke-bowl.jpg" alt="A painted still life of artichokes, cherries and peaches in a footed bowl" width="800" height="571" loading="lazy">
</span>
<span class="recipes__body">
<span class="recipes__name">Stone fruit galette</span>
<span class="recipes__meta">6 steps · 2 hours</span>
<span class="recipes__dots" aria-hidden="true"></span>
</span>
</a>
</li>
<li class="recipes__card">
<a class="recipes__link" href="#" data-steps="3">
<span class="recipes__frame">
<img class="recipes__img recipes__img--top" src="assets/clay-bowl.jpg" alt="A blue and white bowl seen from above in a museum case" width="533" height="800" loading="lazy">
</span>
<span class="recipes__body">
<span class="recipes__name">Rice pudding</span>
<span class="recipes__meta">3 steps · 1 hour</span>
<span class="recipes__dots" aria-hidden="true"></span>
</span>
</a>
</li>
</ul>
</section>
<style>
.recipes {
max-width: 1280px;
margin: 0 auto;
padding: var(--space-xl) var(--edge) var(--section-space);
}
.recipes__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-m);
margin-bottom: var(--space-l);
}
.recipes__title {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: 500;
letter-spacing: var(--tracking-tight);
line-height: 1.1;
}
.recipes__more {
display: inline-flex;
flex: none;
align-items: center;
min-height: var(--control-h);
padding: 0 var(--space-l);
border: var(--hairline) solid var(--line);
border-radius: var(--pill);
color: var(--ink-2);
font-size: var(--text-m);
text-decoration: none;
transition: background var(--quick) var(--ease);
}
.recipes__more:hover { background: var(--stage); }
.recipes__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.recipes__link {
display: flex;
flex-direction: column;
height: 100%;
padding: var(--space-s);
border-radius: var(--radius-stage);
background: var(--stage);
color: inherit;
text-decoration: none;
}
.recipes__link:focus-visible,
.recipes__more:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.recipes__frame {
display: block;
aspect-ratio: 4 / 3.4;
overflow: hidden;
border-radius: calc(var(--radius-stage) - var(--space-s));
background: var(--stage);
}
/* The house treatment: no colour, lifted greys, multiplied into the stage so the picture lies on it. */
.recipes__img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) brightness(1.3) contrast(0.86);
mix-blend-mode: multiply;
transition: scale 0.6s var(--spring-soft);
}
.recipes__img--object { object-fit: contain; padding: 8%; filter: grayscale(1) brightness(1.08) contrast(1.05); }
.recipes__img--top { object-position: 50% 12%; }
.recipes__link:hover .recipes__img { scale: 1.04; }
.recipes__body {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 2px var(--space-m);
padding: var(--space-m) var(--space-s) var(--space-s);
}
.recipes__name {
color: var(--ink);
font-size: var(--text-base);
font-weight: 500;
}
.recipes__meta {
grid-row: 2;
color: var(--ink-mute);
font-size: var(--text-s);
}
.recipes__dots {
grid-row: 1 / span 2;
grid-column: 2;
display: flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 10px;
border-radius: var(--pill);
background: var(--chip);
}
.recipes__dot {
width: 6px;
height: 6px;
border-radius: var(--pill);
background: var(--dot);
transition: width var(--time) var(--spring), background var(--quick) var(--ease);
}
.recipes__dot.is-active { width: 20px; background: var(--ink); }
.recipes__dot.is-done { background: var(--ink); }
@media (max-width: 64rem) {
.recipes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
.recipes__grid { grid-template-columns: minmax(0, 1fr); }
.recipes__frame { aspect-ratio: 16 / 10; }
}
</style>
<script>
(() => {
const still = window.matchMedia("(prefers-reduced-motion: reduce)");
document.querySelectorAll(".recipes").forEach((root) => {
root.querySelectorAll(".recipes__link").forEach((link) => {
const holder = link.querySelector(".recipes__dots");
const total = Number(link.dataset.steps) || 4;
const dots = Array.from({ length: total }, () => {
const dot = document.createElement("span");
dot.className = "recipes__dot";
holder.append(dot);
return dot;
});
let timer = 0;
const show = (at) => dots.forEach((dot, i) => {
dot.classList.toggle("is-active", i === at);
dot.classList.toggle("is-done", i < at);
});
const start = () => {
if (timer) return;
let at = 0;
show(at);
if (still.matches) return;
timer = setInterval(() => { at = (at + 1) % total; show(at); }, 520);
};
const stop = () => { clearInterval(timer); timer = 0; show(0); };
link.addEventListener("pointerenter", start);
link.addEventListener("focus", start);
link.addEventListener("pointerleave", stop);
link.addEventListener("blur", stop);
show(0);
});
});
})();
</script>