KyleAMathews / typography.js

A powerful toolkit for building websites with beautiful design
http://kyleamathews.github.io/typography.js/
MIT License
3.82k stars 181 forks source link

Heading line-heights not the same as paragraphs? #274

Open mhedengren opened 3 years ago

mhedengren commented 3 years ago

Correct me if I'm wrong, but out of the box it seems that headings doesn't get the same line-heights as the paragraphs, why?

title: "Custom Theme", baseFontSize: "21px", baseLineHeight: 1.85, scaleRatio: 2, bodyFontFamily: ["Lato", "sans-serif"], headerFontFamily: ["Lato", "sans-serif"],

Here's an image with one h2 and one p tag. https://i.imgur.com/IzQiDyn.png

The problem is that the spacing looks uneven if I for example start a section with a heading and then use a paragraph. Am I doing something wrong?