_theme-var.scss
//color palette
$colors:(
"primary":#ff0000,
"secondary":#898989,
"dark":#360000,
"light":#ffaeae,
"white":#fff
);
style.scss
@import "./theme-var";
@each $key,$val in $colors{
.text-#{$key}-color{
color: $val;
}
.bg-#{$key}-color{
background-color:$val;
}
@for $i from 1 through 9{
.text-#{$key}-color-light-#{$i}{
color: mix(#ffff, #{$val},$i*10); // getting error for this line
}
}
}
ERROR
It says that argument $color-1 of mix($color-1, $color-2, $weight: 50%) must be a color, I am passing color and also $val contains valid hax color what could be the reason for error?
ERROR SCREENSHOT
