Upgrade to Pro — share decks privately, control downloads, hide ads and more …

BEM

 BEM

An introduction to BEM and its core principles.
Presented at the Mercado Libre Front-end Meetup in August 2015.

Luciano Battagliero

August 14, 2015
Tweet

More Decks by Luciano Battagliero

Other Decks in Programming

Transcript

  1. <ul class="paginator"> <li class="paginator__page"> <!-- Don’t do this --> <a

    class="paginator__page__link"> … </a> </li> </ul> HTML
  2. <ul class="paginator"> <li class="paginator__page"> <!-- Don’t do this --> <a

    class="paginator__page__link"> … </a> </li> </ul> HTML
  3. <ul class="paginator"> <li class="paginator__page"> <!-- Don’t do this --> <a

    class="paginator__page__link"> … </a> </li> </ul> HTML
  4. The main purpose of a class name is to be

    used as a hook for adding style or behaviour
  5. Mix