0
0
SASSmarkup~20 mins

ITCSS methodology with SASS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ITCSS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding ITCSS Layer Order
In ITCSS, styles are organized in layers to manage CSS specificity and maintainability. Which layer should contain generic HTML element styles like body and h1?
ASettings layer
BGeneric layer
CTools layer
DComponents layer
Attempts:
2 left
💡 Hint
Think about where you put styles that affect all elements globally.
📝 Syntax
intermediate
2:00remaining
SASS Import Order in ITCSS
Given the ITCSS layers, which SASS import order correctly follows the ITCSS methodology?
A@import 'settings'; @import 'generic'; @import 'tools'; @import 'elements'; @import 'objects'; @import 'components'; @import 'utilities';
B@import 'components'; @import 'objects'; @import 'elements'; @import 'generic'; @import 'tools'; @import 'settings'; @import 'utilities';
C@import 'settings'; @import 'tools'; @import 'generic'; @import 'elements'; @import 'objects'; @import 'components'; @import 'utilities';
D@import 'utilities'; @import 'components'; @import 'objects'; @import 'elements'; @import 'generic'; @import 'tools'; @import 'settings';
Attempts:
2 left
💡 Hint
Remember ITCSS layers start from Settings and go towards Utilities.
selector
advanced
1:30remaining
Specificity in ITCSS Layers
Which selector from the ITCSS layers will have the highest CSS specificity when compiled?
A* { box-sizing: border-box; } /* Generic layer */
Bbody { font-family: Arial; } /* Generic layer */
C.btn-primary { color: blue; } /* Components layer */
D#header .nav-item { font-weight: bold; } /* Objects layer */
Attempts:
2 left
💡 Hint
Higher specificity comes from IDs and class combinations.
layout
advanced
1:30remaining
Using ITCSS Objects Layer for Layout
In ITCSS, the Objects layer is for design patterns and layout. Which SASS code snippet best represents a reusable layout object for a grid container?
A.grid-container { display: flex; flex-wrap: wrap; gap: 1rem; }
B.grid-container { position: absolute; top: 0; left: 0; }
C.grid-container { font-size: 1rem; color: black; }
D.grid-container { border: 1px solid red; }
Attempts:
2 left
💡 Hint
Objects layer focuses on layout and structure, not colors or borders.
accessibility
expert
2:00remaining
Accessibility in ITCSS Utilities Layer
Which utility class defined in the ITCSS Utilities layer best helps improve accessibility by visually hiding content but keeping it readable by screen readers?
A.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
B.hidden { display: none; }
C.offscreen { position: fixed; left: -9999px; top: 0; }
D.invisible { visibility: hidden; }
Attempts:
2 left
💡 Hint
Screen readers can read content that is visually hidden but not removed from the accessibility tree.