Answer the question
In order to leave comments, you need to log in
How to make a loop in stylus with array iteration?
How to make the social variable in stylus set the facebook value from the colors array. I need to make links of different colors at the end of the page and would like to do it through a loop.
colors = {'facebook':#3b5998,'twitter':#26a6d1}
@each social, social-color in colors
.social-link__$social
background-color social-color
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question