Feature cells
A manual sheet with a 64px mono chapter title, a wide feature row and a ruled 2 by 2 grid of features with orange outlined icon tiles; a two-cap switch device hangs over the sheet edge and turns the speaker on or off.
Part of the style
Owner's Manual on Marble
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/owners-manual-on-marble/features/figma.html?palette=d2e0f716c6febc19&type=difference-deck
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/owners-manual-on-marble/features/figma.html?palette=d2e0f716c6febc19&type=difference-deck and pass that whole HTML document to the html_to_figma tool, so the part "Feature 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=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
--marble: #f15b29;
--marble-vein: #be4923;
--paper: #feefeb;
--paper-hover: #f86231;
--frost: rgba(250, 115, 73, 0.75);
--frost-edge: #fa7349;
--ink-full: #1d0c0b;
--ink-dark: rgba(29, 12, 11, 0.75);
--ink-light: rgba(29, 12, 11, 0.5);
--ink-lightest: rgba(29, 12, 11, 0.25);
--device-case: #fc825d;
--edge-grey: #bf4923;
--device-text: #420c0e;
--device-frame: rgba(29, 12, 11, 0.85);
--box-sand: #eb5928;
--box-line: #fa7349;
--veil: #1d0c0b;
--scrim: rgba(29, 12, 11, 0.49);
--signal: #7f0601;
--box-orange: #b1695e;
--font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
--font-mono: "Chivo Mono", ui-monospace, monospace;
}
</style>
<section class="features" aria-labelledby="features-title">
<article class="features__sheet">
<div class="features__switch" role="radiogroup" aria-label="Speaker">
<button class="features__cap" type="button" role="radio" aria-checked="true" aria-label="Speaker on" data-state="on"><span class="features__slot"><span class="features__pill"></span></span></button>
<button class="features__cap" type="button" role="radio" aria-checked="false" aria-label="Speaker off" data-state="off"><span class="features__slot"><span class="features__pill"></span></span></button>
</div>
<header class="features__chapter">
<h2 class="features__title" id="features-title">Features</h2>
<p class="features__lead">Your <b>Loll™</b> ships with a carefully overthought set of small rituals, each one designed to fill the gap between now and nearly.</p>
<p class="features__status" aria-live="polite">Speaker <span class="features__state">on</span></p>
</header>
<div class="features__wide">
<span class="features__tile features__tile--round" aria-hidden="true">
<svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="11"></circle><path d="M9.5 1.8v20.4M14.5 1.8v20.4"></path><circle class="features__fill" cx="12" cy="5" r="1.3"></circle></svg>
</span>
<div>
<h3 class="features__name">The brew dial</h3>
<p class="features__text">The knob is the slow heart of your <b>Loll™</b>. Turn it from Simmer to Whistle and every other feature changes its manners to match, from quiet company at the window to a small brass band on the worktop.</p>
<p class="features__text">Finally, a wait you can actually adjust.</p>
</div>
</div>
<div class="features__grid">
<div class="features__cell">
<span class="features__tile" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M4 15a8 4 0 0 0 16 0z"></path><path d="M9 11c-1.5-1.5 1.5-3 0-5M13 11c-1.5-1.5 1.5-3 0-5M17 11c-1.5-1.5 1.5-3 0-5"></path></svg></span>
<h3 class="features__name">Steam alarm</h3>
<p class="features__text">A soft whistle eleven seconds before the kettle clicks, so you can stand up slowly and arrive looking calm.</p>
</div>
<div class="features__cell">
<span class="features__tile" aria-hidden="true"><svg viewBox="0 0 24 24"><rect x="3" y="9" width="18" height="6" rx="3"></rect><path d="M6 12h8"></path></svg></span>
<h3 class="features__name">Progress fib</h3>
<p class="features__text">Turns any upload bar into a kind story about how nearly done it is. Accurate to within one cup of tea.</p>
</div>
<div class="features__cell">
<span class="features__tile" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M7 19v-7.5A3.5 3.5 0 0 1 8.5 5h7a3.5 3.5 0 0 1 1.5 6.5V19z"></path><path d="M10 12h.01M14 14h.01"></path></svg></span>
<h3 class="features__name">Toast watch</h3>
<p class="features__text">Learns the colour you like and taps the table twice when the bread gets there. Rye takes a little practice.</p>
</div>
<div class="features__cell">
<span class="features__tile features__tile--wide" aria-hidden="true"><svg viewBox="0 0 24 24"><circle class="features__fill" cx="7" cy="12" r="1.5"></circle><circle class="features__fill" cx="12" cy="12" r="1.5"></circle><circle class="features__fill" cx="17" cy="12" r="1.5"></circle></svg></span>
<h3 class="features__name">Typing…</h3>
<p class="features__text">Glows when the other person starts a reply and dims politely when they think better of it.</p>
</div>
</div>
<div class="features__foot"></div>
</article>
</section>
<style>
.features {
position: relative;
overflow: hidden;
padding: 0 var(--space-m) 90px;
background: var(--marble) var(--marble-texture) center / cover;
}
.features__sheet {
position: relative;
max-width: var(--sheet-width);
margin: 0 auto;
padding: 0 var(--gutter-outer);
border-radius: 0 0 var(--radius-sheet) var(--radius-sheet);
background: var(--paper) var(--paper-texture);
box-shadow: var(--shadow-sheet);
}
.features__chapter,
.features__wide,
.features__grid,
.features__foot {
border: solid var(--ink-lightest);
border-width: 0 var(--rule) var(--rule);
}
.features__foot { height: 100px; border-bottom: 0; }
.features__chapter { padding: var(--space-xl) var(--gutter-inner) var(--space-l); }
.features__title {
margin: 0;
padding-bottom: var(--space-m);
color: var(--ink-dark);
font: 400 var(--display) / 1.2 var(--font-mono);
}
.features__lead {
max-width: 29em;
margin: var(--space-m) 0 0;
font-size: var(--text-body);
line-height: var(--leading-body);
text-wrap: pretty;
}
.features__lead b,
.features__text b { color: var(--ink-dark); font-weight: 700; }
.features__status {
margin: var(--space-m) 0 0;
color: var(--ink-lightest);
font: 400 var(--text-label) / 1.6 var(--font-mono);
letter-spacing: var(--meta-track);
}
.features__state { color: var(--ink-light); }
.features__wide {
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
gap: 20px;
padding: var(--space-l) var(--gutter-inner);
}
.features__wide .features__name { min-height: 48px; display: flex; align-items: center; padding: 0; }
.features__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
border-bottom: 0;
}
.features__cell {
padding: var(--space-l) var(--gutter-inner);
border-bottom: var(--rule) solid var(--ink-lightest);
}
.features__cell:nth-child(odd) { border-right: var(--rule) solid var(--ink-lightest); }
.features__tile {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border: var(--rule) solid var(--ink-lightest);
border-radius: var(--radius-key);
color: var(--signal);
}
.features__tile--round { border: 0; border-radius: 50%; color: var(--ink-light); }
.features__tile--wide { height: 32px; }
.features__tile svg {
width: 24px;
height: 24px;
fill: none;
stroke: currentColor;
stroke-width: 1.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.features__tile--round svg { width: 48px; height: 48px; stroke-width: 1; }
.features__fill { fill: var(--signal); stroke: none; }
.features__name {
margin: 0;
padding: 30px 0;
color: var(--ink-dark);
font: 700 var(--title-l) / normal var(--font-mono);
letter-spacing: var(--title-track);
text-transform: uppercase;
}
.features__text {
margin: 0 0 15px;
font-size: var(--text-small);
line-height: var(--leading-body);
text-wrap: pretty;
}
.features__wide .features__text { margin-top: 15px; margin-bottom: 0; }
.features__switch {
position: absolute;
z-index: 2;
top: 72px;
right: clamp(-96px, calc((var(--sheet-width) - 100vw) / 2 + 24px), -16px);
display: grid;
padding: 14px 22px;
border-radius: var(--radius-plate);
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.07)), var(--device-case);
box-shadow: inset 0 -3px 2px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-plate);
rotate: -10deg;
}
.features__cap {
display: grid;
place-items: center;
width: 86px;
height: var(--tap);
padding: 0;
border: 0;
background: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.features__cap + .features__cap { translate: 6px 0; }
.features__cap:focus-visible { outline: none; }
.features__cap:focus-visible .features__slot { outline: var(--rule) solid var(--signal); outline-offset: 3px; }
.features__slot {
display: block;
padding: 1.5px;
border-radius: var(--radius-pill);
background: var(--device-frame);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.features__pill {
display: block;
width: 72px;
height: 26px;
border-radius: var(--radius-pill);
background: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.11) 70%, rgba(0, 0, 0, 0.12)), var(--device-case);
box-shadow: inset 0 -2px 1px rgba(0, 0, 0, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.41);
transition: transform var(--t-switch) var(--ease-switch), filter var(--t-switch) var(--ease-switch), background-color var(--t-switch) var(--ease-switch);
}
.features__cap[aria-checked="true"] .features__pill {
background: linear-gradient(rgba(255, 255, 255, 0.24), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.1)), var(--signal);
}
.features__cap.is-pressed .features__pill {
filter: brightness(0.9);
transform: translateY(3px) scale(0.95);
}
@media (max-width: 600px) {
.features { padding-inline: 12px; }
.features__chapter { padding-top: 140px; }
.features__switch { top: 24px; right: 18px; }
.features__grid { grid-template-columns: minmax(0, 1fr); }
.features__cell:nth-child(odd) { border-right: 0; }
.features__wide { grid-template-columns: minmax(0, 1fr); }
}
</style>
<script>
(() => {
document.querySelectorAll('.features').forEach((root) => {
const caps = [...root.querySelectorAll('.features__cap')];
const state = root.querySelector('.features__state');
const release = (cap) => cap.classList.remove('is-pressed');
const choose = (cap) => {
caps.forEach((other) => other.setAttribute('aria-checked', String(other === cap)));
state.textContent = cap.dataset.state;
};
caps.forEach((cap, index) => {
cap.addEventListener('pointerdown', () => cap.classList.add('is-pressed'));
['pointerup', 'pointerleave', 'pointercancel', 'blur'].forEach((type) => cap.addEventListener(type, () => release(cap)));
cap.addEventListener('click', () => choose(cap));
cap.addEventListener('keydown', (event) => {
const move = { ArrowDown: 1, ArrowRight: 1, ArrowUp: -1, ArrowLeft: -1 }[event.key];
if (!move) return;
event.preventDefault();
const next = caps[(index + move + caps.length) % caps.length];
next.focus();
choose(next);
});
});
});
})();
</script>