Typography
Description
Typography is our system of fonts and text styles. It involves the use of typefaces and the organisation of those typefaces to create readable, usable and user-friendly interfaces. Effective typography enhances readability.
Typography
Interactive Example
Guidelines for use
Font families
- Primary font: Shelter uses Barlow font for all digital products and services, creating a uniformed appearance. This font is the sole option for both headings and body text.
- Condensed font: used for specific content that needs to be emphasised.
- Fallback font: apple-system, BlinkMacSystemFont, Roboto, sans-serif; if Barlow hasn't loaded yet (or at all), the browser checks for these fonts in this order and loads the first one that is available.
Font weights
- Normal (400): Used for most body text and standard UI text.
- Bold (700): Used for headings, subheadings, and text requiring emphasis.
Font size
- Small: Desktop 14px / Mobile 14px
- Base: Desktop 18px / Mobile 18px
- H4: Desktop 21px / Mobile 21px
- H3: Desktop 25px / Mobile 25px
- H2: Desktop 36px / Mobile 28px
- H1: Desktop 50px / Mobile 36px
Use Cases
Font sizes should be understood as structural, not visual. Font sizes and their associated HTML tags are one of the main elements that give structure to a webpage. Correct semantic structure includes font sizes. It ensures that users can easily skim the page for the information they want by looking at headings (F-shaped reading pattern). It also makes sure that users of assistive technology have an equal experience to other users.
The font sizes are pre-determined for each style and consistent across the website.
- Give a page structure by choosing the correct font size
- all headings in sentence case (only capitalise the first letter)
- H1 only for the main page title
- H2 for the main headings, these tell users what each section is about
- H3 for subheadings, these create structure within each section
- H4 sparingly, only when essential
- Heading levels must be in the correct order for accessibility compliance. That means an H3 should not come before the first H2 on the page.
- Headings are important for scannability, structure and SEO. Clear, descriptive headings are the easiest way for a user to scan the page and locate the information they need.
- Barlow is the standard font across the website.
- Barlow Bold should only be used when we want to place emphasis on certain words or phrases. Use it sparingly for maximum impact.
- Uppercase should only be used sparingly for maximum impact.
- Barlow Condensed: only use for specific content that needs to be emphasised. Only use it for key pages, H1s or labels.
- Do not choose a text size based on aesthetics
- Do not use headings just to highlight text
- Do not skip heading levels
Design Resources
Implementation
For implementation guidance in Contentful, see Typography.
Accessibility
There are no strict accessibility requirements for visual font sizing beyond ensuring that it is readable for users. Our pre-determined fonts are readable, responsive, and have the right contrast ratio. If any issues come up with our fonts during testing, they should always be brought up for review.
Heading levels must be in the correct order for accessibility compliance. Font sizes and their associated HTML tags are one of the main elements that give structure to a webpage. Screen reader users navigate using heading levels so they need to be in a logical order.
WCAG rules:
- SC 1.4.4: Resize Text
- Website lets users resize text up to 200% (for example low vision)
- SC 1.3.1: Info and Relationships
- Ensuring that information and relationships that are implied by visual or auditory formatting are preserved when the presentation format changes.
- We fail this rule if we make typographic choices only based on visual appearance
- Responsive behaviour: Headings automatically reduce in size on smaller screens to maintain hierarchy and prevent wrapping.
All Typography variants are designed to meet WCAG 2.1 Level AA standards. This includes appropriate colour contrast ratios, keyboard navigation support, screen reader compatibility, and minimum touch target sizes.
For detailed information about our accessibility standards, see our Accessibility Statement.