Skip to content

BEM ​

What is bem ​

  • Block: The sole root of the component.
  • Element: A component part of the Block.
  • Modifier: A variant or extension of the Block.

BEM-like Naming ​

.blockName-elementName--modifierName

Elements are delimited with two (2) underscores (__), and Modifiers are delimited by two (2) hyphens (--).

Powered by VitePress