O'Reilly logo

Pragmatic Guide to Sass by Michael Lintorn Catlin, Hampton Catlin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required