Bem
208 sites
Security covered
This Drupal theme promotes the BEM (Block, Element, Modifier) naming convention for CSS classes. It aims to reduce the need for template overrides by generating consistent BEM classes that reference Drupal's configuration rather than content. The theme also groups Drupal-specific elements into sensible BEM components.
An opinionated Drupal base theme providing BEM style classes everywhere.
Considerations
- Prevent the need of overriding templates as much as possible.
- Provide BEM classes that are (hard)coded or refer to configuration (machine names), but never refer to content.
- Combine Drupal specific concepts into sensible BEM components (like the fields of a node when rendered in a specific view mode. For example .node-article-teaser and .node-article-teaser__image.