Episode list
Numbered talk episodes in ruled rows; hovering one dims the rest and fills its pill.
Part of the style
Staggered Black Folio
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/staggered-black-folio/episodes/figma.html?palette=daab239504fce080
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/staggered-black-folio/episodes/figma.html?palette=daab239504fce080 and pass that whole HTML document to the html_to_figma tool, so the part "Episode list" 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 {
--page: #20201f;
--ink: #f8e2c6;
--ink-soft: #a89a88;
--ink-mute: #6f6f62;
--stage: #53534a;
--stage-light: #d7c5ad;
--paper: #f8e2c6;
--paper-ink: #20201f;
--rule: #46463f;
--flat-orange: #847a6d;
--flat-yellow: #847a6d;
--flat-green: #847a6d;
--flat-blue: #847a6d;
}
</style>
<section class="episodes">
<header class="episodes__head">
<h2 class="episodes__heading">Make it plain <span class="episodes__range">talks 1—18</span></h2>
<p class="episodes__intro">Half-hour conversations with people who name, draw and fix things for a living.</p>
</header>
<ol class="episodes__list">
<li class="episodes__row">
<span class="episodes__number">18</span>
<span class="episodes__title">Why the second logo is always better</span>
<span class="episodes__length">34 min</span>
<a class="episodes__pill" href="#">Listen</a>
</li>
<li class="episodes__row">
<span class="episodes__number">17</span>
<span class="episodes__title">Naming a ferry company in a week</span>
<span class="episodes__length">29 min</span>
<a class="episodes__pill" href="#">Listen</a>
</li>
<li class="episodes__row">
<span class="episodes__number">16</span>
<span class="episodes__title">Grey backgrounds and honest products</span>
<span class="episodes__length">41 min</span>
<a class="episodes__pill" href="#">Listen</a>
</li>
<li class="episodes__row">
<span class="episodes__number">15</span>
<span class="episodes__title">Saying no to the fourth round</span>
<span class="episodes__length">26 min</span>
<a class="episodes__pill" href="#">Listen</a>
</li>
</ol>
</section>
<style>
.episodes {
padding: var(--section-space) var(--edge);
}
.episodes__head {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
column-gap: var(--gap);
align-items: end;
margin-bottom: var(--space-l);
}
.episodes__heading {
grid-column: 1 / 8;
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 400;
line-height: 1.1;
}
.episodes__range {
color: var(--ink-soft);
}
.episodes__intro {
grid-column: 9 / -1;
margin: 0;
color: var(--ink-soft);
font-size: var(--text-s);
}
.episodes__list {
margin: 0;
padding: 0;
list-style: none;
border-top: var(--line) solid var(--rule);
}
.episodes__row {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
column-gap: var(--gap);
align-items: center;
padding: var(--space-m) 0;
border-bottom: var(--line) solid var(--rule);
transition: opacity var(--quick) linear;
}
.episodes__list:hover .episodes__row:not(:hover),
.episodes__list:focus-within .episodes__row:not(:focus-within) {
opacity: 0.35;
}
.episodes__number {
grid-column: 1 / 2;
color: var(--ink-soft);
font-family: var(--font-display);
font-size: var(--text-m);
}
.episodes__title {
grid-column: 2 / 9;
font-family: var(--font-display);
font-size: var(--text-l);
line-height: 1.3;
}
.episodes__length {
grid-column: 9 / 11;
color: var(--ink-soft);
font-size: var(--text-s);
}
.episodes__pill {
grid-column: 11 / -1;
justify-self: end;
display: inline-flex;
align-items: center;
min-height: var(--tap);
padding: 0 28px;
border: var(--line) solid var(--ink);
border-radius: var(--radius-pill);
color: var(--ink);
font-size: var(--text-s);
font-weight: 500;
text-decoration: none;
transition: background-color var(--quick) linear, color var(--quick) linear;
}
.episodes__row:hover .episodes__pill,
.episodes__pill:focus-visible {
background: var(--ink);
color: var(--page);
outline: none;
}
@media (max-width: 48rem) {
.episodes__heading,
.episodes__intro {
grid-column: 1 / -1;
}
.episodes__intro {
margin-top: var(--space-s);
}
.episodes__row {
grid-template-columns: auto 1fr auto;
row-gap: var(--space-xs);
}
.episodes__number { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.episodes__title { grid-column: 2 / -1; font-size: var(--text-m); }
.episodes__length { grid-column: 2; }
.episodes__pill { grid-column: 3; }
}
</style>