Complete the code to define a color variable in SASS.
$primary-color: [1];Colors in SASS are defined using color codes like #3498db. This is a valid color value.
Complete the code to set a font size using a number with units in SASS.
font-size: [1];Font sizes need units like px to be valid in SASS.
Fix the error in the SASS list definition by completing the blank.
$spacing: (10px, 20px, [1]);
Lists in SASS must have consistent data types; spacing values need units like px.
Fill both blanks to create a map with string keys and color values in SASS.
$colors: ([1]: #ff0000, [2]: #00ff00);
Map keys should be strings in quotes, like "primary" and "secondary".
Fill all three blanks to create a function that returns a color if a condition is true in SASS.
@function get-color($is-primary) {
@if [1] {
@return [2];
} @else {
@return [3];
}
}The function checks if $is-primary is true, then returns the primary color #3498db, else returns a gray color #95a5a6.