Skip to content

Styleguide

What is this?

The Styleguide serves as a digital brand guideline to help with the website build. The goal of a styleguide is to improve consistency, quality and communication across the UI, making the design and development process more efficient and focused.

This Styleguide is to establish a shared vocabulary between designer and developer, and providing clear, discoverable guidance around design and development best practices.

How to use it

Each section showcases common style elements across the project with a specification on the right column on how to use it within snippets/sections.

Brand

This section displays all the brand marks assiocated with the client/project.

Logos

Main logo
{% render 'global_site-logo' %}
Inverse logo
{% render 'global_site-logo' with type: 'inverse' %}

Colours

Brand

Colour Primary
$color-primary
Colour Secondary
$color-secondary

Greys

Colour Grey Dark
$color-border
Colour Grey Medium
$color-border
Colour Grey Light
$color-border-light

Typography

Colour Text Primary
$color-text-primary
Colour Text Light
$color-text-light

Support Colours

Colour Success
$color-success
Colour Warning
$color-warning
Colour error
$color-accent

Buttons

Primary

Button Primary
.button .button--primary
Button Primary Inverse
.button .button--primary .button--inverse

Secondary

Button Secondary
.button .button--secondary
Button Secondary Inverse
.button .button--secondary .button--inverse

Tertiary

Button Tertiary
.button .button--tertiary
Button Tertiary Inverse
.button .button--tertiary .button--inverse

Icons

Direction

snippets/icon-direction
{% render 'icon_direction' with icon: '[icon]' %}
arrow-up
caret-up
caret-down
caret-left
caret-right

Miscellaneous

snippets/icon-misc
{% render 'icon_misc' with icon: '[icon]' %}
tick
email
phone
account
cart
hamburger
search
share
close
plus
minus
lock
grid-1
grid-2
grid-3
play
heart
heart-filled
< pencil
comment
logout

Social

snippets/icon-social
{% render 'icon_social' with icon: '[icon]' %}
facebook
fancy
instagram
pinterest
twitter
vimeo
youtube
linkedin
snapchat
rss

Payment

snippets/icon-payment
{% render 'icon_payment' with icon: '[icon]' %}
visa
mastercard
maestro
amex
paypal
applepay
klarna
sofort
eps
gpay
shopify

Spacing

Base Spacing

For paddings and margins. Can also be used to style widths and heights of smaller elements

0.25rem
$spacing-4
0.5rem
$spacing-8
0.75rem
$spacing-12
1rem
$spacing-16
1.5rem
$spacing-24
2rem
$spacing-32
2.5rem
$spacing-40
3rem
$spacing-48

Large Layout Spacing

Used to style dimensions of larger elemens e.g. buttons

4rem
$span-64
6rem
$span-96
8rem
$span-128
10rem
$span-160

Typography

Display headers
D1
.d1
D2
.d2
D3
.d3
Basic headers
H1
h1, .h1
H2
h2, .h2
H3
h3, .h3
H4
h4, .h4
H5
h5, .h5
H6
h6, .h6
Body Styles
Body 1
p, .body-1
Strong
strong
Text-link
a, .text-link
Body 2
.body-2
caption
.caption
small
small
label
Block Styles
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus imperdiet nulla ut ornare congue. Sed laoreet suscipit nunc"
blockquote, .blockquote
  • Unordered list item
  • Unordered list item
  • Unordered list item
    • Unordered list sub-item
    • Unordered list sub-item
    • Unordered list sub-item
ul
  1. Ordered list item
  2. Ordered list item
  3. Ordered list item
    1. Ordered list sub-item
    2. Ordered list sub-item
    3. Ordered list sub-item
ol
We'll never share your email with anyone else.
Multiple options
Radio (input + label)