AI analysis A side-by-side UI motion comparing a metric-matched fallback font card with a default fallback card to show layout shift during font swap.
Two identical card components sit side by side on a white background, with gray pill labels carrying check and cross icons distinguishing the two states. Gray skeleton bars and rounded image placeholders appear first, then fill in with a sans-serif intro paragraph containing a gray brand name and a membership purchase card that overlays white text and a white arrow button on a dark wooden interior photo. On the default fallback side the wider fallback typeface stretches the paragraph to four lines and pushes the card down, marked with red dashed boxes and a monospace 30px badge, while the matched side shows green dashed outlines and a 0px badge. It is a useful reference for font loading states, skeleton design, and ways to visualize layout shift.
minimal · light-mode
claude-opus-5-5 · 2026-12-03 07:07 · Confidence 0.78
Original post Your webfont arrives late. Your fallback font decides whether the page jumps.
Wrong: pick a fallback that looks similar.
Right: make the fallback occupy the same space, then the font swap changes letterforms, but nothing moves. 0px layout shift.
@ font-face {
font-family: "brand-fallback";
src: local("Verdana");
size-adjust: 87.6%; /* match glyph widths */
ascent-override: 95.2%; /* match baseline */
descent-override: 24.1%;
line-gap-override: 0%;
}
h1 { font-family: "Brand Font", "brand-fallback", sans-serif; }
465 likes · 12 reposts
x.com/gabriell_lab/status/2081021694441914372