Style guide

This page demonstrates all the visual styles of Stromlo Energy's website.

Wrapper system

The max-width system quickly provides a max-width to section content. This is distinct from using columns for flowing content or section containers.

At mobile sizes, all wrappers extend to the equivalent of 12col (100% of available width).

max-width (12col by default)
max-width: 100%
left-right margin: 0rem
max-width 11col
max-width: 91.66%
left-right margin: 1.25rem
max-width 10col
max-width: 83.33%
left-right margin: 1.25rem
max-width 8col
max-width: 66.66%
left-right margin: 1.25rem

Spacer system

The spacer system is based on REM units.

spacer .25
spacer .5
spacer .75
spacer 1 (d)
spacer 1.5
spacer 2
spacer 2.5
spacer 3
spacer 4
spacer 5
spacer 6
spacer 7
spacer 8.75

Text system

All headings and text sizes are defined here. Each native element has an equally matched class, allowing its look to be replicated without breaking HTML semantics.

Headings

<h1>

Heading 1

style-h1
Heading 1
<h2>

Heading 2

style-h2
Heading 2
<h3>

Heading 3

style-h3
Heading 3
<h4>

Heading 4

style-h4
Heading 4

Text sizes

text-uppercase
Text / uppercase
text-preamble
Text / Preamble
text-xl
Text / Extra large
text-l
Text / Large
text-m
Text / Medium
text-s
Text / Small
text-xs
Text / Extra small

Text styles

style-normal
Style / normal
style-demi
Style / demi
style-link
 (imitates a link)
style-link-naked
 (formats a link without an underline)
inline-block
Displays element as an inline block

Colour

The default colour swatches set three things:

1. A background-color
2. A matching border-color. Border-width/border-style are set to 0/none, respectively. If a border is required, these parameters are set with another class.
3. A default text color that meets at least a AA contrast ratio, ideally AAA

blue-900
blue-900
blue-800
blue-800
blue-700
blue-700
blue-600
blue-600
blue-500
blue-500
blue-400
blue-400
blue-300
blue-300
blue-200
blue-200
blue-100
blue-100
blue-50
blue-50
blue-25
blue-25
yellow-dark
yellow-dark
yellow-medium
yellow-medium
yellow-light
yellow-light
white
white

Text color

These swatches set the text color as desired.

text-blue-800
text-blue-800
text-blue-600
text-blue-600
text-blue-400
text-blue-400
text-blue-300
text-blue-300
text-blue-200
text-blue-200
text-blue-100
text-blue-100
text-blue-50
text-blue-50
text-blue-25
text-blue-25
text-light
text-light
text-white
text-white

Buttons

button outline
Button label
button white
Button label
button white outline
Button label
button large
Button label
button large outline
Button label
arrow-button
Button label
arrow-button light
Button label
back-button
Back
back-button light
Back

Components

banner_component
banner_component (in a wider container)
banner_component right
popup-form