Layout Updated
Hairline stat strip
A row of stat tiles joined by hairlines that are grid gap, not borders — the container paints the border color and the tiles paint the surface, so separators never double up or break when the row wraps — in a reporting form and in a second form where each tile is the filter for the list beneath it.
| category | Layout |
|---|---|
| added | 2026-08-21 |
| updated | 2026-09-28 |
| deps | 0 |
| tags |
- summary strip at the top of a detail page
- dashboard KPI row
- account usage overview
- report header figures
- profile stats band
Reporting only — the figures are the whole job.
Same strip, working as the filter. Press a tile to narrow the list; press it again to clear.
- Bicycle drivetrain teardown Done
- Kiln firing, part three Downloading
- Field recording — marsh at dawn Queued
- Lathe restoration, episode 12 Done
- Sourdough hydration tests Failed
- Bookbinding: the long stitch Queued
Showing all 6 downloads.
The five-tile filter row wraps to three columns below 60rem, so labels such as DOWNLOADING never clip.
<p class="hss-caption">Reporting only — the figures are the whole job.</p><div class="hss-strip"> <div class="hss-tile"><span class="hss-label">Documents</span><span class="hss-figure">1,482</span><span class="hss-unit">this period</span></div> <div class="hss-tile"><span class="hss-label">Median time</span><span class="hss-figure">3.2s</span><span class="hss-unit">last 24h</span></div> <div class="hss-tile"><span class="hss-label">Clean runs</span><span class="hss-figure">98.4%</span><span class="hss-unit">no retries</span></div> <div class="hss-tile"><span class="hss-label">Quality score</span><span class="hss-figure is-missing" aria-label="not rated">—</span><span class="hss-unit">not rated yet</span></div></div><p class="hss-caption" style="margin-top:1.5rem">Same strip, working as the filter. Press a tile to narrow the list; press it again to clear.</p><div class="hss-strip is-five" id="hss-filter"> <button class="hss-tile" type="button" data-status="all" aria-pressed="true"><span class="hss-label">All</span><span class="hss-figure">6</span><span class="hss-unit">downloads</span></button> <button class="hss-tile" type="button" data-status="Queued" aria-pressed="false"><span class="hss-label">Queued</span><span class="hss-figure">2</span><span class="hss-unit">downloads</span></button> <button class="hss-tile" type="button" data-status="Downloading" aria-pressed="false"><span class="hss-label">Downloading</span><span class="hss-figure">1</span><span class="hss-unit">downloads</span></button> <button class="hss-tile" type="button" data-status="Done" aria-pressed="false"><span class="hss-label">Done</span><span class="hss-figure">2</span><span class="hss-unit">downloads</span></button> <button class="hss-tile" type="button" data-status="Failed" aria-pressed="false"><span class="hss-label">Failed</span><span class="hss-figure">1</span><span class="hss-unit">downloads</span></button></div><ul class="hss-list" id="hss-list"> <li data-status="Done">Bicycle drivetrain teardown <span class="st">Done</span></li> <li data-status="Downloading">Kiln firing, part three <span class="st">Downloading</span></li> <li data-status="Queued">Field recording — marsh at dawn <span class="st">Queued</span></li> <li data-status="Done">Lathe restoration, episode 12 <span class="st">Done</span></li> <li data-status="Failed">Sourdough hydration tests <span class="st">Failed</span></li> <li data-status="Queued">Bookbinding: the long stitch <span class="st">Queued</span></li></ul><p class="hss-status" id="hss-status" aria-live="polite">Showing all 6 downloads.</p>Colors come from shared theme tokens — --surface, --ink, --border, --accent and friends — so this CSS carries no palette of its own. Use Runnable file to copy the tokens along with it.
.hss-caption { margin: 0 0 0.6rem; color: var(--dim); font-size: 0.9375rem; }.hss-strip { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;}@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }@media (min-width: 42rem) { .hss-strip.is-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }@media (min-width: 60rem) { .hss-strip.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }.hss-tile { background: var(--surface); padding: 0.9rem 1rem; min-width: 0; color: var(--ink); }.hss-label { display: block; font-family: ui-monospace, monospace; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); overflow-wrap: anywhere; }.hss-figure { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0.2rem 0 0.1rem; }.hss-figure.is-missing { color: var(--dim); font-weight: 400; }.hss-unit { display: block; font-size: 0.875rem; color: var(--dim); }button.hss-tile { font: inherit; text-align: left; border: 0; cursor: pointer; }button.hss-tile:hover { background: var(--surface-2); }button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 -3px 0 var(--accent); }button.hss-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }.hss-list { list-style: none; margin: 0.75rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; border-top: 1px solid var(--border); color: var(--ink); }.hss-list li:first-child { border-top: 0; }.hss-list .st { font-family: ui-monospace, monospace; font-size: 0.8125rem; color: var(--dim); white-space: nowrap; }.hss-status { margin: 0.6rem 0 0; color: var(--dim); font-size: 0.9375rem; }const strip = document.getElementById("hss-filter");const items = Array.from(document.querySelectorAll("#hss-list li"));const status = document.getElementById("hss-status");const tiles = Array.from(strip.querySelectorAll("button"));function applyFilter(wanted) { tiles.forEach((tile) => tile.setAttribute("aria-pressed", String(tile.dataset.status === wanted))); let shown = 0; items.forEach((item) => { const visible = wanted === "all" || item.dataset.status === wanted; item.hidden = !visible; if (visible) shown += 1; }); status.textContent = wanted === "all" ? `Showing all ${items.length} downloads.` : `Filtered to ${wanted}: ${shown} of ${items.length}. Press the lit tile again to clear.`;}tiles.forEach((tile) => { tile.addEventListener("click", () => { const pressed = tile.getAttribute("aria-pressed") === "true"; applyFilter(pressed || tile.dataset.status === "all" ? "all" : tile.dataset.status); });});Build a strip of statistic tiles that reads as one joined instrument panel rather than a row of floating cards.
The separators between tiles must not be borders. Make the container a CSS grid with gap: 1px and give the container itself the border color as its background; each tile then paints the surface color on top. The 1px of container showing through the gap is the hairline. This is the entire pattern: real borders double where two tiles meet and leave a stray edge when auto-fit wraps the row, and a gap physically cannot do either.
Abridged here. The full prompt continues with sections on pinning column counts, tile anatomy, two rules of honesty (render a missing value as a dimmed em dash; keep units with the number), the filter form, computing counts from the unfiltered set, and using aria-pressed rather than tab roles.
:root { --ground:#eef0f3; --surface:#ffffff; --surface-2:#f5f7f9; --border:#d2d8e0; --ink:#161b22; --dim:#56606e; --accent:#364f6a; --radius:10px; }
.hss-caption { margin: 0 0 0.6rem; color: var(--dim); font-size: 0.9375rem; }
.hss-strip {
display: grid;
gap: 1px;
grid-template-columns: 1fr;
background: var(--border);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip.is-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 0.9rem 1rem; min-width: 0; color: var(--ink); }
.hss-label { display: block; font-family: ui-monospace, monospace; font-size: 0.8125rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); overflow-wrap: anywhere; }
.hss-figure { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0.2rem 0 0.1rem; }
.hss-figure.is-missing { color: var(--dim); font-weight: 400; }
.hss-unit { display: block; font-size: 0.875rem; color: var(--dim); }
button.hss-tile { font: inherit; text-align: left; border: 0; cursor: pointer; }
button.hss-tile:hover { background: var(--surface-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 0 -3px 0 var(--accent); }
button.hss-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.hss-list { list-style: none; margin: 0.75rem 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; border-top: 1px solid var(--border); color: var(--ink); }
.hss-list li:first-child { border-top: 0; }
.hss-list .st { font-family: ui-monospace, monospace; font-size: 0.8125rem; color: var(--dim); white-space: nowrap; }
.hss-status { margin: 0.6rem 0 0; color: var(--dim); font-size: 0.9375rem; }
<p class="hss-caption">Reporting only — the figures are the whole job.</p>
<div class="hss-strip">
<div class="hss-tile"><span class="hss-label">Documents</span><span class="hss-figure">1,482</span><span class="hss-unit">this period</span></div>
<div class="hss-tile"><span class="hss-label">Median time</span><span class="hss-figure">3.2s</span><span class="hss-unit">last 24h</span></div>
<div class="hss-tile"><span class="hss-label">Clean runs</span><span class="hss-figure">98.4%</span><span class="hss-unit">no retries</span></div>
<div class="hss-tile"><span class="hss-label">Quality score</span><span class="hss-figure is-missing" aria-label="not rated">—</span><span class="hss-unit">not rated yet</span></div>
</div>
<p class="hss-caption" style="margin-top:1.5rem">Same strip, working as the filter. Press a tile to narrow the list; press it again to clear.</p>
<div class="hss-strip is-five" id="hss-filter">
<button class="hss-tile" type="button" data-status="all" aria-pressed="true"><span class="hss-label">All</span><span class="hss-figure">6</span><span class="hss-unit">downloads</span></button>
<button class="hss-tile" type="button" data-status="Queued" aria-pressed="false"><span class="hss-label">Queued</span><span class="hss-figure">2</span><span class="hss-unit">downloads</span></button>
<button class="hss-tile" type="button" data-status="Downloading" aria-pressed="false"><span class="hss-label">Downloading</span><span class="hss-figure">1</span><span class="hss-unit">downloads</span></button>
<button class="hss-tile" type="button" data-status="Done" aria-pressed="false"><span class="hss-label">Done</span><span class="hss-figure">2</span><span class="hss-unit">downloads</span></button>
<button class="hss-tile" type="button" data-status="Failed" aria-pressed="false"><span class="hss-label">Failed</span><span class="hss-figure">1</span><span class="hss-unit">downloads</span></button>
</div>
<ul class="hss-list" id="hss-list">
<li data-status="Done">Bicycle drivetrain teardown <span class="st">Done</span></li>
<li data-status="Downloading">Kiln firing, part three <span class="st">Downloading</span></li>
<li data-status="Queued">Field recording — marsh at dawn <span class="st">Queued</span></li>
<li data-status="Done">Lathe restoration, episode 12 <span class="st">Done</span></li>
<li data-status="Failed">Sourdough hydration tests <span class="st">Failed</span></li>
<li data-status="Queued">Bookbinding: the long stitch <span class="st">Queued</span></li>
</ul>
<p class="hss-status" id="hss-status" aria-live="polite">Showing all 6 downloads.</p>
<script>
const strip = document.getElementById("hss-filter");
const items = Array.from(document.querySelectorAll("#hss-list li"));
const status = document.getElementById("hss-status");
const tiles = Array.from(strip.querySelectorAll("button"));
function applyFilter(wanted) {
tiles.forEach((tile) => tile.setAttribute("aria-pressed", String(tile.dataset.status === wanted)));
let shown = 0;
items.forEach((item) => {
const visible = wanted === "all" || item.dataset.status === wanted;
item.hidden = !visible;
if (visible) shown += 1;
});
status.textContent = wanted === "all"
? `Showing all ${items.length} downloads.`
: `Filtered to ${wanted}: ${shown} of ${items.length}. Press the lit tile again to clear.`;
}
tiles.forEach((tile) => {
tile.addEventListener("click", () => {
const pressed = tile.getAttribute("aria-pressed") === "true";
applyFilter(pressed || tile.dataset.status === "all" ? "all" : tile.dataset.status);
});
});
</script>
More in Layout
All 40 patterns →| 12 | Object-shaped cardsWhere a record stands for a physical thing, the card is drawn as that thing — nine variations in pure gradients. | 2026-08-11 |
| 13 | Adaptive tile mosaicA container with no artwork draws one from up to four member tiles, grid tracks following tile count. | 2026-08-11 |
| 14 | Ground-scrimmed artworkText printed over unreviewed artwork, scrimmed to an alpha that can be written down rather than guessed. | 2026-08-11 |
| 16 | Annotated transcriptConversation bubbles with a speaker-colored spine and a fixed metadata gutter. | 2026-08-21 |
| 17 | Cork notice boardPinned paper notes on a cork board where every texture is layered CSS gradients. | 2026-08-21 |