Challenge - 5 Problems
SASS Design System Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why use variables in SASS for design systems?
What is the main benefit of using variables in SASS when building a design system?
Attempts:
2 left
💡 Hint
Think about how design systems keep styles uniform across many pages.
✗ Incorrect
Variables in SASS store values like colors and fonts so you can reuse them everywhere. This keeps the design consistent and easy to update.
📝 Syntax
intermediate2:00remaining
What does this SASS code output in CSS?
Given the SASS code below, what is the compiled CSS output?
SASS
$primary-color: #3498db; .button { background-color: $primary-color; color: white; }
Attempts:
2 left
💡 Hint
SASS variables are replaced with their values during compilation.
✗ Incorrect
The variable $primary-color is replaced by its value #3498db in the compiled CSS.
❓ selector
advanced2:00remaining
Which SASS selector nesting produces this CSS?
Which SASS code will compile to the following CSS?
.button {
color: white;
}
.button:hover {
color: black;
}
Attempts:
2 left
💡 Hint
Look for the correct way to nest pseudo-classes in SASS.
✗ Incorrect
The &:hover syntax nests the hover state inside the .button selector, producing the correct CSS.
❓ layout
advanced2:00remaining
How does SASS help manage complex layouts in design systems?
Which SASS feature best helps organize and reuse layout styles in a design system?
Attempts:
2 left
💡 Hint
Think about how to reuse groups of CSS rules easily.
✗ Incorrect
Mixins let you write a set of CSS rules once and reuse them wherever needed, which is great for layouts.
❓ accessibility
expert3:00remaining
How can SASS improve accessibility in design systems?
Which SASS approach helps maintain accessible color contrast across a design system?
Attempts:
2 left
💡 Hint
Accessibility needs good contrast between text and backgrounds.
✗ Incorrect
SASS functions can adjust colors dynamically to ensure text is readable against backgrounds, improving accessibility.