Write maintainable CSS with variables, nesting, mixins, modules, maps, and compiled output.
Lessons
Write clean BEM class names using the & selector.
BEM with Sass Nesting is easiest to learn by reading the example, changing it, and observing the result.
.card {
padding: 1rem;
&__title { font-weight: 700; } // .card__title
&__body { color: #4b5563; } // .card__body
&--featured { border: 2px solid #4f46e5; } // .card--featured
}Practice the BEM with Sass Nesting example in a small scratch file, then explain what changed and why.