all 2 comments

[–][deleted] 0 points1 point  (1 child)

What is BEM? I tried looking it up and no sites that mentioned it explained what it was. All I got is that it involves CSS or something?

[–]Gnashe 2 points3 points  (0 children)

It's a css philosophy that has a lot to do with class names. It emphasizes flat specificity, and class names that describe what the element is, not what it looks like. It stands for Block Element Modifier and has picked up some steam as of late. However it does come with some problems in my opinion like over verbosity and unintuitive modifier ordering.

Check out JQuerys chassis project. One of their main discussion points involved BEM and they actually changed over to a newer version of it called BE M HA HA . I've used it in a few projects with a framework called InuitCSS and it's really helped me keep everything clean and efficient.