Complete the code to import a partial Sass file named '_buttons.scss'.
@import '[1]';
In Sass, to import a partial file, you use the filename without the underscore and extension. So '@import "buttons";' imports '_buttons.scss'.
Complete the code to define a variable for primary color in a separate file.
$primary-color: [1];Variables in Sass start with a dollar sign and are assigned a value like a color code. '#333' is a valid color value.
Fix the error in the import statement to correctly include the '_layout.scss' partial.
@import '[1]';
When importing Sass partials, omit the underscore and file extension. '@import "layout";' correctly imports '_layout.scss'.
Fill both blanks to create a nested rule for buttons inside a container class.
.container { [1] { color: blue; } }To nest a '.button' class inside '.container', you write '.container { .button { ... } }'. The '&' is not needed here.
Fill all three blanks to create a map of colors and access the primary color.
$colors: ([1]: #ff0000, [2]: #00ff00, [3]: #0000ff); .primary { color: map-get($colors, [1]); }
The map keys are color names like 'red', 'green', and 'blue'. To get the primary color, use 'red' as the key in map-get.