Glass feature cards
Three rounded translucent cards with monotone photos that warm to colour on hover, mono index labels and short copy.
Part of the style
Cutting Mat Desk
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/cutting-mat-desk/features/figma.html?palette=4e246f2e323f1e7d
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/cutting-mat-desk/features/figma.html?palette=4e246f2e323f1e7d and pass that whole HTML document to the html_to_figma tool, so the part "Glass feature cards" 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: #03040d;
--night: #080a15;
--cream: #f3f4fe;
--cream-line: rgba(243, 244, 254, 0.302);
--shade: rgba(0, 0, 1, 0.922);
--signal: #78799a;
--cream-soft: rgba(204, 204, 211, 0.502);
--paper: #f4f5fd;
--desk: #3f3f4a;
--desk-deep: #14151a;
--signal-glow: rgba(97, 98, 129, 0.2);
--umber: #101015;
--mat: #616281;
--mat-deep: #515171;
--cream-veil: rgba(97, 98, 129, 0.11);
}
</style>
<section class="features">
<header class="features__head">
<p class="features__kicker">Features</p>
<h2 class="features__title">Three reasons it never sulks.</h2>
</header>
<div class="features__grid">
<article class="features__card" tabindex="0">
<span class="features__index">01 / Hold</span>
<div class="features__frame">
<img class="features__photo" style="object-position: 50% 12%" src="assets/compass-watch.jpg" alt="A silver pocket watch with a compass dial and a long chain" width="679" height="800" />
</div>
<h3 class="features__name">Settles in two seconds</h3>
<p class="features__text">A damped needle that stops swinging before you stop walking.</p>
</article>
<article class="features__card" tabindex="0">
<span class="features__index">02 / Read</span>
<div class="features__frame">
<img class="features__photo" src="assets/sextant-set.jpg" alt="A brass sextant, telescope and boxed compass on soft leather" width="800" height="574" />
</div>
<h3 class="features__name">A dial for bad light</h3>
<p class="features__text">Deep-cut numerals that catch any glow, from dusk to a phone screen.</p>
</article>
<article class="features__card" tabindex="0">
<span class="features__index">03 / Keep</span>
<div class="features__frame">
<img class="features__photo" style="object-position: 50% 18%" src="assets/compass-equinoctial.jpg" alt="An engraved brass compass dial seen from above" width="1200" height="1181" />
</div>
<h3 class="features__name">Outlives its owner</h3>
<p class="features__text">Solid brass, one screw, no battery. Hand it on, not in.</p>
</article>
</div>
</section>
<style>
.features {
padding: var(--section-space) var(--edge);
background: var(--page);
color: var(--cream);
}
.features__head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: var(--space-s) var(--gap);
margin-bottom: var(--space-l);
}
.features__kicker,
.features__index {
margin: 0;
font-family: var(--font-mono);
font-size: var(--text-xs);
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--cream-soft);
}
.features__kicker::before {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-right: var(--space-s);
border-radius: 50%;
background: var(--signal);
vertical-align: 2px;
}
.features__title {
margin: 0;
font-size: var(--text-xl);
font-weight: 500;
line-height: 1.05;
text-transform: uppercase;
}
.features__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--gap);
}
.features__card {
display: grid;
grid-template-rows: auto auto auto 1fr;
gap: var(--space-s);
padding: var(--space-s) var(--space-s) var(--space-l);
border: var(--rule) solid transparent;
border-radius: var(--radius-card);
background: var(--cream-veil);
transition: border-color var(--border-time) var(--ease-plain);
outline: none;
}
.features__card:hover,
.features__card:focus-visible {
border-color: var(--cream-line);
}
.features__index {
padding: var(--space-s) var(--space-m) 0;
}
.features__frame {
aspect-ratio: 4 / 3;
border-radius: var(--radius-frame);
overflow: hidden;
background: var(--paper);
}
.features__photo {
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
filter: grayscale(1) contrast(1.15);
transform: scale(1.02);
transition: filter var(--slow) var(--ease-plain), transform var(--time) var(--ease-plain);
}
.features__card:hover .features__photo,
.features__card:focus-visible .features__photo {
filter: grayscale(0) contrast(1);
transform: scale(1.06);
}
.features__name {
margin: var(--space-s) var(--space-m) 0;
font-size: var(--text-l);
font-weight: 500;
line-height: 1.2;
}
.features__text {
margin: 0 var(--space-m);
max-width: 30ch;
font-size: var(--text-s);
line-height: 1.6;
color: var(--cream-soft);
}
@media (max-width: 860px) {
.features__grid { grid-template-columns: minmax(0, 1fr); }
.features__card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: var(--space-s); }
.features__frame { grid-row: 1 / -1; aspect-ratio: 1; }
.features__index { padding: var(--space-s) 0 0; }
.features__name, .features__text { margin-inline: 0; }
}
@media (max-width: 480px) {
.features__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: var(--space-m); }
.features__frame { grid-row: auto; aspect-ratio: 4 / 3; }
.features__index, .features__name, .features__text { padding-inline: var(--space-s); }
}
</style>