Styleguide

Design foundations for the theme — colours, typography, spacing, buttons, forms and the grid.

Colours

Brand Colours

The palette. Everything else on this page is built from these, so changing one here recolours the site.

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

The default text, background and line colours. A module on a coloured background (see Backgrounds) swaps these.

Text

  • $color-page-text $color-black #000000
  • $color-page-heading-text $color-brand-primary #0776df
  • $color-page-eyebrow-text $color-grey-xdark #3a3a3a
  • $color-page-link $color-brand-secondary #c2410c

Backgrounds

  • $color-page-bg $color-white #ffffff
  • $color-page-panel-bg $color-grey-xlight #f5f5f5

Lines and focus

  • $color-page-border $color-grey-light #d4d4d4
  • $color-page-focus-outline $color-brand-primary #0776df
  • $color-page-focus-halo $color-white #ffffff

Selection

  • $color-page-text-selection-bg $color-brand-primary #0776df
  • $color-page-text-selection-text $color-white #ffffff

Buttons

One row per style, each as its resting colour, text, then hover. Primary is the default button; a module's button Style setting picks the others.

Primary

  • $color-btn-bg $color-brand-primary #0776df
  • $color-btn-text $color-white #ffffff
  • $color-btn-hover-bg $color-brand-secondary #c2410c
  • $color-btn-hover-text $color-white #ffffff

Outline

  • $color-btn-outline-border $color-btn-bg #0776df
  • $color-btn-outline-text $color-btn-bg #0776df
  • $color-btn-outline-hover-bg $color-btn-bg #0776df
  • $color-btn-outline-hover-text $color-btn-text #ffffff

Forms

Input fields and the messages around them.

Inputs

  • $color-form-input-bg $color-white #ffffff
  • $color-form-input-text $color-brand-primary #0776df
  • $color-form-input-placeholder $color-grey-dark #6e6e6e
  • $color-form-input-border $color-grey #8a8a8a
  • $color-form-input-focus $color-brand-secondary #c2410c
  • $color-form-check-checked-bg $color-brand-secondary #c2410c

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.

Light grey

A heading here

Body copy with a link in it.

Button

Primary brand colour

A heading here

Body copy with a link in it.

Button

Secondary brand colour

A heading here

Body copy with a link in it.

Button

Dark grey

A heading here

Body copy with a link in it.

Button

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.

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
  • $unit 10px

Grid

Buttons

Primary

The default button — module buttons use this.

Outline

No fill, a border in the button colour; hover fills it. On the primary and secondary backgrounds it turns white with the solid button.

Side by side

Modules with two buttons render them as siblings, and the second always takes the outline style — no class needed.

Form

Submit buttons — HubSpot form buttons (.hs-button, .hsfc-Button) extend c-btn--form.

  • c-btn c-btn--form
  • c-btn c-btn--form-small

Form

This is a form
Radio field
Checkbox field

Validation

A field turns red with aria-invalid="true" (or .error, which the older HubSpot forms add) and green with .valid, on text fields, textareas and selects alike. A problem with what was submitted goes in the form's message box, c-form__validation, above the submit button: --error when it was refused, --success when it went through. A module that couldn't load its content uses a Notice (c-notice) instead.

Validation states
  • c-form__validation c-form__validation--error

    Please check the highlighted fields:

    • Enter a valid email address.
    • Choose an option.
  • c-form__validation c-form__validation--success

    Thank you, your details have been saved.

Notices

c-notice

A calm panel for a module's loading, empty or error state: an icon beside a short message, in the page's own text colour. Used by the tag-filtered listing (nothing matches the filters), and for any module that loads its content. Write the message in plain words, and never show a request's own error ("Request failed (500)"). The icon is decorative, and on an error only the icon turns the error colour. A notice the script shows and hides takes the hidden attribute.

  • c-notice

    Nothing matches this selection. Try changing your filters to see more.

  • c-notice (loading)

    Loading…

  • c-notice c-notice--error

    Sorry, we couldn't load this just now. Please try again later.

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
  1. This is a list item in an ordered list
  2. 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
  1. This is a list item in an ordered list
  2. An unordered list is a list in which the sequence of items is not important
  1. This is a list item in an ordered list
  2. An unordered list is a list in which the sequence of items is not important
  1. This is a list item in an ordered list
  2. An unordered list is a list in which the sequence of items is not important
  1. This is a list item in an ordered list
  2. An unordered list is a list in which the sequence of items is not important
  1. This is a list item in an ordered list
  2. An unordered list is a list in which the sequence of items is not important

Bold text

Italic text

Anchor link

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

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