0
0
SASSmarkup~10 mins

ITCSS methodology with SASS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import the "Settings" layer in ITCSS using SASS.

SASS
@import '[1]/settings';
Drag options to blanks, or click blank then click option'
Autilities
Bsettings
Ccomponents
Dbase
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'base' or 'components' instead of 'settings' for the import path.
Forgetting to include the folder name in the import path.
2fill in blank
medium

Complete the code to define a color variable in the Settings layer.

SASS
$primary-color: [1];
Drag options to blanks, or click blank then click option'
Ablue
Bprimary-color
Ccolor-primary
D#333
Attempts:
3 left
💡 Hint
Common Mistakes
Using variable names as values instead of actual color codes.
Missing the dollar sign before the variable name.
3fill in blank
hard

Fix the error in the code to correctly import the "Components" layer in ITCSS.

SASS
@import '[1]/component';
Drag options to blanks, or click blank then click option'
Acomponents
Bcomponent
Ccomponentss
Dcomponentes
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'component' instead of plural 'components'.
Misspelling the folder name.
4fill in blank
hard

Fill both blanks to create a nested selector for a button component with a hover state in SASS.

SASS
.button [1] {
  color: $primary-color;
  [2] {
    color: $secondary-color;
  }
}
Drag options to blanks, or click blank then click option'
A&
B:hover
C.hover
D&:hover
Attempts:
3 left
💡 Hint
Common Mistakes
Using '.hover' instead of ':hover' for the hover state.
Not using '&' to refer to the parent selector.
5fill in blank
hard

Fill all three blanks to create an ITCSS import structure in SASS for Settings, Tools, and Generic layers.

SASS
@import '[1]/settings';
@import '[2]/tools';
@import '[3]/generic';
Drag options to blanks, or click blank then click option'
Asettings
Btools
Cgeneric
Dcomponents
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up folder names or using 'components' instead of the correct layer.
Incorrect order of imports.