So, I've got a LESS file of color variables:
@colorNameOne: #ff5722;
@colorNameTwo: #ff5722;
@colorNameThree: orange;
I want to go through each color in this list and generate something to this effect
Psuedo Code
for each color:
div[data-color="n"] {
background-color: @colorName
}
where n
is the number of the color you're on. (i.e. n
for @colorNameTwo
is 2)
Tried a few things but I'm new to LESS loops so any advice on how to approach this would be greatly appreciated.