Boost Your CSS with BEM Naming and SASS Nestingby@sebasbug
7,931 reads

Boost Your CSS with BEM Naming and SASS Nesting

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@sebasbug

Sebastian Gil Rodriguez

Receive Stories from @sebasbug

react to story with heart

RELATED STORIES

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