Skip to content
Máté Homolya
Work

typescale

A grid-aligned typographic scale: font sizes chosen by cap height or x-height so every baseline lands on the grid.

Year
2024
SvelteUnoCSSTypography
Two headings set on a baseline grid, comparing alignment

A UnoCSS preset and Svelte components for vertical baselining. Sizes come from the font's own metrics, so the cap height or x-height is a whole number of grid units, and a ruler and grid overlay help debug alignment.