@each map color

Tell us what’s happening:

Your code so far

<style type='text/sass'>
$colors: {color1: blue, color2: black, color3: red};

@each $key, $color in $colors {
    .#{$color}-bg {background-color: $color;}
  div {
    height: 200px;
    width: 200px;

<div class="blue-bg"></div>
<div class="black-bg"></div>
<div class="red-bg"></div>

Why is this code not passing the tests?

Fixed it, but this solution should have worked as well. The solution that passed was:
@each $color in blue, black, red {
.#{$color}-bg {background-color: $color;}