this is not working, Help needed, am I missing some thing??
I am trying to achieve Variable numeric value for @for $i ..... through .... {... , passing from mixin
$colors: ('primary': #000, 'secondary': #fff);
@mixin titleTxt($title, $start, $end) {
@for $i from #{$start} through #{$end} {
@if $i % 2==0 {
.#{$title}-#{$i} {
color: #000;
@each $name,
$color in $colors {
&-#{$name} {
color: #{$color};
}
}
}
}
}
}
@include titleTxt("text", 16, 24)