paint-brush
Boost Your CSS with BEM Naming and SASS Nestingby@sebasbug
8,487 reads
8,487 reads

Boost Your CSS with BEM Naming and SASS Nesting

by Sebastian Gil Rodriguez4mMarch 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Boost Your CSS with BEM Naming and SASS Nesting
Sebastian Gil Rodriguez HackerNoon profile picture
Sebastian Gil Rodriguez

Sebastian Gil Rodriguez

@sebasbug

L O A D I N G
. . . comments & more!

About Author

Sebastian Gil Rodriguez HackerNoon profile picture
Sebastian Gil Rodriguez@sebasbug

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite