change-color($color, $kwargs)

Changes one or more properties of a color. This can change the red, green, blue, hue, saturation, value, and alpha properties. The properties are specified as keyword arguments and replace the color’s current value for that property.

‘$red‘, ‘$green‘, and ‘$blue‘ properties should be between 0 and 255. ‘$saturation‘ and ‘$lightness‘ should be between 0% and 100%. ‘$alpha‘ should be between 0 and 1. All properties are optional.

You can’t specify both RGB properties (‘$red‘, ‘$green‘, ‘$blue‘) and HSL properties (‘$hue‘, ‘$saturation‘, ‘$value‘) at the same time.

Get Pragmatic Guide to Sass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.