Typography

A type scale on a 4px grid. A heading takes one class from the title family and nothing else.

Edit page

Scale

Sizes and line heights in pixels. Every line height is a multiple of four.

ClassSize / lineWeightRole
title-intro56 / 64600the hero h1, one per site
title-intro-sub20 / 32400the line under the hero h1
title-page38 / 48600h1 of an inner page, set by Page
title-section30 / 40600a section heading
title24 / 32600a heading inside text
title-lead20 / 32400a lead paragraph
title-sub20 / 28600a subheading
title-card16 / 24600a card or list heading
title-mini14 / 20600a label at small size
title-label12 / 20600an uppercase label above a heading

Samples

title-label

title-section

title

title-sub

title-lead, a lead paragraph that introduces a section.

title-card

title-mini

Body text, 16 / 24, from $text and $line.

On small screens

Sizes in px
              desktop   md    sm    xs
title-intro        56   48    40    32
title-page         38         30
title-section      30         24
title-lead         20         18

Rules

  • One class from the family per heading. The class owns size, weight, line height and the gap below.
  • Alignment and width go on the element around the heading, not on the heading.
  • title-intro belongs to the hero. Below it the largest heading is title-section.
  • No title sets a font: the face comes from $basic, and ff-intro switches to $intro.