Complete the code to define a CSS custom property for the main color.
:root { --main-color: [1]; }CSS custom properties are defined with --property-name and assigned a value like a color code.
Complete the SASS code to define a variable for the main color.
[1]: #e74c3c; body { color: $main-color; }
SASS variables start with a dollar sign $ and are assigned values with a colon.
Fix the error in the CSS code to use the custom property inside a style rule.
h1 { color: [1]; }var().To use a CSS custom property, you must wrap it with var(--property-name).
Fill both blanks to create a SASS map and access a color value.
$colors: (primary: [1], secondary: [2]); .btn { color: map-get($colors, primary); }
SASS maps hold key-value pairs. Colors are assigned as values like hex codes.
Fill all three blanks to define a CSS custom property and use it in a style.
:root { [1]: [2]; } p { color: [3]; }var() function when using the property.Define a CSS custom property with --name, assign a value, then use it with var(--name).