DEV Community

[Comment from a deleted post]
Collapse
 
sargalias profile image
Spyros Argalias • Edited

Thanks for your reply.

Fair enough about the button. In the end we can do anything we want. We just need to be careful that it's not unexpected and causes bugs and difficulty in the future. So absolutely, using font-family: inherit; could be acceptable, as long as the team is happy with the pros and cons.

Fair enough about BEM too. I use BEM personally but what I really mean is having a reasonable architecture where CSS specificity doesn't eventually become unmaintainable. If you can reasonably achieve that without BEM then you've achieved the main goal of BEM anyway (in my opinion) :).

The reason why I personally prefer BEM is because it absolutely minimises specificity even when you need complex selectors. I know from personal experience that having to work with a specificity of 10 is much nicer than having to override a specificity of 20, even for small things.