Complete the code to invert the color variable.
$inverted-color: invert([1]);The invert() function takes a color value as input. Here, $color is the variable holding the original color.
Complete the code to get the complement of the color.
$complement-color: complement([1]);The complement() function requires a color variable. Use $color to pass the color value.
Fix the error in the code to invert the background color.
background-color: invert([1]);The invert() function needs a color variable. Here, $background-color is the correct variable name.
Fill both blanks to create a class that sets text color to the complement of the base color.
.text-complement { color: [1]([2]); }invert instead of complement.The complement() function is used to get the opposite color. We pass $base-color as the input variable.
Fill all three blanks to define a mixin that sets background to the inverted complement of a color.
@mixin invert-complement($color) { background-color: [1]([2]([3])); }The mixin uses invert() on the result of complement() applied to $color.