6.4 - Colors
Source: variables/_colors.scss, line 169
Colors are in the map $color-themes. Each color themes have 5 variables:
- Base
- Dark
- Light
- Transparent
- Contrast
Colors can be called in the sass project using the functions:
color($color-name, $color-variant:null, $true-val:false) which will output by default the CSS variable
Usage of font-family():
color(danger)=>var(--color-danger-base)If $use-css-var = truecolor(danger)=>#c65556If $use-css-var = falsecolor(success, base, true)=>#c65556color(success, light)=>var(--color-success-light)If $use-css-var = truecolor(success, light)=>#76bd7aIf $use-css-var = falsecolor(success, light, true)=>#76bd7a