$odd: red;$even: blue;.list { li { &:nth-child(odd) { background-color: $odd; } &:nth-child(even) { background-color: $even; } }}