Subheadings

Give support or add meaning to a heading
REI Co-op
Style
Scale
Generic classes

Subheadings give support or add meaning to a heading. Never position a subheading on a page without pairing it with a heading style. Because subheadings are supportive, they should always be smaller in size than the heading they reinforce.

TypePurpose
SansSans-serif subheadings are set in Graphik. Pair them with serif or serif strong headings. Pairing a sans subheading with a sans heading is also acceptable.

Pairing with headings

Heading and subheading combinations should have the appropriate contrast and hierarchy. Always make sure headings are larger than the accompanying subheading.

Only pair serif headings with sans subheadings.

  <cdr-text
    class="cdr-text--heading-serif-strong-900">
      When you gear up, we give back
      <cdr-text
       class="cdr-text--subheading-sans-500 stack">
       Treat yourself to sweet gear
       </cdr-text>
  </cdr-text>
  <cdr-text
    class="cdr-text--heading-sans-600">
      When you gear up, we give back
      <cdr-text
       class="cdr-text--subheading-sans-300 stack">
       Treat yourself to sweet gear
       </cdr-text>
  </cdr-text>
Do
Heading correctly paired with a subheading.

Do pair headings with subheadings.

Don't
Subheading incorrectly used instead of a primary heading.

Don't use a subheading as a primary heading or section heading.

Color

The color for subheadings should complement heading colors. If a heading is cdr-color-text-primary, consider using cdr-color-text-secondary to create the correct hierarchy.

Subheadings are not semantic headings. While it's possible to visually style a subheading as a heading, it will not be navigable using a screen reader. Using a paragraph tag will allow for the correct hierarchy for a variety of users.

Do
Subheading with correct use of a paragraph tag.

Do use paragraph or span tags for subheadings.

Don't
Subheading with incorrect use of heading tags

Don't use heading tags for subheadings.