How to properly set the name of the BEM class for different card designs

105 Views Asked by At

Let's imagine that the task before us is to develop 50+ unique types of cards, headers, footers, etc.

It will be okay if I name the card types like this: card-23, card-24

Or is there a better solution?

It scares me to think that all nested elements will have the prefix card-23__title, card-24__title because in fact they may be the same, and at the same time I want to be able to control a particular element separately without harming other types of cards.

0

There are 0 best solutions below