getbem.github.io icon indicating copy to clipboard operation
getbem.github.io copied to clipboard

More than one class name allowed?

Open griebie opened this issue 7 years ago • 0 comments

Hi there,

we want to use BEM for our CSS in a new project and are discussing one basic point internally: I thought BEM was introduced to get rid of too many classes in one single HTML tag, I thought there must only be one single class name in any tag but I see "good" examples in your documentation giving more than one class. I think we define most of any styling within mixins and include in the basis in the "default" definition of any block or element and then again in their modified item, adding styles just for them afterwards. As we use gzip on our servers we don't fear a bigger css file.

Just speaking of the browser performance issues which brought up BEM in my point of view I would prefer to be strict and never allow a second or even third class name.

Thanks for any answer clearing this up :)! Regards, Thorsten

griebie avatar Sep 10 '18 09:09 griebie