Challenge - 5 Problems
Sass 7-1 Pattern Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
š§ Conceptual
intermediateUnderstanding 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
intermediateCorrect 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
advancedVisualizing 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
advancedAccessibility 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
expertWhy 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.
