Service cells
Tall ruled cells as tabs; the active one fills grey and swaps the description below.
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/services/figma.html?type=cut-out-playhouse
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/graphite-split-index/services/figma.html?type=cut-out-playhouse and pass that whole HTML document to the html_to_figma tool, so the part "Service cells" 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 */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;700&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap");
:root {
--font-display: "Newsreader", "Georgia", serif;
--font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
</style>
<section class="services">
<div class="services__card">
<p class="services__tag"><span class="services__pixel" aria-hidden="true"></span><span class="services__num">4</span>Services</p>
<div class="services__cells" role="tablist" aria-label="Services">
<button class="services__cell is-active" type="button" role="tab" aria-selected="true" data-panel="0"><span class="services__label">Object design</span><span class="services__tri" aria-hidden="true"></span></button>
<button class="services__cell" type="button" role="tab" aria-selected="false" data-panel="1"><span class="services__label">Prototypes</span><span class="services__tri" aria-hidden="true"></span></button>
<button class="services__cell" type="button" role="tab" aria-selected="false" data-panel="2"><span class="services__label">Names & marks</span><span class="services__tri" aria-hidden="true"></span></button>
<button class="services__cell" type="button" role="tab" aria-selected="false" data-panel="3"><span class="services__label">Small runs</span><span class="services__tri" aria-hidden="true"></span></button>
</div>
<div class="services__panels">
<p class="services__text is-active" role="tabpanel">We take an object from a sketch on a napkin to a drawing a factory can quote on: form, material, joints and the way it is packed.</p>
<p class="services__text" role="tabpanel">Full-size models in wood, card and blown glass, built in our own workshop so you can sit on it, switch it on or drop it before it costs anything.</p>
<p class="services__text" role="tabpanel">Names, marks and the small print stamped into the product, drawn by the same hands that drew the object.</p>
<p class="services__text" role="tabpanel">Batches of fifty to five hundred, made with workshops we know by name, for brands testing an idea before a full run.</p>
</div>
</div>
</section>
<style>
.services {
padding: var(--band);
background: var(--paper);
}
.services__card {
display: grid;
gap: var(--space-l);
padding: var(--space-s) var(--edge) var(--space-xl);
border-radius: var(--radius);
background: var(--panel);
color: var(--on-panel);
}
.services__tag {
display: flex;
align-items: center;
gap: var(--space-xs);
margin: 0;
font-size: var(--text-s);
}
.services__pixel {
position: relative;
width: 20px;
height: 20px;
border-radius: var(--radius-s);
background: var(--on-panel);
}
.services__pixel::after {
content: "";
position: absolute;
inset: 5px;
background:
linear-gradient(var(--panel), var(--panel)) 0 0 / 4px 4px no-repeat,
linear-gradient(var(--panel), var(--panel)) 100% 0 / 4px 4px no-repeat,
linear-gradient(var(--panel), var(--panel)) 50% 50% / 4px 4px no-repeat,
linear-gradient(var(--panel), var(--panel)) 0 100% / 4px 4px no-repeat,
linear-gradient(var(--panel), var(--panel)) 100% 100% / 4px 4px no-repeat;
}
.services__num {
display: grid;
place-items: center;
width: 20px;
height: 20px;
margin-right: var(--space-s);
border-radius: var(--radius-pill);
background: var(--on-panel-mute);
color: var(--on-panel-soft);
}
.services__cells {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
border-block: var(--rule) solid var(--panel-line);
}
.services__cell {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-s);
min-height: clamp(140px, 18vw, 240px);
padding: 0 var(--edge);
border: 0;
border-left: var(--rule) solid var(--panel-line);
background: transparent;
color: var(--ink-mute);
font: inherit;
font-size: var(--text-s);
text-align: left;
cursor: pointer;
transition: background-color var(--fade) var(--ease), color var(--fade) var(--ease);
}
.services__cell:last-child { border-right: var(--rule) solid var(--panel-line); }
.services__cell:hover { color: var(--on-panel-soft); }
.services__cell.is-active { background: var(--panel-raised); color: var(--on-panel); }
.services__cell:focus-visible { outline: var(--rule) solid var(--on-panel); outline-offset: -4px; }
.services__tri {
width: 7px;
height: 8px;
background: currentColor;
clip-path: polygon(0 0, 100% 50%, 0 100%);
opacity: 0;
translate: -6px 0;
transition: opacity var(--fade) var(--ease), translate var(--slow) var(--ease-swap);
}
.services__cell.is-active .services__tri { opacity: 1; translate: 0 0; }
.services__panels { display: grid; }
.services__text {
grid-area: 1 / 1;
max-width: 48ch;
margin: 0;
color: var(--ink-mute);
font-size: var(--text-s);
line-height: 1.25;
opacity: 0;
visibility: hidden;
transition: opacity var(--fade) var(--ease), visibility 0s linear var(--fade);
}
.services__text.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 760px) {
.services__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services__cell { min-height: 96px; border-bottom: var(--rule) solid var(--panel-line); }
.services__cell:nth-child(2n) { border-right: var(--rule) solid var(--panel-line); }
.services__card { padding-bottom: var(--space-l); }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.services')) {
const cells = [...root.querySelectorAll('.services__cell')];
const texts = [...root.querySelectorAll('.services__text')];
cells.forEach((cell, index) => {
cell.addEventListener('click', () => {
cells.forEach((other, at) => {
other.classList.toggle('is-active', at === index);
other.setAttribute('aria-selected', String(at === index));
texts[at].classList.toggle('is-active', at === index);
});
});
});
}
})();
</script>