I want to be able to pick a SASS map item value by that map item's index.
Simplified scenario:
SCSS
// Colors map (MUST stay this way due to system dependence)
$colors: (
a: red,
b: green,
c: blue
);
@for $i from 1 through 3{
a:nth-child({$i}){ color:[GET COLOR BY $i FROM $COLORS]; }
}
Is that possible?
gist demo