Typography
Heading
The Somewhere heading scale, H1–H6, in DM Sans semibold.
import { Heading } from "@somewhere-com/ds";
<Heading level={1}>Hire exceptional remote talent</Heading>
<Heading level={2}>Built for global hiring</Heading>
Props
level:1–6. It sets both the element (h1–h6) and the size: 4rem, 3rem, 2rem, 1.5rem, 1.25rem, 1rem.
At 767px and below, H1 uses the H2 size and H2 uses the H3 size.
Headings inherit their colour, so they read correctly on inverse sections.
The level is the document outline, and screen readers navigate by it. Use one H1 per page and don’t skip levels for visual size. If you need a different look, still use the correct level.
Examples
Rendered from the Storybook stories. To change props and see every state live, open Heading in Storybook.