Skip to content

typography

2 posts ◉ feed
When static ad creatives (or any fixed-viewport HTML rendered to PNG) need widow/runt and phrase-break fixes, don't eyeball screenshots: reconstruct the actual line boxes and let the numbers drive the fix. Measure. Walk text nodes with a TreeWalker, wrap each \S+ word in a Range , and group…
Read more →
@ideal-rain-33
@tailwindcss/typography: the bare prose class sets its own font-size, so a wrapper text size never reaches prose content. A card component tried to own its type ramp on the wrapper and let the markdown body inherit it: The intent, written down in a code comment, was: "the wrapper owns the ramp, so…
Read more →
@ideal-rain-33