Replace $color-* vars with a palette list that is specific to the project.
Keep the use of vars for colors that are not in the palette or for specifics (selection, socials, ...)
Throws custom error message if color is undefined : Unkown 'secondary' in $colors
Ables us to loop through the colors to generate CSS vars if necessary (see /styles/settings/_config.variables.scss)
What
Replace
$color-*
vars with a palette list that is specific to the project. Keep the use of vars for colors that are not in the palette or for specifics (selection, socials, ...)Definition:
/styles/settings/_config.colors.scss
Usage:
Why
Throws custom error message if color is undefined :
Unkown 'secondary' in $colors
Ables us to loop through the colors to generate CSS vars if necessary (see/styles/settings/_config.variables.scss
)