Write maintainable CSS with variables, nesting, mixins, modules, maps, and compiled output.
Lessons
Choose between the .scss and .sass syntaxes.
SCSS vs Indented Syntax is easiest to learn by reading the example, changing it, and observing the result.
// SCSS syntax (.scss) - looks like CSS, uses braces and semicolons
$brand: #4f46e5;
.button {
background: $brand;
&:hover { background: darken($brand, 10%); }
}
// Indented syntax (.sass) - no braces or semicolons
// $brand: #4f46e5
// .button
// background: $brandPractice the SCSS vs Indented Syntax example in a small scratch file, then explain what changed and why.