Complete the code to define a primary color variable in Sass.
$primary-color: [1];The correct way to define a color variable in Sass is to assign a valid color value like a hex code.
Complete the code to lighten the primary color by 20%.
$light-primary: lighten($primary-color, [1]);The lighten() function in Sass takes a color and a percentage to lighten it. Here, 20% is the correct amount.
Fix the error in the code to correctly darken the secondary color by 15%.
$dark-secondary: darken($secondary-color, [1]);The darken() function requires a percentage value with the % sign, like 15%.
Fill both blanks to create a map of colors with keys and values.
$colors: ([1]: $primary-color, [2]: $secondary-color);
In a Sass map, keys like 'primary' and 'secondary' label the colors clearly.
Fill all three blanks to access the primary color from the map and lighten it by 10%.
$primary-light: lighten(map-get($colors, [1]), [2]); // [3]
Use 'primary' as the key to get the color, '10%' to lighten by ten percent, and 'lighten' is the function used.