Text styles
Use headings, body text and supporting text in a clear, readable hierarchy.
We use the web-based font Inter in our products and services.
The following styles are the same as the GOV.UK Design System typography examples. They are here to demonstrate how the Inter typeface is applied to core GOV.UK typography styles.
Headings
Use heading tags, such as <h1>, <h2> and so on, to tag the headings on a page. Apply a heading class, like govuk-heading-l, to style them visually. Style headings consistently to create a clear content structure throughout your service.
If your page has lots of long-form content, start with govuk-heading-xl for an <h1>, govuk-heading-l for an <h2>, and so on.
Mark up headings semantically using the appropriate heading level and use a corresponding heading class to apply styling.
| Example | Class |
|---|---|
XL heading |
govuk-heading-xl |
Large heading |
govuk-heading-l |
Medium heading |
govuk-heading-m |
Small heading |
govuk-heading-s |
<h1 class="govuk-heading-l">govuk-heading-l</h1>
<h2 class="govuk-heading-m">govuk-heading-m</h2>
<h3 class="govuk-heading-s">govuk-heading-s</h3>
Headings with captions
Sometimes you may need to make it clear that a page is part of a larger section or group. To do this, you can use a heading with a caption above it.
<span class="govuk-caption-l">Caption</span>
<h1 class="govuk-heading-l">Page heading</h1>
Paragraphs
The default font size is 19px on large screens and 16px on smaller screens.
You can add classes to create a lead paragraph or smaller body copy to convey hierarchy on your page.
If you need a summary or introductory paragraph, you can use the larger font govuk-body-l. Lead paragraphs use 24px type on a desktop. Use a single lead paragraph at the top of the page, if needed.
| Example | Class |
|---|---|
Body |
govuk-body |
Large body |
govuk-body-l |
Small body |
govuk-body-s |
<p class="govuk-body">Body copy</p>
<p class="govuk-body-l">Lead paragraph</p>
<p class="govuk-body-s">Small supporting copy</p>
Responsive behaviour
Our type scale changes based on screen size.
The ‘large screens’ scale is used when the screen is wider than the tablet breakpoint (640px).
| Element | Small screen | Large screen | Weight |
|---|---|---|---|
| H1 | 32px / 35px | 48px / 51px | semibold/600 |
| H2 | 24px / 27px | 32px / 35px | semibold/600 |
| H3 | 18px / 21px | 24px / 27px | semibold/600 |
| H4 | 16px / 19px | 19px / 21px | semibold/600 |
| Lead paragraph | 18px / 23px | 24px / 30px | light/300 |
| Body | 16px / 21px | 19px / 25px | regular/400 |
| Small | 14px / 18px | 16px / 21px | regular/400 |
Section break
You can use the govuk-section-break classes on an <hr> element to create a thematic break between sections of content, govuk-section-break has class-based modifiers for different-sized margins.
By default govuk-section-break is only visible by its margin. You can add the govuk-section-break--visible class to make it visible with a separator line.
<hr class="govuk-section-break govuk-section-break--xl govuk-section-break--visible">
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible">
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
<hr class="govuk-section-break govuk-section-break--visible">