3 ms·
> Sites with smaller body text would ideally increase their font size, but sites with the same size or larger text certainly shouldn’t get even bigger. Maybe s
by notpushkin 2y ago
> Sites with smaller body text would ideally increase their font size, but sites with the same size or larger text certainly shouldn’t get even bigger.
Maybe something like this?
html { font-size: clamp(16px, 1.5em, 24px); }
- necovek 2y agoI think that's in the right direction, but I think what you really want is to clamp at max(24px, 1em) when 1em is set to more than that in a browser.