Case index
Grid of object pictures on grey, each with a spread meta row and a plus chip that opens a short note.
Part of the style
Graphite Split Index
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/graphite-split-index/cases/figma.html?palette=ad89fb87e0807f19
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/graphite-split-index/cases/figma.html?palette=ad89fb87e0807f19 and pass that whole HTML document to the html_to_figma tool, so the part "Case index" 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 {
--ink: #445045;
--paper: #ffffff;
--ink-mute: #73716b;
--chip: #f4f4f3;
--stage: #c7c5c0;
--panel: #646f65;
--panel-raised: #101811;
--panel-line: #768077;
--on-panel: #f6f6f5;
--on-panel-soft: #e3e2e0;
--on-panel-mute: #5e655f;
--glass: rgba(152, 159, 152, 0.55);
--signal: #378f46;
}
</style>
<section class="cases">
<article class="cases__item">
<div class="cases__frame"><img class="cases__img" src="assets/lamp-b.jpg" alt="Bell-shaped glass lamp with a long stem" width="683" height="800"></div>
<div class="cases__meta">
<div class="cases__name">
<h3 class="cases__title">Kesselring Lamps</h3>
<p class="cases__line">Light that waits up</p>
</div>
<p class="cases__kind">Product Design</p>
<p class="cases__year">2025</p>
<button class="cases__more" type="button" aria-expanded="false" aria-label="Show the note on Kesselring Lamps"><span class="cases__plus"></span></button>
<div class="cases__note"><p class="cases__note-text">A hanging lamp blown in one breath, with a stem that hides the cable and keeps the glass free of fittings.</p></div>
</div>
</article>
<article class="cases__item">
<div class="cases__frame"><img class="cases__img" src="assets/clock.jpg" alt="Ornate gilded table clock" width="843" height="1091"></div>
<div class="cases__meta">
<div class="cases__name">
<h3 class="cases__title">Oda Clocks</h3>
<p class="cases__line">Time, kept loosely</p>
</div>
<p class="cases__kind">Identity & Object</p>
<p class="cases__year">2024</p>
<button class="cases__more" type="button" aria-expanded="false" aria-label="Show the note on Oda Clocks"><span class="cases__plus"></span></button>
<div class="cases__note"><p class="cases__note-text">An old clockmaker's archive turned into a name, a typeface for dials and three new movements.</p></div>
</div>
</article>
<article class="cases__item">
<div class="cases__frame"><img class="cases__img" src="assets/lamp.jpg" alt="Enamelled glass lamp with a flared neck" width="831" height="1200"></div>
<div class="cases__meta">
<div class="cases__name">
<h3 class="cases__title">Morrow Glass</h3>
<p class="cases__line">Thin walls, long evenings</p>
</div>
<p class="cases__kind">Packaging</p>
<p class="cases__year">2023</p>
<button class="cases__more" type="button" aria-expanded="false" aria-label="Show the note on Morrow Glass"><span class="cases__plus"></span></button>
<div class="cases__note"><p class="cases__note-text">Boxes that open flat into a stand, so the shop shelf becomes the first display.</p></div>
</div>
</article>
</section>
<style>
.cases {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
padding: var(--band);
background: var(--paper);
color: var(--ink);
}
.cases__frame {
aspect-ratio: 4 / 5;
overflow: hidden;
border-radius: var(--radius);
background: var(--stage);
}
.cases__img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) contrast(1.15);
mix-blend-mode: multiply;
transform: scale(1.02);
transition: transform var(--slow) var(--ease-swap);
}
.cases__item:hover .cases__img { transform: scale(1.08); }
.cases__meta {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto 44px;
align-items: start;
gap: 0 var(--gap);
padding: var(--space-xs) 0 var(--space-l);
font-size: var(--text-s);
line-height: 1.17;
}
.cases__meta p, .cases__title { margin: 0; font: inherit; }
.cases__line { color: var(--ink-mute); }
.cases__year { text-align: right; }
.cases__more {
display: grid;
place-items: center;
width: 44px;
height: 44px;
margin: -12px 0 0;
padding: 0;
border: 0;
background: none;
cursor: pointer;
}
.cases__more:focus-visible { outline: var(--rule) solid var(--ink); outline-offset: -6px; }
.cases__plus {
position: relative;
display: block;
width: 26px;
height: 26px;
border-radius: var(--radius-s);
background: var(--chip);
transition: background-color var(--quick) var(--ease);
}
.cases__more:hover .cases__plus { background: var(--stage); }
.cases__plus::before, .cases__plus::after {
content: "";
position: absolute;
inset: 0;
margin: auto;
width: 12px;
height: var(--rule);
background: var(--ink);
transition: transform var(--slow) var(--ease-swap);
}
.cases__plus::after { transform: rotate(90deg); }
.cases__item.is-open .cases__plus::before { transform: rotate(45deg); }
.cases__item.is-open .cases__plus::after { transform: rotate(135deg); }
.cases__note {
grid-column: 1 / -1;
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--slow) var(--ease-swap);
}
.cases__item.is-open .cases__note { grid-template-rows: 1fr; }
.cases__note-text { overflow: hidden; max-width: 36ch; color: var(--ink-mute); }
.cases__note-text::before { content: ""; display: block; height: var(--space-s); }
@media (max-width: 760px) {
.cases { grid-template-columns: minmax(0, 1fr); }
.cases__frame { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
.cases__img { transition: none; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.cases')) {
root.querySelectorAll('.cases__item').forEach((item) => {
const more = item.querySelector('.cases__more');
more.addEventListener('click', () => {
const open = item.classList.toggle('is-open');
more.setAttribute('aria-expanded', String(open));
});
});
}
})();
</script>