BEM Syntax Visualized

Click anywhere on this window, then hit the TAB key to get started. You can also click on the components to display their class name(s), but using the TAB key is way better.

Components

.list

  • List Item 1
  • List Item 2
  • List Item 3

.card

Title

Content hia whatever 8-bit pork belly. YOLO mlkshk everyday carry, 3 wolf moon cred keffiyeh green.

Juice banjo vegan intelligentsia 8-bit cronut humblebrag readymade.

Real use case: Combined .card with .list and .button

B is for Block: How to BEM

  1. Describe the Main Block with a word or two.
  2. Describe the __element with a word or two.
  3. Add --modifiers if necessary.
Read More

Read more about BEM in my article, B is for Block: An Intro to the BEM Naming Convention