Take this one step further and build the color palette into your stylesheets. If you're using Sass you can setup something like:
$palettes: (
blue: (
lightest: hsl(201, 75%, 66%),
lighter: hsl(201, 75%, 61%),
light: hsl(201, 75%, 56%),
base: hsl(201, 75%, 51%),
dark: hsl(201, 75%, 46%),
darker: hsl(201, 75%, 41%),
darkest: hsl(201, 75%, 36%)
),
red: (...),
gray: (...)
)
@function palette($palette, $tone: 'base') {
@return map-get(map-get($palettes, $palette), $tone);
}
This ends up looking like: `background-color: palette(blue, "light")` in your codebase.
I typically use hsl instead of hex codes because it is easier to understand and modify. You can quickly build up a palette by just modifying the lightness scale on each color by a constant percentage. (This is where I disagree with the author, all of design is just math)
It is often useful to combine colors for your designs and Sass has you covered with the `mix` function. Using this setup you can call `mix(palette(blue), palette(gray))` to combine colors in your palette. You typically want to do this with text on a colored background to make it look more visually appealing.
This is the only way I've found to stay sane managing your colors in a big project. In my experience, everything else goes off the rails when you introduce multiple people into the picture. Please steal this idea, your projects will be better because of it.