Thumbnail tray
Small object pictures of mixed proportions centred in wrapped rows on a grey mat, each naming itself in capitals on hover.
Part of the style
Roman Numeral Plates
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/roman-numeral-plates/tray/figma.html
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/roman-numeral-plates/tray/figma.html and pass that whole HTML document to the html_to_figma tool, so the part "Thumbnail tray" 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
<section class="tray" aria-label="Plate II, all pictures">
<p class="tray__caption"><span class="tray__numeral">II</span><span class="tray__title">Maison Tesse <em>x</em> Fold Paper Co.</span></p>
<p class="tray__count"><span class="tray__label">Images</span> (8 …)</p>
<ul class="tray__grid">
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/ribbons.jpg" alt="A page of woven ribbon samples" width="596" height="800"><span class="tray__name">Ribbon book</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/textile.jpg" alt="Rose-patterned brocade" width="800" height="617"><span class="tray__name">Brocade</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/gloves.jpg" alt="Printed gloves on red cloth" width="1057" height="1200"><span class="tray__name">Gloves</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/jar.jpg" alt="Pale green glass jar" width="797" height="800"><span class="tray__name">Green jar</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/shoes.jpg" alt="Silk slippers on a linen plinth" width="800" height="545"><span class="tray__name">Slippers</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/tea-bowl.jpg" alt="Brown glazed tea bowl" width="800" height="575"><span class="tray__name">Tea bowl</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/bowl.jpg" alt="Painted porcelain plate with fruit" width="800" height="608"><span class="tray__name">Fruit plate</span></a></li>
<li class="tray__tile"><a class="tray__link" href="#"><img class="tray__picture" src="assets/magnolias.jpg" alt="Magnolias on green velvet" width="1200" height="737"><span class="tray__name">Magnolias</span></a></li>
</ul>
</section>
<style>
.tray {
display: grid;
justify-items: center;
padding: var(--space-xl) var(--edge) var(--section-space);
color: var(--ink);
font: 400 var(--text)/var(--leading) var(--font-serif);
}
.tray__caption {
display: grid;
grid-template-columns: var(--numeral-col) auto;
gap: var(--space-m);
margin: 0;
transform: translateX(calc(var(--numeral-col) / -2));
}
.tray__numeral {
text-align: right;
font-variant: all-small-caps;
letter-spacing: 0.06em;
}
.tray__count { margin: 0 0 var(--space-l); color: var(--ink-faint); }
.tray__label,
.tray__name {
font-family: var(--font-caps);
font-weight: var(--weight-caps);
letter-spacing: var(--caps-track);
text-transform: uppercase;
}
.tray__grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: var(--gap);
max-width: 860px;
margin: 0;
padding: 0;
list-style: none;
}
.tray__link {
display: grid;
gap: var(--space-xs);
justify-items: center;
padding: 10px;
background: var(--mat);
color: var(--ink);
text-decoration: none;
}
.tray__picture {
width: auto;
height: clamp(96px, 16vw, 168px);
object-fit: contain;
transition: opacity var(--quick) var(--ease);
}
.tray__name {
opacity: 0;
transition: opacity var(--quick) var(--ease);
}
.tray__link:hover .tray__picture { opacity: 0.85; }
.tray__link:hover .tray__name,
.tray__link:focus-visible .tray__name { opacity: 1; }
.tray__link:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
@media (max-width: 600px) {
.tray__picture { height: 88px; }
.tray__link { padding: 6px; }
}
</style>