Boost Your CSS with BEM Naming and SASS Nesting

Written by sebasbug | Published 2020/03/17
Tech Story Tags: css | css3 | bem-should-not-exist | frontend | html | web-development | programming | beginners | web-monetization

TLDR SASS nesting and the BEM (Block - Element - Modifier) structure will help get us to get rid of this concern. This is a method that consists of naming your CSS classes based on the role they play in your HTML. The Block Element Modifier structure is a powerful structure to follow when naming our classes. It allows us to keep everything in the same place in our SASS file, even though they are nested in SASS. The result will not be a mess of cascading, but a well-structured and specific set of rules will be very useful.via the TL;DR App

no story

Published by HackerNoon on 2020/03/17