Scale_color function

Scale_color function in sass scales the color relative from the starting color to the max number instead of normal linear functions. The code above will output : .content { color:#efefef;} instead of #ffffff like it would with a normal lighten() function. Other arguments it takes in: $red, $green, $blue $saturation $alpha.

.content {
	color: scale_color(#eee, $lightness: 7%);
}

Add your comment