Complete the code to define a color token variable in Sass.
$primary-color: [1];The correct way to define a color token variable in Sass is to assign a valid color value like #3498db to a variable.
Complete the code to use the color token variable in a CSS rule.
button {
background-color: [1];
}To use a Sass variable inside a CSS rule, prefix it with $ like $primary-color.
Fix the error in the token map definition by completing the blank.
$colors: ( primary: [1], secondary: #2ecc71 );
When referencing a variable inside a Sass map, use the variable name with the dollar sign, like $primary-color.
Fill both blanks to access the primary color from the map and use it in a CSS rule.
button {
background-color: map-get([1], [2]);
}Use map-get($colors, primary) to get the primary color from the map.
Fill all three blanks to create a map of font sizes and use the medium size in a CSS rule.
$font-sizes: ( small: [1], medium: [2], large: [3] ); p { font-size: map-get($font-sizes, medium); }
Define font sizes with rem units for small, medium, and large. Medium is 1rem, small is smaller, large is bigger.