Focus rows
Hairline rows of large titles with mono tags; hovering or opening a row fades it to black and slides out an orange duotone picture.
Part of the style
Ember Silhouette Wireframe
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/ember-silhouette-wireframe/focus/figma.html?palette=e974c052fcd4f2b4
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/ember-silhouette-wireframe/focus/figma.html?palette=e974c052fcd4f2b4 and pass that whole HTML document to the html_to_figma tool, so the part "Focus rows" 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: #e3e3e3;
--ink: #28171c;
--ink-mid: #716468;
--ink-soft: #66635a;
--ink-faint: #a7a59f;
--rule: #d1d1cf;
--cream: #d3d2d1;
--night: #fee7ed;
--smoke: rgba(72, 56, 61, 0.88);
--veil: rgba(128, 125, 116, 0.62);
--on-dark: #e3e3e3;
--on-dark-soft: rgba(227, 227, 227, 0.8);
--rule-dark: rgba(227, 227, 227, 0.18);
--ember: #a15324;
--ember-deep: #93532e;
--amber: #88846a;
}
</style>
<section class="focus">
<p class="focus__label">Focus areas</p>
<ul class="focus__list">
<li class="focus__row is-open">
<button class="focus__head" type="button" aria-expanded="true">
<span class="focus__title">Stage & theatre</span>
<span class="focus__tags"><span class="focus__tag">Rig design</span><span class="focus__tag">Control desks</span><span class="focus__tag">Touring kits</span></span>
</button>
<div class="focus__panel">
<div class="focus__body">
<p class="focus__text">Plots, rigs and cue lists for houses from forty seats to two thousand, drawn so the crew can run them on a wet Tuesday.</p>
<figure class="focus__frame"><img class="focus__picture" src="assets/cut-b.jpg" alt="Two cut-paper silhouettes of men in frock coats facing each other" width="922" height="1200" loading="lazy"></figure>
</div>
</div>
</li>
<li class="focus__row">
<button class="focus__head" type="button" aria-expanded="false">
<span class="focus__title">Gallery light</span>
<span class="focus__tags"><span class="focus__tag">Conservation</span><span class="focus__tag">Track systems</span><span class="focus__tag">Daylight study</span></span>
</button>
<div class="focus__panel">
<div class="focus__body">
<p class="focus__text">Light that is kind to paper and pigment, aimed so a painting reads from the door and glare never reaches the glass.</p>
<figure class="focus__frame"><img class="focus__picture" src="assets/room.jpg" alt="A tall panelled room with a chandelier and long windows" width="800" height="547" loading="lazy"></figure>
</div>
</div>
</li>
<li class="focus__row">
<button class="focus__head" type="button" aria-expanded="false">
<span class="focus__title">Heritage interiors</span>
<span class="focus__tags"><span class="focus__tag">Surveys</span><span class="focus__tag">Restored fittings</span><span class="focus__tag">Dimming</span></span>
</button>
<div class="focus__panel">
<div class="focus__body">
<p class="focus__text">Old fittings rewired, new ones hidden. We keep the room's evening mood and give the staff a single switch for it.</p>
<figure class="focus__frame"><img class="focus__picture" src="assets/chandelier.jpg" alt="A tall brass chandelier with many candle arms" width="562" height="800" loading="lazy"></figure>
</div>
</div>
</li>
<li class="focus__row">
<button class="focus__head" type="button" aria-expanded="false">
<span class="focus__title">Façades & harbours</span>
<span class="focus__tags"><span class="focus__tag">Night views</span><span class="focus__tag">Wayfinding</span><span class="focus__tag">Low glare</span></span>
</button>
<div class="focus__panel">
<div class="focus__body">
<p class="focus__text">Buildings and waterfronts that still read after dark, lit for the people walking past rather than for the photograph.</p>
<figure class="focus__frame"><img class="focus__picture" src="assets/lighthouse.jpg" alt="A long stone jetty running out to a small lighthouse" width="800" height="493" loading="lazy"></figure>
</div>
</div>
</li>
</ul>
</section>
<style>
.focus {
padding: var(--section-space) var(--edge);
background: var(--paper);
}
.focus__label {
margin: 0 0 var(--space-m);
color: var(--ember);
font-family: var(--font-mono);
font-size: var(--text-micro);
letter-spacing: var(--track-mono);
text-transform: uppercase;
}
.focus__list {
margin: 0;
padding: 0;
list-style: none;
}
.focus__row {
border-bottom: var(--line) solid var(--rule);
color: var(--ink-faint);
transition: color var(--slow) ease;
}
.focus__row.is-open,
.focus__row:hover,
.focus__row:focus-within {
color: var(--ink);
}
.focus__head {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
align-items: end;
gap: var(--gap);
width: 100%;
min-height: 64px;
padding: var(--space-l) 0 var(--space-s);
border: 0;
color: inherit;
background: none;
font: inherit;
text-align: left;
cursor: pointer;
}
.focus__head:focus-visible {
outline: var(--line) solid var(--ember);
outline-offset: 4px;
}
.focus__title {
font-family: var(--font-display);
font-size: var(--display-m);
line-height: 1.05;
letter-spacing: var(--track-tight);
}
.focus__tags {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
padding-bottom: 6px;
}
.focus__tag {
font-family: var(--font-mono);
font-size: var(--text-micro);
line-height: 1.2;
letter-spacing: var(--track-mono);
text-transform: uppercase;
}
.focus__panel {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows var(--slow) var(--ease);
}
.focus__row.is-open .focus__panel {
grid-template-rows: 1fr;
}
.focus__body {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
gap: var(--gap);
min-height: 0;
overflow: hidden;
}
.focus__text {
max-width: 38ch;
margin: var(--space-s) 0 var(--space-l);
color: var(--ink-soft);
font-size: var(--text-s);
line-height: 1.6;
}
.focus__frame {
position: relative;
margin: var(--space-s) 0 var(--space-l);
aspect-ratio: 16 / 7;
overflow: hidden;
border-radius: var(--radius-m);
background: var(--ember);
transform: translateX(24px);
opacity: 0;
transition: transform var(--slow) var(--ease), opacity var(--quick) var(--ease);
}
.focus__row.is-open .focus__frame {
transform: none;
opacity: 1;
}
.focus__picture {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) contrast(1.25);
mix-blend-mode: multiply;
}
@media (max-width: 720px) {
.focus__head,
.focus__body {
grid-template-columns: 1fr;
}
.focus__head {
gap: var(--space-s);
}
.focus__text {
margin-bottom: 0;
}
}
</style>
<script>
(() => {
document.querySelectorAll('.focus').forEach((root) => {
const rows = [...root.querySelectorAll('.focus__row')];
rows.forEach((row) => {
const head = row.querySelector('.focus__head');
head.addEventListener('click', () => {
const open = !row.classList.contains('is-open');
rows.forEach((other) => {
other.classList.toggle('is-open', other === row && open);
other.querySelector('.focus__head').setAttribute('aria-expanded', String(other === row && open));
});
});
});
});
})();
</script>