DEV Community

Discussion on: Naming things is hard. Agree or disagree?

Collapse
 
eavichay profile image
Avichay Eyal

Sure.
I tend to use semantics and autotags for automation. Meaning I have maximum 3 nesting rules to define an element style and it does not break when I change the structure or doesn't break hard when replacing css framework.

Example css:
[settings-view] [role=submit-button] { width: 3rem; }

This replaces the bem part and overrides default rule set including framework values