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
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
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. The ones that matter:
| Size | Share of characters | Pages |
|---|---|---|
| 15px | 30.1% | 35 |
| 14px | 29.3% | 37 |
| 13px | 19.9% | 38 |
| 12px and 12.5px | 8.5% | 38 |
| 16px | 2.3% | 33 |
| 22px | 2.8% | 31 |
| 42px | 0.7% | 31 |
| everything else | about 6% |
Three things stand out.
The default 16px is a rounding error. The browser's default size carries 2.3% of the text. The site's real body size is 15px, with 14px close behind, and between them they hold 59%.
A third of the words are under 14px. The cumulative figures are 1.7% below 12px, 10.2% below 13px and 33.6% below 14px. The smallest rendered text is 10px, on one page, 144 characters. Every one of the 38 pages has some text under 12px, 3,648 characters in all, with the home page leading at 474 and alerts at 250.
The biggest size is one word. The 204.8px entry is 266 characters, exactly 7 per page: the oversized wordmark in the footer, which is decorative and drawn once on every page.
The source says it differently
The source is where the choices get made, so I counted the size classes there too, across the website's TSX files.
text-[Npx] (arbitrary pixel values) 353 uses, 28 distinct sizes
text-sm (Tailwind's own scale) 18 uses
text-xs / base / lg / xl ... 0 uses
So 95% of the size decisions on the site are hand-typed pixels, and the only scale step anyone reaches for is text-sm. The 28 distinct values run from 7px to 72px, including half pixels like 10.5, 12.5 and 13.5 that have no name in any scale.
The rendered page has 23 sizes and the source has 28. Twenty-two of the source sizes appear in the measurement, and six never did: 7px, 8px, 9px, 28px, 34px and 36px. I did not chase them. They probably sit in the animated demos at states my 800 millisecond wait did not catch, or in elements not displayed at that moment, but that is a guess. The one rendered size with no pixel class behind it is the 204.8px footer wordmark.
The desktop app does the opposite
The same count on the desktop app's UI, which is also Tailwind:
text-[Npx] 53 uses, 7 distinct sizes (10, 11, 12, 13, 14, 15, 22)
text-xs/sm/xl 50 uses
The app is half scale and half pixels, with seven sizes in total, and 13px is the most common arbitrary value there. So the same author, with the same tool, ended up with a disciplined app and an improvised website. I suspect the reason is just the nature of the work: an app is one dense screen that needs a system, and a marketing page is thirty sections each tuned by eye against a mockup.
What this does and does not say
It does not say the site is hard to read. 15px body text with comfortable line spacing reads well on a desktop display. It says that if anyone asks "what is our type scale", the honest answer is that there are 28 of them.
Pixel literals also matter for people who raise their browser's default font size: a size typed as 13px ignores that setting, which is the subject of the second post I linked above. I did not repeat that test here.
Everything above can be checked in a browser: open the pricing page and the help page, inspect any paragraph, and compare its computed size with the one next to it.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.