1.2.0 • Published 5 years ago

@ecl/ec-style-typography-heading v1.2.0

Weekly downloads
136
License
EUPL-1.1
Repository
github
Last release
5 years ago

Headings

Headings and subheadings should be organised in a hierarchy, with heading first, followed by subheadings in order (An H2 will nestle under H1, and H2 under H3, and so on down).

SizeLeadingWeightColourUsage
HeadlineM40pxBold / regularWhiteHeadline on Page header (only used on homepage)
Heading 1XXL44px600White/BlackPage titles (page header)/body of text
Heading 2XL33px600BlackBody of the page
Heading 3L24px600EC GreyBody of the page/Listing components
Heading 4M30px600EC Grey
Heading 5S22pxRegular / uppercaseEC Grey

Line height

Line-height, traditionally known as leading, is one of several factors that directly contribute to readability and pacing of copy. Line-heights are based on the size of the font itself. Ideal line-heights for standard copy has a ratio of 1.66. For example, a type at 1em/16px would have a line-height of 24px (16 x 1.66). The exception to this rule are headings, which need less spacing and therefore have a line-height ratio of 1.1.

Headings line-height: type size x 1.1