Workspace shelf
A grid of desk objects in grey tiles, photographs multiplied to grey that regain their colour on hover, with tiny captions.
Part of the style
Pixel Redaction Notes
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/pixel-redaction-notes/workspace/figma.html?palette=f7d63cb66bcc635b
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/pixel-redaction-notes/workspace/figma.html?palette=f7d63cb66bcc635b and pass that whole HTML document to the html_to_figma tool, so the part "Workspace shelf" 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: #f1f1f1;
--paper-depth: #fafafa;
--well: #cdcdcd;
--line: #cdcdcd;
--marker: #b0b0b0;
--ink: #000000;
--ink-soft: #000000;
--ink-faint: #5f5f5f;
--dot: rgba(0, 0, 0, 0.5);
}
</style>
<section class="workspace">
<div class="workspace__inner">
<h2 class="workspace__label">Workspace</h2>
<p class="workspace__text">Things on and around the desk this year. Hover to see them in colour.</p>
<ul class="workspace__grid">
<li class="workspace__item">
<a class="workspace__tile" href="#">
<img class="workspace__img" src="assets/lamp.jpg" alt="An old glass lamp bowl on a narrow stem" width="683" height="800" loading="lazy">
</a>
<p class="workspace__caption"><span class="workspace__name">Reading lamp</span> <span class="workspace__meta">glass, c. 300</span></p>
</li>
<li class="workspace__item">
<a class="workspace__tile" href="#">
<img class="workspace__img" src="assets/chair.jpg" alt="A plain wooden side chair with a leather seat" width="682" height="800" loading="lazy">
</a>
<p class="workspace__caption"><span class="workspace__name">Desk chair</span> <span class="workspace__meta">oak, 1904</span></p>
</li>
<li class="workspace__item">
<a class="workspace__tile" href="#">
<img class="workspace__img" src="assets/clock.jpg" alt="A dark mantel clock with painted tiles" width="659" height="800" loading="lazy">
</a>
<p class="workspace__caption"><span class="workspace__name">Shelf clock</span> <span class="workspace__meta">slate, 1880</span></p>
</li>
<li class="workspace__item">
<a class="workspace__tile" href="#">
<img class="workspace__img" src="assets/inkwell.jpg" alt="A blue glass inkwell with a lid" width="528" height="800" loading="lazy">
</a>
<p class="workspace__caption"><span class="workspace__name">Inkwell</span> <span class="workspace__meta">glass, 1850</span></p>
</li>
</ul>
</div>
</section>
<style>
.workspace {
padding: var(--section-space) var(--edge);
}
.workspace__inner {
max-width: var(--measure);
margin: 0 auto;
}
.workspace__label {
margin: 0 0 var(--space-s);
color: var(--ink);
font-size: var(--text-m);
font-weight: 500;
line-height: var(--leading-label);
}
.workspace__text {
margin: 0 0 var(--space-l);
color: var(--ink-soft);
line-height: var(--leading-read);
}
.workspace__grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.workspace__tile {
display: block;
aspect-ratio: 4 / 5;
overflow: hidden;
background: var(--well);
border-radius: var(--radius-l);
}
.workspace__img {
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
filter: grayscale(1) contrast(1.08);
scale: 1.001;
transition: filter var(--quick) var(--ease), scale var(--pop) var(--ease-bounce);
}
.workspace__tile:hover .workspace__img,
.workspace__tile:focus-visible .workspace__img {
filter: grayscale(0) contrast(1);
scale: 1.04;
}
.workspace__tile:focus-visible {
outline: var(--rule) solid var(--ink);
outline-offset: 2px;
}
.workspace__caption {
margin: var(--space-s) 0 0;
font-size: var(--text-s);
line-height: var(--leading-small);
}
.workspace__name {
display: block;
color: var(--ink);
}
.workspace__meta {
display: block;
color: var(--ink-faint);
font-family: var(--font-mono);
font-size: var(--text-xs);
}
@media (max-width: 36rem) {
.workspace__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
row-gap: var(--space-l);
}
}
</style>