Partials, @use & Inheritance
Lesson Overview: Split stylesheets into modular _variables.scss partials and share styles with @extend.
Modular CSS Architecture
Prefix partial files with an underscore (_buttons.scss) so Sass skips compiling them separately and loads them cleanly via @use "buttons";.
- @use replaces legacy @import with cleaner namespacing
- %placeholder selectors generate zero CSS unless extended
Test Yourself With Exercises
Load a Sass partial file named _theme.scss cleanly using modern syntax:
"theme";