Complete the code to define a base color variable in Sass.
$base-color: [1];The base color is defined as a hex color code #3498db, which is a shade of blue. This is the correct way to assign a color value in Sass.
Complete the code to create a lighter shade of the base color using Sass's lighten function.
$light-color: lighten($base-color, [1]);The lighten function in Sass takes a color and a percentage value to lighten it. The percentage must include the % sign, like 10%.
Fix the error in the code to generate a color scale with 5 steps using a loop.
@for $i from 1 through 5 { $shade-[1]: lighten($base-color, $i * 10%); }
In Sass loops, variables must be prefixed with $. So $i is correct to use inside the loop.
Fill both blanks to create a map of color shades with keys from 1 to 5 and values as lighter colors.
$color-scale: ( [1]: lighten($base-color, 10%), [2]: lighten($base-color, 20%) );
The keys in the map are numbers representing shade steps: 1 and 2. The values are lighter colors using the lighten function already in the code.
Fill all three blanks to generate a full color scale map with keys 1 to 3 and values as lighter shades increasing by 15%.
$full-scale: ( [1]: lighten($base-color, 15%), [2]: lighten($base-color, 30%), [3]: lighten($base-color, 45%) );
The map keys are 1, 2, and 3 to represent each shade step. The lighten percentages increase by 15% for each step.