Answer the question
In order to leave comments, you need to log in
SCSS getting array values?
Greetings!
I googled the sass / scss documentation, but did not find clear answers to my questions.
Let's say we have an array:
$arrayColors: (
white,
black,
green,
red,
orange
);
@each $key, $color in $arrayColors {
.color-#{$key}
{
color: $breakpoint;
}
}
Answer the question
In order to leave comments, you need to log in
google things like:
1) sass length
2) sass nth
and here the reverse loop is described blog.ricardofilipe.com/post/reverse-loops-with-sass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question