DEV Community

Discussion on: What is BEM and why use it to name your HTML classes!

Collapse
 
vborodulin profile image
Slava Borodulin

it seems easy. but not easy, less/sass does not make it easy, because of constructions like this:

.settings-title {
  &--main {

  }

  &-with-icon {

  }

  &__active {

  }
}

Break search class in the whole project like settings-title--with-icon. You should extra time to figure out where this class is located

Collapse
 
ackmandesu profile image
AckmanDESU

I have one file per class / component so searching was never hard.