Sass gave you the answer: you use strings when you shouldn't (note the quotes in the error, which are the true sign of the string). Interpolation gives you a string all the time no matter what. Since hsla()
expects all arguments to be numbers, passing its string will result in the string hsla()
instead of representing the Sass color for hsla()
, and the lighten()
function can only accept colors.
So just stop giving it a line:
.foo { background: hsla(60, 1, ($base - $math), 1); }
cimmanon
source share