Archive tiles
Edge-to-edge grid of colour tiles, each with a small abstract print and a slab title. On hover or focus a one-colour copy of the print floods the tile.
Part of the style
Wood Type Playbill
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/wood-type-playbill/archive/figma.html?palette=eaf6679dab0c19c5
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/wood-type-playbill/archive/figma.html?palette=eaf6679dab0c19c5 and pass that whole HTML document to the html_to_figma tool, so the part "Archive tiles" 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: #dfe4e8;
--ink: #030101;
--ink-mid: rgba(3, 1, 1, 0.8);
--ink-soft: rgba(3, 1, 1, 0.5);
--paper: #ffffff;
--night: #3e3737;
--poster-cream: #ffffff;
--poster-cobalt: #df531e;
--poster-dusk: #ffae94;
--poster-red: #df531e;
--hot: #fc9a7a;
--plum: #6b3e30;
--tile-brick: #863e26;
--poster-lemon: #df531e;
--tile-olive: #ba6b52;
--poster-mint: #df531e;
--tile-forest: #b24219;
--tile-leaf: #d14b15;
--poster-neon: #df531e;
--poster-heather: #926759;
--tile-violet: #df531e;
--tile-sky: #df531e;
}
</style>
<section class="archive">
<svg class="archive__sprites" aria-hidden="true" focusable="false">
<symbol id="archive-print-arches" viewBox="0 0 60 40">
<rect class="archive__ink-a" width="60" height="40" />
<circle class="archive__ink-c" cx="46" cy="11" r="6" />
<path class="archive__ink-b" d="M6 40 V22 a7 7 0 0 1 14 0 V40z M23 40 V16 a7 7 0 0 1 14 0 V40z M40 40 V26 a7 7 0 0 1 14 0 V40z" />
<path class="archive__ink-d" d="M10 40 V24 a3 3 0 0 1 6 0 V40z M27 40 V19 a3 3 0 0 1 6 0 V40z M44 40 V28 a3 3 0 0 1 6 0 V40z" />
</symbol>
<symbol id="archive-print-bars" viewBox="0 0 60 40">
<rect class="archive__ink-a" width="60" height="40" />
<path class="archive__ink-b" d="M-4 40 L16 0 h9 L5 40z M14 40 L34 0 h9 L23 40z M32 40 L52 0 h9 L41 40z" />
<path class="archive__ink-c" d="M30 40 a14 14 0 0 1 28 0z" />
<rect class="archive__ink-d" x="4" y="5" width="9" height="9" />
</symbol>
<symbol id="archive-print-steps" viewBox="0 0 60 40">
<rect class="archive__ink-a" width="60" height="40" />
<path class="archive__ink-b" d="M0 40 V30 h12 V22 h12 V14 h12 V6 h24 V40z" />
<circle class="archive__ink-c" cx="12" cy="11" r="7" />
<path class="archive__ink-d" d="M40 40 V24 h8 V40z M52 40 V18 h5 V40z" />
</symbol>
</svg>
<h2 class="archive__heading">Explore Past Editions</h2>
<ul class="archive__grid">
<li>
<a class="archive__tile archive__tile--leaf" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-arches" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-arches" /></svg>
<span class="archive__title">Paper tigers</span>
</a>
</li>
<li>
<a class="archive__tile archive__tile--violet" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-bars" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-bars" /></svg>
<span class="archive__title">The long weekend & other lies</span>
</a>
</li>
<li>
<a class="archive__tile archive__tile--sky" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-steps" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-steps" /></svg>
<span class="archive__title">Moon unit</span>
</a>
</li>
<li>
<a class="archive__tile archive__tile--brick" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-steps" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-steps" /></svg>
<span class="archive__title">Soft riot</span>
</a>
</li>
<li>
<a class="archive__tile archive__tile--forest" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-arches" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-arches" /></svg>
<span class="archive__title">Hot type</span>
</a>
</li>
<li>
<a class="archive__tile archive__tile--olive" href="#">
<svg class="archive__flood" viewBox="0 0 60 40" preserveAspectRatio="xMidYMid slice" aria-hidden="true" focusable="false"><use href="#archive-print-bars" /></svg>
<svg class="archive__print" viewBox="0 0 60 40" aria-hidden="true" focusable="false"><use href="#archive-print-bars" /></svg>
<span class="archive__title">Everything must go</span>
</a>
</li>
</ul>
</section>
<style>
.archive {
padding: 0 var(--edge) var(--section-space);
}
.archive__sprites {
position: absolute;
width: 0;
height: 0;
}
.archive__heading {
margin: 0 0 var(--space-l);
font-size: var(--text-xl);
font-weight: 900;
line-height: 1.2;
}
.archive__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin: 0;
padding: 0;
list-style: none;
}
.archive__tile {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: 100%;
align-content: center;
gap: var(--space-m);
aspect-ratio: 1.18;
padding: var(--space-m);
overflow: hidden;
background: var(--tile);
color: var(--paper);
text-decoration: none;
}
.archive__tile:focus-visible {
outline: var(--rule-thick) solid var(--ink);
outline-offset: -6px;
}
.archive__tile--leaf { --tile: var(--tile-leaf); --print-a: var(--poster-cream); --print-b: var(--poster-cobalt); --print-c: var(--poster-red); --print-d: var(--poster-lemon); }
.archive__tile--violet { --tile: var(--tile-violet); --print-a: var(--poster-lemon); --print-b: var(--poster-neon); --print-c: var(--poster-cobalt); --print-d: var(--night); }
.archive__tile--sky { --tile: var(--tile-sky); --print-a: var(--night); --print-b: var(--poster-red); --print-c: var(--poster-lemon); --print-d: var(--poster-mint); }
.archive__tile--brick { --tile: var(--tile-brick); --print-a: var(--poster-mint); --print-b: var(--poster-cobalt); --print-c: var(--poster-neon); --print-d: var(--poster-cream); }
.archive__tile--forest { --tile: var(--tile-forest); --print-a: var(--hot); --print-b: var(--night); --print-c: var(--poster-lemon); --print-d: var(--poster-red); }
.archive__tile--olive { --tile: var(--tile-olive); --print-a: var(--poster-cream); --print-b: var(--poster-red); --print-c: var(--night); --print-d: var(--poster-cobalt); }
.archive__ink-a { fill: var(--print-a); }
.archive__ink-b { fill: var(--print-b); }
.archive__ink-c { fill: var(--print-c); }
.archive__ink-d { fill: var(--print-d); }
/* At rest the print sits small in the tile. On hover a one-colour copy of it floods the whole tile. */
.archive__print {
justify-self: center;
width: min(50%, 14rem);
aspect-ratio: 3 / 2;
transition: opacity var(--time) var(--ease), scale var(--time) var(--ease);
}
.archive__flood {
position: absolute;
inset: 0;
z-index: -1;
width: 100%;
height: 100%;
opacity: 0;
scale: 1.08;
filter: grayscale(1) contrast(1.2);
mix-blend-mode: multiply;
transition: opacity var(--time-slow) var(--ease), scale var(--time-slow) var(--ease);
}
.archive__tile:hover .archive__flood,
.archive__tile:focus-visible .archive__flood {
opacity: 1;
scale: 1;
}
.archive__tile:hover .archive__print,
.archive__tile:focus-visible .archive__print {
opacity: 0;
scale: 0.94;
}
/* The slab is drawn wide and squeezed, so the box is made wider by the same factor first. */
.archive__title {
display: block;
width: calc(100% * var(--display-stretch));
transform: scaleX(calc(1 / var(--display-stretch)));
transform-origin: 0 0;
font-family: var(--font-display);
font-size: var(--display-s);
font-weight: 900;
line-height: 0.72;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
text-wrap: balance;
}
@media (max-width: 56rem) {
.archive__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 30rem) {
.archive__grid {
grid-template-columns: 100%;
}
.archive__tile {
aspect-ratio: 1.5;
}
}
@media (prefers-reduced-motion: reduce) {
.archive__print,
.archive__flood {
transition-duration: 0s;
scale: 1;
}
}
</style>