Complete the code to set a default color variable using !default.
$primary-color: [1] !default;The !default flag sets the variable only if it is not already defined. Here, blue is assigned as the default color.
Complete the code to override the default font size variable.
$font-size: [1];To override a default variable, assign a new value without !default. Here, 18px replaces any default.
Fix the error in the code to correctly set a default margin variable.
$margin: [1] !default;The semicolon should be outside the variable assignment. The correct syntax is $margin: 10px !default; so the value is 10px and !default is a flag.
Fill both blanks to set a default padding and then override it.
$padding: [1] !default; $padding: [2];
First, $padding is set to 1rem as a default. Then it is overridden to 2rem without !default.
Fill all three blanks to create a default color, override it, and then use it in a style.
$bg-color: [1] !default; $bg-color: [2]; .button { background-color: [3]; }
The default background color is #eee. It is overridden by #333. The button uses the variable $bg-color for its background.