Helpers
Short classes that stand for one property and its value. The number in the class is the number in the design.
How the names work
A helper is a short alternative to one property and its value. align-items: center is aic, padding-top: 24px is p-t-24. Numbers are literal and move on a 4px step.
Spacing
Pixels, in steps of four, up to 160. The number in the class is the number in the design.
| Class | CSS |
|---|---|
p-t-104 | padding-top: 104px |
p-b-24 | padding-bottom: 24px |
p-l-16 | padding-left: 16px |
p-r-16 | padding-right: 16px |
p-x-24 | padding-left: 24px, padding-right: 24px |
p-y-40 | padding-top: 40px, padding-bottom: 40px |
m-t-64 | margin-top: 64px |
m-l-16 | margin-left: 16px |
m-r-16 | margin-right: 16px |
m-b-16 | margin-bottom: 16px |
m-x-16 | margin-left: 16px, margin-right: 16px |
m-y-24 | margin-top: 24px, margin-bottom: 24px |
ma | margin-left: auto, margin-right: auto |
mla | margin-left: auto |
mra | margin-right: auto |
s-40 | a spacer 40px tall, halved below sm |
Flexbox
First letters of the property, then of the value. align-items: center is aic.
| Class | CSS |
|---|---|
flex | display: flex |
rowrap | flex-flow: row wrap |
aic | align-items: center |
aifs | align-items: flex-start |
aife | align-items: flex-end |
jcc | justify-content: center |
jcsb | justify-content: space-between |
jcsa | justify-content: space-around |
jcfs | justify-content: flex-start |
jcfe | justify-content: flex-end |
Grid
container, row and col, twelve columns. The gap is one class on the row, and every col stacks to full width on phones.
| Class | CSS |
|---|---|
container | centred, max width $content, side padding $gutter |
container fluid | full screen width, no side padding |
row | a row of columns that wraps |
col | equal share of the row |
col-1 … col-12 | N of twelve columns |
col-auto | as wide as its content |
flex-24 | display: flex, gap: 24px |
flex-24-32 | display: flex, column-gap: 24px, row-gap: 32px |
row flex-24 | a row of columns with a 24px gap |
Size
Percentages in steps of five, pixels in steps of four.
| Class | CSS |
|---|---|
w-60 | width: 60% |
w-p-480 | width: 480px |
h-100 | height: 100vh |
h-p-64 | height: 64px |
wide | min-width: 90% below sm, centred |
oh | overflow: hidden |
obfc | object-fit: cover |
Typography
A heading takes one class from the title family and nothing else. Everything else is a utility.
| Class | CSS |
|---|---|
title-label | 12px, uppercase label above a heading |
title-intro | 56px, the hero heading |
title-intro-sub | 20px, the line under it |
title-page | 38px, the heading of an inner page |
title-section | 30px, a section heading |
title | 24px, a heading inside text |
title-lead | 20px, a lead paragraph |
title-sub | 20px, a subheading |
title-card | 16px, a card heading |
title-mini | 14px, a label |
fz-18 | font-size: 18px, 0 to 72 |
fw-500 | font-weight: 500, 100 to 900 |
lh-150 | line-height: 1.5 |
tc | text-align: center |
tl | text-align: left |
tr | text-align: right, centred below sm |
upp | text-transform: uppercase |
ff-intro | font-family: $intro |
ff-basic | font-family: $basic |
Colour
Three families generated from the palette. Add a colour to $palette and all three appear.
| Class | CSS |
|---|---|
c-accent | color: $accent |
bg-dark | background-color: $dark |
bg-light | background-color: $light |
bg-tr | background-color: transparent |
bg-page | the page background, follows the mode |
bg-surface | a tinted surface, follows the mode |
c-text | body text colour, follows the mode |
c-muted | muted text colour, follows the mode |
bc-line | a visible border, follows the mode |
bc-line-soft | a hairline, follows the mode |
bc-accent | border-color: $accent, border-style: solid |
dashed | border-style: dashed |
double | border-style: double |
b-none | border: none |
bw-2 | border-width: 2px, 0 to 24 |
r-8 | border-radius: 8px, 0 to 60 in steps of four |
Layout
The container holds the width, the mobile helpers carry their breakpoint inside the class.
| Class | CSS |
|---|---|
container | max-width: $content, centred, $gutter of side padding |
container fluid | full width of the screen, no side padding |
lines | a hairline between its children |
m-show | hidden above sm, shown below |
m-hide | shown above sm, hidden below |
m-block | display: block below sm, plus 24px under it |
m-center | centred text and box below sm |