Ruled trade list
Giant condensed trade titles on 2px rules, each with a tiny count and black course badges on the right. Hovering a row raises a white fill from its bottom edge and steps the row in.
Part of the style
Backroom Tunnel
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/backroom-tunnel/trades/figma.html?palette=80976dc52fc573ea
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/backroom-tunnel/trades/figma.html?palette=80976dc52fc573ea and pass that whole HTML document to the html_to_figma tool, so the part "Ruled trade 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 {
--metal: #04578b;
--backstage: #fff4df;
--spot: #014977;
--neon: #7a684d;
--echo: #7b614f;
}
</style>
<section class="trades" aria-labelledby="trades-heading">
<h2 class="trades__heading" id="trades-heading">The key trades of the small press</h2>
<ul class="trades__list">
<li class="trades__row">
<span class="trades__count">014</span>
<h3 class="trades__title"><a class="trades__link" href="#">Riso printing</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Workshop</li><li class="trades__badge">Night class</li><li class="trades__badge">+3</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">009</span>
<h3 class="trades__title"><a class="trades__link" href="#">Screen printing</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Diploma</li><li class="trades__badge">Workshop</li><li class="trades__badge">+2</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">006</span>
<h3 class="trades__title"><a class="trades__link" href="#">Bookbinding</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Apprenticeship</li><li class="trades__badge">+4</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">011</span>
<h3 class="trades__title"><a class="trades__link" href="#">Typesetting</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Certificate</li><li class="trades__badge">Short course</li><li class="trades__badge">+1</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">017</span>
<h3 class="trades__title"><a class="trades__link" href="#">Distro / mail order</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Short course</li><li class="trades__badge">Certificate</li><li class="trades__badge">+3</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">003</span>
<h3 class="trades__title"><a class="trades__link" href="#">Paper making</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Workshop</li><li class="trades__badge">+2</li>
</ul>
</li>
<li class="trades__row">
<span class="trades__count">008</span>
<h3 class="trades__title"><a class="trades__link" href="#">Shop management</a></h3>
<ul class="trades__badges" aria-label="Ways in">
<li class="trades__badge">Night class</li><li class="trades__badge">Diploma</li><li class="trades__badge">+5</li>
</ul>
</li>
</ul>
</section>
<style>
.trades {
overflow: hidden;
padding: var(--edge) var(--edge) var(--space-8);
background: var(--metal);
color: var(--backstage);
}
.trades__heading {
margin: 0 0 var(--space-3);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
}
.trades__list {
margin: 0;
padding: 0;
list-style: none;
}
.trades__row {
position: relative;
isolation: isolate;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-3);
padding: 10px 0 var(--space-3);
border-bottom: var(--outline) solid var(--backstage);
transition: padding var(--time) var(--ease);
}
.trades__row::before {
content: "";
position: absolute;
z-index: -1;
bottom: 0;
left: calc(var(--edge) * -1);
width: calc(100% + var(--edge) * 2);
height: 0;
background: var(--spot);
transition: height var(--time) var(--ease);
}
.trades__count {
flex-shrink: 0;
margin-bottom: -4px;
font: 400 var(--t-c2)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
letter-spacing: -0.014em;
}
.trades__title {
min-width: 0;
margin: 0;
font: 800 var(--t-h1)/0.95 var(--font-poster);
letter-spacing: -0.026em;
text-transform: uppercase;
overflow-wrap: break-word;
}
.trades__link {
color: inherit;
text-decoration: none;
}
.trades__link::after {
content: "";
position: absolute;
z-index: 2;
inset: 0;
border-radius: var(--radius-small);
}
.trades__link:focus-visible { outline: none; }
.trades__link:focus-visible::after { outline: 3px solid var(--neon); outline-offset: -3px; }
.trades__badges {
display: flex;
flex-wrap: wrap;
flex-shrink: 0;
gap: var(--space-1);
margin: 0;
padding: 0;
list-style: none;
}
.trades__badge {
padding: 5px 5px 4px;
border-radius: var(--radius-small);
background: var(--backstage);
color: var(--metal);
font: 400 var(--t-c1)/1.1 var(--font-label);
font-stretch: calc(var(--label-width) * 1%);
text-transform: uppercase;
white-space: nowrap;
}
@media (min-width: 576px) {
.trades__row {
flex-direction: row;
gap: 24px;
padding: 8px 0 6px;
}
.trades__count { margin: 6px 0 0; }
.trades__badges {
align-self: center;
justify-content: flex-end;
max-width: 25%;
margin-left: auto;
}
}
@media (min-width: 768px) {
.trades__row:hover,
.trades__row:focus-within { padding-right: 8px; padding-left: 8px; }
.trades__row:hover::before,
.trades__row:focus-within::before { height: 100%; }
}
</style>