I need help figuring out how to create a stepped gradation between two specific colors into separate classes using SASS and the available color functions.
Starting with any given color, for example #f1a100 and an end color #2ec3fb, generate several classes that are a stepped gradation between the two.
I'm starting with this code, but obviously doesn't produce the desired result. How do I to step between two specific colors?
$startColor: #f1a100;
@for $i from 1 through 8 {
&.m#{$i} {
background: adjust-hue($startColor, 0 - ($i * 10));
}
}
This code produces the following result: