Continuing the discussion from We need a "large fonts" and "small fonts" theme to ship with Discourse:
I did a quick audit of where we currently stand with font definitions across Discourse, and well… we have 50+ uniquely defined
font-size values across the app (I’m not even going to begin considering the possible amount of variation from cascading ems). Some of these are equivalent to each other, but we need to simplify and be consistent.
.286em .571em .7em .714em .75em .8em .857em .9em .929em .93em 1em 1.05em 1.071em 1.1em 1.143em 1.17em 1.2em 1.214em 1.286em 1.3em 1.4em 1.429em 1.5em 1.571em 1.6em 1.643em 1.714em 1.786em 1.857em 2em 2.1em 2.143em 2.25em 2.286em 2.571em 3em .875rem 9px 11px 12px 13px 14px 15px 16px 18px 24px 28px 35px 36px 60px 30% 80% 85% 90% 110% 15
An easy first step is to cut the px and % definitions in favor of ems. Following that, it would make sense to start looking at values like
.9em .929em .93em and combining them to simplify the massive number of similar-but-different font sizes we have.
More to come