Grey index tiles
Four big grey tiles two by two, 2 px apart, each with a label at the top; on hover a tile floods with its highlighter and its second chip slides in.
Part of the style
Highlighter Word Chips
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/highlighter-word-chips/index-tiles/figma.html?palette=ff98fce80da04497
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/highlighter-word-chips/index-tiles/figma.html?palette=ff98fce80da04497 and pass that whole HTML document to the html_to_figma tool, so the part "Grey index 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 {
--ink: #fff2f1;
--paper: #334493;
--chip: rgba(60, 78, 154, 0.7);
--chip-solid: #3c4e9a;
--chip-press: #43559f;
--ink-mute: rgba(255, 242, 241, 0.45);
--veil: rgba(51, 68, 147, 0.72);
--periwinkle: #a95858;
--mint: #8d5772;
--lemon: #8e5b75;
--blush: #a95858;
}
</style>
<nav class="index-tiles" aria-label="Sections">
<ul class="index-tiles__grid">
<li class="index-tiles__cell" style="--lit: var(--periwinkle)">
<a class="index-tiles__tile" href="#">
<span class="index-tiles__label">About</span>
<span class="index-tiles__hint">How we work</span>
<span class="index-tiles__arrow" aria-hidden="true">↗</span>
</a>
</li>
<li class="index-tiles__cell" style="--lit: var(--mint)">
<a class="index-tiles__tile" href="#">
<span class="index-tiles__label">Work</span>
<span class="index-tiles__hint">Thirty-one projects</span>
<span class="index-tiles__arrow" aria-hidden="true">↗</span>
</a>
</li>
<li class="index-tiles__cell" style="--lit: var(--lemon)">
<a class="index-tiles__tile" href="#">
<span class="index-tiles__label">Shop</span>
<span class="index-tiles__hint">Prints and cups</span>
<span class="index-tiles__arrow" aria-hidden="true">↗</span>
</a>
</li>
<li class="index-tiles__cell" style="--lit: var(--blush)">
<a class="index-tiles__tile index-tiles__tile--picture" href="#">
<img class="index-tiles__img" src="assets/weave-theory.jpg" alt="" width="800" height="651" loading="lazy">
<span class="index-tiles__label">Archive</span>
<span class="index-tiles__hint">Ideas we dropped</span>
<span class="index-tiles__arrow" aria-hidden="true">↗</span>
</a>
</li>
</ul>
</nav>
<style>
.index-tiles {
padding: var(--space-xl) var(--edge) var(--section-space);
font-family: var(--font-display);
font-weight: var(--weight-bold);
}
.index-tiles__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--gap);
margin: 0;
padding: 0;
list-style: none;
}
.index-tiles__tile {
position: relative;
display: block;
height: clamp(9rem, 22vw, 18rem);
overflow: hidden;
padding: var(--space-s);
border-radius: var(--radius-l);
background: var(--chip-solid);
color: inherit;
text-decoration: none;
transition: background-color var(--fast) var(--ease);
}
.index-tiles__tile:hover,
.index-tiles__tile:focus-visible {
background: var(--lit);
}
.index-tiles__tile:focus-visible {
outline: var(--line) solid var(--ink);
outline-offset: 2px;
}
.index-tiles__img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(1) contrast(1.2);
mix-blend-mode: multiply;
opacity: 0;
transform: scale(1.04);
transition: opacity var(--grow) var(--ease-grow), transform var(--pad) var(--ease-grow);
}
.index-tiles__tile:hover .index-tiles__img,
.index-tiles__tile:focus-visible .index-tiles__img {
opacity: 0.5;
transform: none;
}
.index-tiles__label {
position: relative;
display: block;
font-size: var(--text-l);
letter-spacing: var(--tracking);
line-height: 1.1;
}
.index-tiles__hint {
position: relative;
display: inline-block;
margin-top: var(--space-xs);
padding: var(--space-xs) var(--space-s);
border-radius: var(--radius);
background: var(--paper);
font-family: var(--font-body);
font-size: var(--text-s);
opacity: 0;
transform: translateY(6px);
transition: opacity var(--fast) var(--ease-press), transform var(--grow) var(--ease-grow);
}
.index-tiles__tile:hover .index-tiles__hint,
.index-tiles__tile:focus-visible .index-tiles__hint {
opacity: 1;
transform: none;
}
.index-tiles__arrow {
position: absolute;
right: var(--space-s);
bottom: var(--space-s);
display: grid;
place-items: center;
width: 2rem;
height: 2rem;
border-radius: var(--radius);
background: var(--chip);
font-size: var(--text-m);
transition: transform var(--grow) var(--ease-grow);
}
.index-tiles__tile:hover .index-tiles__arrow,
.index-tiles__tile:focus-visible .index-tiles__arrow {
transform: translate(2px, -2px);
}
/* Phones have no hover: the second chip shows at rest. */
@media (hover: none) {
.index-tiles__hint {
opacity: 1;
transform: none;
}
}
</style>