Tokens
guidelines
What are design tokens?
Design tokens are a technology-agnostic way to create and share reusable variables.
Colours
Colour plays an important role in defining the visual identity. Using the full suite of colours in accordance with brand guidelines can create a real sense of brand recognition.
Primary
#0093F5
COLOR_PRIMARY_CYAN
#7FCC00
COLOR_PRIMARY_LIME
#002F87
COLOR_PRIMARY_NAVY
Secondary
#004ECC
COLOR_SECONDARY_BLUE
#00A33E
COLOR_SECONDARY_FOREST
#FF7A00
COLOR_SECONDARY_ORANGE
#D50032
COLOR_SECONDARY_RED
#111518
COLOR_SECONDARY_SLATE
#FFC72C
COLOR_SECONDARY_YELLOW
Greyscale
#435460
COLOR_GREYSCALE_DARK
#F3F5F7
COLOR_GREYSCALE_LIGHT
#C3CED5
COLOR_GREYSCALE_MEDIUM
#FFFFFF
COLOR_GREYSCALE_WHITE
System
System colours support and enhance communication with users throughout their journeys. Please be aware that system colours always carry specific meanings, so exercise caution to avoid confusion by using these colours or similar brand colours inappropriately. Never rely solely on system colours for conveying information or requesting actions.
#FFC72C
COLOR_SYSTEM_ATTENTION
#E60F41
COLOR_SYSTEM_DANGER
#002F87
COLOR_SYSTEM_FOCUS
#1192E8
COLOR_SYSTEM_INFORMATION
#767676
COLOR_SYSTEM_NEUTRAL
#1BA158
COLOR_SYSTEM_SUCCESS
#E3660E
COLOR_SYSTEM_WARNING
Theme
#1565C0
THEME_COLOR_ACTION
#FFC72C
THEME_COLOR_ATTENTION
#FFFFFF
THEME_COLOR_BASE_BACKGROUND
#000000
THEME_COLOR_DARKEST
#002F87
THEME_COLOR_FOCUS
#FFFFFF
THEME_COLOR_LIGHTEST
#b0b0b0
THEME_COLOR_PLACEHOLDER
#404040
THEME_COLOR_TEXT_DARK
#FFFFFF
THEME_COLOR_TEXT_LIGHT
Border
Radius
0.5rem
THEME_BORDER_RADIUS_LARGE
0.25rem
THEME_BORDER_RADIUS_MEDIUM
0.125rem
THEME_BORDER_RADIUS_SMALL
Width
0.25rem
THEME_BORDER_WIDTH_MEDIUM
0.125rem
THEME_BORDER_WIDTH_SMALL
0.0625rem
THEME_BORDER_WIDTH_TINY
Size
Theme
1.5rem
THEME_SIZE_LG
1.25rem
THEME_SIZE_MD
1rem
THEME_SIZE_SM
System
1rem
SIZE_16PX
1.125rem
SIZE_18PX
1.25rem
SIZE_20PX
1.5rem
SIZE_24PX
1.75rem
SIZE_28PX
2rem
SIZE_32PX
2.25rem
SIZE_36PX
3rem
SIZE_48PX
3.5rem
SIZE_56PX
4rem
SIZE_64PX
4.5rem
SIZE_72PX
5.75rem
SIZE_92PX
8rem
SIZE_128PX
9rem
SIZE_144PX
Spacer
Theme
1.5rem
THEME_SPACER_LG
1rem
THEME_SPACER_MD
0.5rem
THEME_SPACER_SM
2rem
THEME_SPACER_XL
0rem
THEME_SPACER_ZERO
-1.5rem
THEME_SPACER_NEGATIVE_LG
-1rem
THEME_SPACER_NEGATIVE_MD
-0.5rem
THEME_SPACER_NEGATIVE_SM
-2rem
THEME_SPACER_NEGATIVE_XL
System
0.25rem
SPACER_4PX
0.5rem
SPACER_8PX
0.75rem
SPACER_12PX
1rem
SPACER_16PX
1.25rem
SPACER_20PX
1.5rem
SPACER_24PX
1.75rem
SPACER_28PX
2rem
SPACER_32PX
2.25rem
SPACER_36PX
2.5rem
SPACER_40PX
3rem
SPACER_48PX
4rem
SPACER_64PX
9rem
SPACER_144PX
Typography
The British Gas font is a typeface unique to British Gas. It has a clear, legible and elegant style. A fallback to sans-serif is present to allow the operating system to provide the substitute.
Heading 1
<h1>
, class="h1"
, @extend %h1
or @extend %h1-no-margin
- Value
- Token
THEME_TYPOGRAPHY_X_LARGE_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_X_LARGE_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_X_LARGE_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_X_LARGE_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_X_LARGE_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Heading 2
<h2>
, class="h2"
, @extend %h2
or @extend %h2-no-margin
- Value
- Token
THEME_TYPOGRAPHY_LARGE_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_LARGE_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_LARGE_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_LARGE_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_LARGE_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Heading 3
<h3>
, class="h3"
, @extend %h3
or @extend %h3-no-margin
- Value
- Token
THEME_TYPOGRAPHY_MEDIUM_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_MEDIUM_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_MEDIUM_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_MEDIUM_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_MEDIUM_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Heading 4
<h4>
, class="h4"
, @extend %h4
or @extend %h4-no-margin
- Value
- Token
THEME_TYPOGRAPHY_SMALL_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_SMALL_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_SMALL_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_SMALL_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_SMALL_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Heading 5
<h5>
, class="h5"
, @extend %h5
or @extend %h5-no-margin
- Value
- Token
THEME_TYPOGRAPHY_X_SMALL_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_X_SMALL_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_X_SMALL_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_X_SMALL_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_X_SMALL_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Heading 6
<h6>
, class="h6"
, @extend %h6
or @extend %h6-no-margin
- Value
- Token
THEME_TYPOGRAPHY_TINY_HEADING_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_TINY_HEADING_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_TINY_HEADING_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_TINY_HEADING_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_TINY_HEADING_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Paragraph large
class="p-large"
, @extend %p-large
or @extend %p-large-no-margin
- Value
- Token
THEME_TYPOGRAPHY_LARGE_PARAGRAPH_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_LARGE_PARAGRAPH_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_LARGE_PARAGRAPH_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_LARGE_PARAGRAPH_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_LARGE_PARAGRAPH_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Paragraph feature
class="p-feature"
, @extend %p-feature
or @extend %p-feature-no-margin
- Value
- Token
THEME_TYPOGRAPHY_FEATURE_PARAGRAPH_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_FEATURE_PARAGRAPH_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_FEATURE_PARAGRAPH_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_FEATURE_PARAGRAPH_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_FEATURE_PARAGRAPH_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Paragraph normal
class="p-normal"
, @extend %p-normal
or @extend %p-normal-no-margin
- Value
- Token
THEME_TYPOGRAPHY_NORMAL_PARAGRAPH_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_NORMAL_PARAGRAPH_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_NORMAL_PARAGRAPH_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_NORMAL_PARAGRAPH_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_NORMAL_PARAGRAPH_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Paragraph small
class="p-small"
, @extend %p-small
or @extend %p-small-no-margin
- Value
- Token
THEME_TYPOGRAPHY_SMALL_PARAGRAPH_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_SMALL_PARAGRAPH_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_SMALL_PARAGRAPH_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_SMALL_PARAGRAPH_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_SMALL_PARAGRAPH_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Paragraph caption
class="p-caption"
, @extend %p-caption
or @extend %p-caption-no-margin
- Value
- Token
THEME_TYPOGRAPHY_CAPTION_PARAGRAPH_FONT_FAMILY
- Value
- Token
THEME_TYPOGRAPHY_CAPTION_PARAGRAPH_FONT_WEIGHT
- Value
in the default viewport
- Token
THEME_TYPOGRAPHY_CAPTION_PARAGRAPH_FONT_SIZE_VIEWPORT_DEFAULT
- Value
in the basketball-court viewport
- Token
THEME_TYPOGRAPHY_CAPTION_PARAGRAPH_FONT_SIZE_VIEWPORT_BASKETBALL_COURT
- Value
in the rugby-pitch viewport
- Token
THEME_TYPOGRAPHY_CAPTION_PARAGRAPH_FONT_SIZE_VIEWPORT_RUGBY_PITCH
font-family
font-weight
font-size
Last updated: