Styleguide
Design foundations for the theme — colours, typography, spacing, buttons, forms and the grid.
Colours
Brand Colours
Brand
-
$color-brand-primary#0776df -
$color-brand-secondary#c2410c
Neutrals
-
$color-black#000000 -
$color-grey-xdark#3a3a3a -
$color-grey-dark#6e6e6e -
$color-grey#8a8a8a -
$color-grey-light#d4d4d4 -
$color-grey-xlight#f5f5f5 -
$color-white#ffffff
Feedback
-
$color-validation-error#c00000 -
$color-validation-success#008000
Page
Text
-
$color-page-eyebrow-text$color-grey-xdark #3a3a3a -
$color-page-heading-text$color-brand-primary #0776df -
$color-page-link$color-brand-secondary #c2410c -
$color-page-text$color-black #000000 -
$color-page-text-selection-text$color-white #ffffff
Backgrounds
-
$color-page-bg$color-white #ffffff -
$color-page-panel-bg$color-grey-xlight #f5f5f5 -
$color-page-text-selection-bg$color-brand-primary #0776df
Lines and focus
-
$color-page-border$color-grey-light #d4d4d4 -
$color-page-focus-halo$color-white #ffffff -
$color-page-focus-outline$color-brand-primary #0776df
Buttons
Default
-
$color-btn-bg$color-brand-primary #0776df -
$color-btn-text$color-white #ffffff
Hover
-
$color-btn-hover-bg$color-brand-secondary #c2410c -
$color-btn-hover-text$color-white #ffffff
Forms
Inputs
-
$color-form-check-checked-bg$color-brand-secondary #c2410c -
$color-form-input-bg$color-white #ffffff -
$color-form-input-border$color-grey #8a8a8a -
$color-form-input-focus$color-brand-secondary #c2410c -
$color-form-input-placeholder$color-grey-dark #6e6e6e -
$color-form-input-text$color-brand-primary #0776df
Messages
-
$color-form-required-text$color-validation-error #c00000 -
$color-form-validation-error$color-validation-error #c00000 -
$color-form-validation-success$color-validation-success #008000
Backgrounds
Module backgrounds
Modules with a Background setting can sit on any of these, and their headings, text, links and buttons switch to suit. Set the colours per brand in the Surfaces section of _settings.colors.scss; the build warns when a pair falls below WCAG AA.
Typography
Fonts
Webfonts loaded by the theme (templates/layouts/base.html) — every sample below renders the actual loaded cut. Set them with $global-font-family-heading and $global-font-family.
Inter
Headings — h1 to h6 and every heading style. Self-hosted by the theme.
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz 0123456789
Inter
Body copy, eyebrows, buttons and forms — regular (400) and bold (700). Fallback stack: sans-serif. Self-hosted by the theme.
Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz 0123456789
- Regular · 400 The quick brown fox jumps over the lazy dog.
- Italic · 400 The quick brown fox jumps over the lazy dog.
- Bold · 700 The quick brown fox jumps over the lazy dog.
- Bold Italic · 700 The quick brown fox jumps over the lazy dog.
Type scale
Sizes are fluid — each readout shows font · computed size / line height · weight at the current viewport width.
- Heading H0
- Heading H1
- Heading H2
- Heading H3
- Heading H4
- Heading H5
- Heading H6
- Eyebrow heading
- Paragraph large — the quick brown fox jumps over the lazy dog.
- Paragraph — the quick brown fox jumps over the lazy dog.
- Paragraph small — the quick brown fox jumps over the lazy dog.
- Paragraph extra small — the quick brown fox jumps over the lazy dog.
Buttons
Form
Space
Spacing scale
Fluid values scale with the viewport — the px readout is live at the current size.
-
$unit-2xs--space-2xs -
$unit-xs--space-xs -
$unit-s--space-s -
$unit-m--space-m -
$unit-l--space-l -
$unit-xl--space-xl -
$unit-2xl--space-2xl -
$unit-3xl--space-3xl -
$unit-4xl--space-4xl -
$unit-5xl--space-5xl -
$unit10px
Grid
Placeholder images
From HubDB
Any image field left empty shows one of these. Add, remove or replace them in the placeholder_images HubDB table, then publish the table.
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
CMS Content (Rich Text)
H1 Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
H2 Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
H3 Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
H4 Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
H5 Heading
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
This is a blockquote. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque hendrerit purus ex, eget molestie quam rutrum vitae. In egestas faucibus magna, vel malesuada mi tempor a.
- This is a list item in an unordered list
-
An unordered list is a list in which the sequence of items is not
important
- This is a list item in an unordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an unordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An ordered list is a list in where the sequence of items is important
- This is a list item in an unordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an unordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An unordered list is a list in which the sequence of items is not important
- This is a list item in an ordered list
- An unordered list is a list in which the sequence of items is not important
Bold text
Italic text
This text contains subscript text.
This text contains superscript text.
This is preformatted text
| Column 1 | Column 2 | Column 3 |
| Lorem ipsum dolor sit amet | Lorem ipsum | Lorem ipsum dolor sit |
| Lorem ipsum | Lorem ipsum dolor sit | Lorem ipsum dolor sit amet, consectetur adipiscing elit |
| Lorem ipsum dolor sit amet | Lorem ipsum | Lorem ipsum dolor sit |