Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Typography

will-nemo edited this page May 7, 2020 · 2 revisions

Back to CSS Guidelines

Fonts

Type Scale

Super Mega Header - 105px (6.176em)

  • Letter Spacing: -1.5px
  • Weights: 300 (Light)

H1 - 66px (3.882em)

  • Letter Spacing: -0.5px
  • Weights: 300 (Light)

H2 - 52px (3.059em)

  • Letter Spacing: 0px
  • Weights: 400 (Regular)

H3 - 37px (2.176em)

  • Letter Spacing: 0.25px
  • Weights: 400 (Regular)

H4 - 26px (1.529em)

  • Letter Spacing: 0px
  • Weights: 400 (Regular)

H5 - 22px (1.294em)

  • Letter Spacing: 0.15px
  • Weights: 500 (Medium)

Subtitle 1 - 17px (1em)

  • Letter Spacing: 0.15px
  • Weights: 400 (Regular)

Subtitle 2 - 15px (0.882em)

  • Letter Spacing: 0.15px
  • Weights: 500 (Medium)

Body 1 - 17px (1em)

  • Letter Spacing: 0.5px
  • Weights: 400 (Regular)

Body 2 - 15px (0.882em)

  • Letter Spacing: 0.25px
  • Weights: 400 (Regular)

Button - 15px (0.882em)

  • Letter Spacing: 1.25px
  • Weights: 500 (Medium)

Caption - 13px (0.765em)

  • Letter Spacing: 0.4px
  • Weights: 400 (Regular)

Overline - 11px (0.647em)

  • Letter Spacing: 1.5px
  • Weights: 400 (Regular)

Readability

Letter Spacing

Line Length

  • Line lengths for body text should ideally be between 40 to 60 characters (8-10 words).
  • In cases with wider line lengths, such as desktop, longer lines should have an upper cap of 120 characters.
  • As the line increases in length, the line height should be increased accordingly. Use the following formula: Adjusted line height = Baseline height * 1.2

Line Height

  • A text’s line height is proportional to its type size.
  • To calculate line height for a type sample, use the following formula: Line-height = Font-size * 1.5

Paragraph Spacing

  • Paragraph spacing should be 1.25x of the type size.
  • To calculate the paragraph spacing for a type sample, use the following formula: Paragraph Spacing = Font-size * 1.25