I am trying to make a SASS list working but its giving me issue. Can any of you please guide me what I am doing wrong and show the solution?
$colors: #02ce53, #05d297, #10cbc2, #e45042, #fe7e10, #01a2f0
@each $color in $colors
p
color: $color
My generated CSS looks like:
p {
color: #02ce53; }
p {
color: #05d297; }
p {
color: #10cbc2; }
p {
color: #e45042; }
p {
color: #fe7e10; }
p {
color: #01a2f0; }
I actually want each p tag to have the color based on color sequence mentioned in the SASS list. How can I have it?