Menu

The text on our 38 pages is set in 23 font sizes, and 95 per cent of the size classes in the source are pixel literals
📰

The text on our 38 pages is set in 23 font sizes, and 95 per cent of the size classes in the source are pixel literals

DEV Community: nextjs·Daniel Pertu·2 days ago
#bN6cDnDb
#devtonextjs#devto#dev#size#sizes
Long article (721 words) — no AI summary yet.
Reading 0:00
15s threshold

I have written about font sizes on two sister sites: one where arbitrary pixel values dominated and one where I doubled the root size . Neither measured notifio.app , so this is the same question asked of Notifio, with the answer weighted by what people actually read.

The method

A headless Chromium visited all 38 URLs in the sitemap at 1280 by 800. For every visible text node it read the computed font-size of the parent and added the node's character count to that size's total. Hidden elements were skipped. That gives 214,155 characters, which is a fair stand-in for "how much of the site is set at each size".

Counting elements instead would have been misleading. A nav with ten small links would outweigh a paragraph with a thousand words.

What came back

Twenty-three distinct computed sizes.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.