Helpers

A large collection of single-purpose classes. They can be used to make tiny corrections, or even build entire interfaces.

Helpers override all other styles with !important.

It is encouraged to use helpers instead of building lots of small custom CSS classes.

Permutations from variables

Helpers are to a large extent permutations based on variables and CSS concepts. There are four different types of variables which reoccur in various helpers:

  • {size}: huge, large, medium, small, tiny, nano, zero*
  • {fraction}: whole, half, third, fourth, fifth
  • {brightnesses}: high, medium, low
  • {contrast}: high, medium, low, lowest

* The purpose of "zero" is to remove unwanted margins, paddings...

Backgrounds and Borders

Backgrounds

background-brightness-{brightness}
background-brightness-high
background-brightness-medium
background-brightness-low

Borders

border-contrast-{contrast} border-top-contrast-{contrast} border-right-contrast-{contrast} border-bottom-contrast-{contrast} border-left-contrast-{contrast}
border-zero border-top-zero border-right-zero border-bottom-zero border-left-zero
border-contrast-high
border-contrast-medium
border-contrast-low

Margins and Padding

Paddings

padding-{size} padding-top-{size} padding-right-{size} padding-bottom-{size} padding-left-{size}
padding-huge
padding-large
padding-medium
padding-small
padding-tiny
padding-nano
padding-zero

Margins

margin-{size} margin-top-{size} margin-right-{size} margin-bottom-{size} margin-left-{size}
margin-{size}-negative margin-top-{size}-negative margin-right-{size}-negative margin-bottom-{size}-negative margin-left-{size}-negative
margin-huge
margin-large
margin-medium
margin-small
margin-tiny
margin-nano
margin-zero

Fonts

Font Size

font-size-{size}

font-size-huge

font-size-large

font-size-medium

font-size-small

font-size-tiny

font-size-nano

Font Colors

font-contrast-{contrast}

font-contrast-high

font-contrast-medium

font-contrast-low

font-contrast-lowest

Font Styles, Weight and Decorations

bold normal italic underline line-through lowercase

bold

normal

italic

underline

line-through

lowercase

Layout and Sizing

These helpers are meant to be used together with the flex helper to create layouts.

Sizes

width-{size} height-{size}

Fractions

width-{fraction} height-{fraction}
width-whole
width-half
width-third
width-fourth
width-fifth

Fractions with spacing

width-{fraction}-minus-{size} height-{fraction}-minus-{size}
width-whole
width-half-minus-large
width-third-minus-medium
width-fourth-minus-small
width-fifth-minus-tiny

Flex

Helps you build flex layouts. This helper uses -variants to provide the most useful flex features.

flex -h-center -h-end -h-spread -h-stretch -v-center -v-spread -v-stretch -wrap

Enables flex -variants

Horizontal center alignment

Horixontal end alignment

Horizontal spread to both sides

Horizontal strech to fill space

Vertical center alignment

Vertical spread to both sides

Vertical strech to fill space

Elements can wrap to new lines

display: flex

justify-content: center

justify-content: flex-end

justify-content: space-between

> * { flex-grow: 1; }

align-items: center

align-content: space-between

align-content: stretch

flex-wrap: wrap

flex

width-third
width-third

flex -h-center

width-third
width-third

flex -h-spread

width-third
width-third

flex -h-spread

width-third-minus-tiny
width-third-minus-tiny

flex -h-stretch

width-third
width-third

flex -h-stretch -wrap

width-third
width-third
width-third
width-third

flex -v-center -h-center

width-third
width-third