Does the font on this page look better than the rest of the website? Is it easier to read than the other pages? Has it scaled well with the device you are viewing it on? This seems like it can get subjective quickly... I'll just go through my thought process on this and talk about the styles I have used and how I would tweak them for a better desired result.
I created samples of all headings and paragraph text, and samples of those same elements using a
To elaborate on the
The above is not by any means the best option (maybe not even a good one - I'm not a designer 🤷). It's just the results of some experimenting I did to try to get a baseline to use on websites. One way to make this a little more precise would be to use
Also on this page, I've added a
Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui, itaque adipisci impedit saepe voluptatum, nisi quibusdam expedita ipsum nobis odit aliquam excepturi dolorum corporis nemo consectetur optio, sed commodi maiores!
Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit voluptatibus explicabo accusamus voluptates dolorum officia! Asperiores laborum vero alias, totam in ut deserunt, explicabo itaque iure repellat ipsam sapiente ea?
/* Better Typography? */
:root {font-size: clamp(18px, calc(16px + 0.2083vw), 24px);}
p {font-size: 1rem;}
h1 {font-size: 2rem;}
h2 {font-size: 1.85rem;}
h3 {font-size: 1.6rem;}
h4 {font-size: 1.45rem;}
h5 {font-size: 1.3rem;}
h6 {font-size: 1.15rem;}
small {font-size: 0.67em;}
.elementor-section.elementor-section-boxed > .elementor-container {
max-width: clamp(1140px, 59.675vw, 1920px);
}
After I published this post, it dawned on me that I could have done side-by-side comparisons to whatever the default typography is I am using by adding my current theme's elements in one column, then adding the "better typography" elements in the column beside it. Then, the above could be simulated by setting the "better typography" column's font size via