Five Small CSS Techniques I Reach For on Every Project
Tabular numerals, scroll-margin-top, color-mix(), and the quiet polish that makes an interface feel handcrafted.
Most of what makes a website feel carefully built comes down to small typographic and layout details that readers feel rather than consciously notice.
Tabular numbers for lists
Adding font-variant-numeric: tabular-nums to post dates and reading times aligns every row vertically like a printed table of contents.
color-mix() for soft tints
.blog-callout {
background: color-mix(in oklab, var(--blog-accent) 7%, transparent);
border-left: 3px solid var(--blog-accent);
}
With color-mix(), a single accent variable automatically generates soft callout tints, subtle borders, and hover states in both light and dark themes.
Alongkot
I build small web tools, obsess over typography and fast interfaces, and spend weekends on mountain trails. This is my personal notebook — no algorithms, no popups, just things worth keeping.
More about meReader notes (0)
- No notes yet. Leave a thought below.