Write maintainable CSS with variables, nesting, mixins, modules, maps, and compiled output.
Lessons
Get a friendly overview of Sass variables, nesting, mixins, and modules.
Sass HOME 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 Sass HOME example in a small scratch file, then explain what changed and why.