AntJanusAntonin Januska, Boulder

← All patterns · 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.

No. 15Added Updated Tags stats css-grid css-only hairline no-assets

Reach for it when building

The whole trick is that the 1px of container showing through the grid gap is the hairline.Why not borders?Real borders double where two tiles meet and leave a stray edge when auto-fit wraps the row. A gap physically cannot do either. Nothing else in the pattern needs explaining.

Reporting only — the figures are the whole job.

Documents1,482this period
Median time3.2slast 24h
Clean runs98.4%no retries
Quality score—not rated yet

Same strip, working as the filter. Press a tile to narrow the list; press it again to clear.

  • Bicycle drivetrain teardownDone
  • Kiln firing, part threeDownloading
  • Field recording — marsh at dawnQueued
  • Lathe restoration, episode 12Done
  • Sourdough hydration testsFailed
  • Bookbinding: the long stitchQueued

Showing all 6 downloads.

Two rules of honesty

A missing value renders as a dimmed em dash, never as zero.See itThe Quality score tile above: —, “not rated yet”. Units stay with the number they measure, so 3.2s and 98.4% never lose their meaning when a tile wraps to a new row.

In the filter form, counts come from the unfiltered set. Pressing Done still shows Queued 2 and Failed 1, so the strip keeps working as a summary while it filters.Tiles are toggle buttons with aria-pressed, not tabs: nothing here is a tab panel.

← Back to all 40 patterns