Complete the code to import the "Settings" layer in ITCSS using SASS.
@import '[1]/settings';
The "Settings" layer contains variables and configuration. We import it using @import 'settings/settings'; or simply @import 'settings'; if the folder is named "settings".
Complete the code to define a color variable in the Settings layer.
$primary-color: [1];Variables in SASS are defined with a dollar sign and assigned a value like a color code. Here, $primary-color: #333; sets a dark gray color.
Fix the error in the code to correctly import the "Components" layer in ITCSS.
@import '[1]/component';
The correct folder name is "components" (plural). Using "component" (singular) causes an error because the folder does not exist.
Fill both blanks to create a nested selector for a button component with a hover state in SASS.
.button [1] { color: $primary-color; [2] { color: $secondary-color; } }
In SASS, & refers to the parent selector. To style the hover state, we nest :hover inside. So .button & is just .button, and :hover inside applies hover styles.
Fill all three blanks to create an ITCSS import structure in SASS for Settings, Tools, and Generic layers.
@import '[1]/settings'; @import '[2]/tools'; @import '[3]/generic';
ITCSS layers are imported by their folder names. Settings, Tools, and Generic are separate folders. So we import from 'settings', 'tools', and 'generic' respectively.