Write maintainable CSS with variables, nesting, mixins, modules, maps, and compiled output.
Lessons
Learn how Sass extends CSS with variables, logic, and reuse.
What Is Sass 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 What Is Sass example in a small scratch file, then explain what changed and why.