Write maintainable CSS with variables, nesting, mixins, modules, maps, and compiled output.
Lessons
Override module defaults with @use ... with.
Configuring Modules is easiest to learn by reading the example, changing it, and observing the result.
// _theme.scss
$brand: #4f46e5 !default;
$radius: 4px !default;
// main.scss - override defaults when loading
@use 'theme' with (
$brand: #e11d48,
$radius: 12px
);
.button { background: theme.$brand; border-radius: theme.$radius; }Practice the Configuring Modules example in a small scratch file, then explain what changed and why.