Colors
Color pallete and variants.
Last updated
Color pallete and variants.
Last updated
Sipster's color system includes 11 base colors, complemented with 5 tint/shade variants for each base color. The base colors are set via the raw $sds_color_{color}
variables in the _colors.scss
file. The full color ramps are programmatically generated via the $clr_scale-{x}
variables and the $sds_colors:()
map located within the same file.
It is strongly recommended to not edit or otherwise manipulate these core sass variables. Sipster has an extremely flexible and customizable theme mechanism which is where most customization should take place. Learn more about themes.
If you find yourself deviating away from Sipster's theming approach and needing to implement raw SDS colors (not recommended), there is a custom sass function to facilitate this. To use this function, simply pass the desired color-name
(required) and value
(optional) parameters to implement any color from Sipster's color palette.
The sds-color()
function can be implemented in any CSS property that accepts a color value (all colors currently resolve to a hex code).
Sipster has an extremely flexible and customizable theme mechanism which is where most color application should take place. The second scenario in the example above is a tiny glimpse at Sipster's approach to theming. Learn more about theming.