Typography provides a consistent, easy-to-read experience, via a clear visual hierarchy of text styles. The pattern defines the font face, as well as the size, weight and spacing in various different situations. This pattern does not work in isolation and required both the spacing and stacking patterns to work effectively.
Use standardised typographical styles and a stacking mechanism, to ensure the consistent application of meaningful styles and spacings.
| Default typeface | Open Sans |
|---|---|
| Heading typeface | Raleway |
| Default size | --ts0 (1rem - 16px) |
| Line height | 150% |
| Letter spacing | default |
| Weights | Regular - 400 |
| Color | Text default - var(--text-primary) - see text colours as defined in colours |
Different line heights are required for easy scanning of small bodies of copy, versus comfortable reading of larger bodies of text. The design system has 3 line heights:
Default --line-height-default - 150% | For general reading of all content (e.g. paragraphs of body text). A line height of 150% meets TitleIteme WCAG recommendation for optimal readability. |
|---|---|
None --line-height-none - 100% | For elements where no line height is required, this should be used sparingly and with caution. |
Small --line-height-small - 125% | For easier scanning of smaller bodies of copy or large text, such as titles. The narrower line heights are easier to scan down the left-hand side of the content, so suitable for small cards or panels which are designed to be scanned and large text such as titles, where if the line height is too great, the second line can seem disassociated with the first. |
Large --line-height-large - 200% | Used where more breathing space is required. The large should be used sparingly as there is sometimes difficulty associating one line with the next if the spacing is too large. |
When the preferred typeface is not available the nature of CSS is to fallback to the next specified typeface that is available. The following table presents the fall back order.
| Open Sans | The quick brown fox jumps over the lazy dog |
|---|---|
| Raleway | The quick brown fox jumps over the lazy dog |
| Sans serif | The quick brown fox jumps over the lazy dog |
1Default: font-family: 'Open Sans', sans-serif;2Headings: font-family: 'Raleway', sans-serif;
The typographic scale is used to communicate visual hierarchy throughout the content. The typographic scale has a limited set of font sizes that work together and help maintain a consistent type scale across all digital touch points.
| --ts7 | Type scale 64 |
|---|---|
| --ts6 | Type scale 48 |
| --ts5 | Type scale 40 |
| --ts4 | Type scale 32 |
| --ts3 | Type scale 24 |
| --ts2 | Type scale 20 |
| --ts1 | Type scale 18 |
| --ts0 | Type scale 16 |
| --ts-1 | Type scale 14 |
| --ts-2 | Type scale 12 |
| Regular - 400 | The quick brown fox jumps over the lazy dog |
|---|---|
| Medium - 500 | The quick brown fox jumps over the lazy dog |
| Semi Bold - 600 | The quick brown fox jumps over the lazy dog |
| Bold - 700 | The quick brown fox jumps over the lazy dog |
Heading elements need to be used in relation to the content hierarchy of the page, they should not be used to output a desired font style. For cases where a heading element style is required there is an associated class available which can be used instead.
| h1 | --ts4 - Heading level 1 |
|---|---|
| h2 | --ts3 - Heading level 2 |
| h3 | --ts2 - Heading level 3 |
| h4 | --ts1 - Heading level 4 |
| h5 | --ts0 - Heading level 5 |
| h6 | --ts0 - Heading level 6 |
| Element | Size | Weight | Line height | Colour | Example |
|---|---|---|---|---|---|
| h1 | 2rem (32px) --ts4 | Medium - 500 | 125% | Text default var(--text-primary) | The quick brown fox jumps over the lazy dog |
| h2 | 1.5rem (24px) --ts3 | Medium - 500 | 125% | Text default var(--text-primary) | The quick brown fox jumps over the lazy dog |
| h3 | 1.25rem (20px) --ts2 | Medium - 500 | 125% | Text default var(--text-primary) | The quick brown fox jumps over the lazy dog |
| h4 | 1.125rem (18px) --ts1 | Medium - 500 | 125% | Text default var(--text-primary) | The quick brown fox jumps over the lazy dog |
| h5 | 1rem (16px) --ts0 | Semi Bold - 600 | 125% | Text default var(--text-primary) | The quick brown fox jumps over the lazy dog |
| h6 | 1rem (16px) --ts0 | Medium - 500 | 125% | Text default | The quick brown fox jumps over the lazy dog |
| Paragraph | 1rem (16px) --ts0 | Regular - 400 | 150% | Text default | The quick brown fox jumps over the lazy dog |
| Paragraph - large | 1.125rem (18px) --ts1 | Regular - 400 | 150% | Text default | The quick brown fox jumps over the lazy dog |
| Paragraph - small | 0.875rem (14px) --ts-1 | Regular - 400 | 150% | Text default | The quick brown fox jumps over the lazy dog |
| Paragraph - extra small | 0.75rem (12px) --ts-2 | Regular - 400 | 150% | Text default | The quick brown fox jumps over the lazy dog |
| Strong | Any size | Semi bold - 600 | Any colour | The quick brown fox jumps over the lazy dog | |
| Emphasis / Italic | Any size | Any weight | Any colour | The quick brown fox jumps over the lazy dog | |
| Link | 1rem (16px) | Regular - 400 | 150% | Link default | The quick brown fox jumps over the lazy dog |
| Ordered list | 1rem (16px) | Regular - 400 | 150% | Text default |
|
| Unordered list | 1rem (16px) | Regular - 400 | 150% | Text default |
|
| Definition list | 1rem (16px) | Regular - 400 | 150% | Text default |
|
| Abbreviations and Acronyms | 1rem (16px) | Regular - 400 | 150% | Text default | DOB |
| Element | Size | Weight | Line height | Colour | Example |
|---|---|---|---|---|---|
| Bullet lists | 1rem (16px) | Regular - 400 | 150% | Text default |
|
Setting a maximum length of 80 characters on paragraphs ensures easy readability for all users. This makes it possible for users with certain reading or vision disabilities that have trouble keeping their place when reading long lines of text to view and interact with the content more efficiently. This technique also allows for column width to grow wider as font sizes increase, which will reduce the possibility of clipping as the text size increases.
With paragraphs longer than 80 characters, reading is significantly slower, with the user taking longer to locate the beginning of the next reading line