Challenge - 5 Problems
Sass 7-1 Pattern Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding the 7-1 pattern folder structure
In the 7-1 Sass architecture pattern, how many folders are typically used to organize Sass files (excluding the main entry file)?
Attempts:
2 left
💡 Hint
Think about the name '7-1' and what it represents in folder organization.
✗ Incorrect
The '7-1' pattern uses 7 folders to organize Sass partials and 1 main file that imports them all. This helps keep styles modular and maintainable.
📝 Syntax
intermediate1:30remaining
Correct import syntax in main.scss
Which import statement correctly imports the '_buttons.scss' partial from the 'components' folder in the 7-1 pattern inside 'main.scss'?
SASS
@import 'components/buttons';
Attempts:
2 left
💡 Hint
Remember Sass partials start with underscore and you omit it and the extension when importing.
✗ Incorrect
In Sass, when importing partials, you omit the underscore and file extension. So '@import 'components/buttons';' correctly imports '_buttons.scss' from the components folder.
❓ layout
advanced1:30remaining
Visualizing the 7-1 folder structure
Which folder below is NOT part of the standard 7 folders in the 7-1 Sass pattern?
Attempts:
2 left
💡 Hint
Recall the common folder names like base, components, utilities, but not 'widgets'.
✗ Incorrect
The standard 7 folders are base, components, layout, pages, themes, abstracts (or utilities), and vendors. 'Widgets' is not a standard folder in the 7-1 pattern.
❓ accessibility
advanced2:00remaining
Accessibility considerations in Sass architecture
How can the 7-1 Sass pattern help improve accessibility in a large project?
Attempts:
2 left
💡 Hint
Think about how organization helps developers write better accessible styles.
✗ Incorrect
The 7-1 pattern organizes styles so developers can easily find and maintain focus, hover, and other state styles that improve accessibility. It does not add ARIA or enforce contrast automatically.
🧠 Conceptual
expert2:30remaining
Why use the 7-1 pattern in large Sass projects?
What is the main advantage of using the 7-1 Sass architecture pattern in large projects?
Attempts:
2 left
💡 Hint
Think about how organizing code helps teams work better and avoid confusion.
✗ Incorrect
The 7-1 pattern helps keep styles modular and organized, making it easier to maintain and scale large projects. It does not compress or speed up compilation by itself.