Overview - BEM naming with SASS nesting
What is it?
BEM is a way to name CSS classes so they are clear and easy to understand. It stands for Block, Element, Modifier. SASS nesting lets you write CSS rules inside each other to show relationships. Combining BEM with SASS nesting helps organize styles in a neat, readable way. This makes your CSS easier to write and maintain.
Why it matters
Without a clear naming system like BEM, CSS can become messy and confusing, especially in big projects. Styles might accidentally affect the wrong parts of a page, causing bugs. SASS nesting without a naming convention can also create unclear code. Using BEM with SASS nesting solves these problems by making styles predictable and easy to find, saving time and frustration.
Where it fits
Before learning this, you should know basic CSS and how to write simple SASS. After this, you can learn advanced CSS architecture, responsive design, and CSS-in-JS tools. This topic is a bridge from writing simple styles to managing large, complex style codebases.