Battling BEM – 5 common problems and how to avoid them
David Berner
29825

Very good article! I also want to add one more point, it is not very nice to duplicate classes in markup like so: ‘card card--is-active’ or ‘button button--primary’. Instead it can be just ‘card--is-active’ or ‘button--primary’ with a help of CSS3 selectors (yes, with pure CSS, no pre-processors needed for this) — http://webuniverse.io/css-organization-naming-conventions-and-safe-extend-without-preprocessors/#To_extend_or_not_to_extend?

Show your support

Clapping shows how much you appreciated Sergey Zarouski’s story.