Colors
Use to ensure brand consistency.
Description
A palette of functional colors used to convey a message or highlight actions. Basic color names are used as key names (purple, green, blue, etc.) with various lighter shades as array elements. Above the base colour there will be a contrast colour which will be usually used as background for elements containing white text. Below the base colour there is a scale of lighter shades which is using a naming convension based on t-shirt sizing, starting from light and scaling down different levels of lightness depending on the base colour. Options for the lighter shades are: light, x-light, 2x-light, 3x-light, 4x-light etc.
Sass Usage
get-color(purple)
// if the base shade is requested the 2nd parameter should not be defined, as it is set to `base` by default
get-color(purple, light)
// the 2nd parameter defines the shade of the color - it is an optional parameter (please see above)
Usage
Usage example
white
-
get-color(white)
black
-
get-color(black)
purple
-
get-color(purple, contrast) -
get-color(purple, base) -
get-color(purple, light) -
get-color(purple, x-light) -
get-color(purple, 2x-light) -
get-color(purple, 3x-light)
orange
-
get-color(orange, contrast) -
get-color(orange, base) -
get-color(orange, light) -
get-color(orange, x-light) -
get-color(orange, 2x-light) -
get-color(orange, 3x-light)
green
-
get-color(green, contrast) -
get-color(green, base) -
get-color(green, light) -
get-color(green, x-light) -
get-color(green, 2x-light) -
get-color(green, 3x-light)
red
-
get-color(red, contrast) -
get-color(red, base) -
get-color(red, light) -
get-color(red, x-light) -
get-color(red, 2x-light) -
get-color(red, 3x-light)
yellow
-
get-color(yellow, contrast) -
get-color(yellow, base) -
get-color(yellow, light) -
get-color(yellow, x-light) -
get-color(yellow, 2x-light) -
get-color(yellow, 3x-light)
blue
-
get-color(blue, contrast) -
get-color(blue, base) -
get-color(blue, light) -
get-color(blue, x-light) -
get-color(blue, 2x-light) -
get-color(blue, 3x-light)
grey
-
get-color(grey, contrast) -
get-color(grey, base) -
get-color(grey, light) -
get-color(grey, x-light) -
get-color(grey, 2x-light) -
get-color(grey, 3x-light) -
get-color(grey, 4x-light)