CSS Naming Conventions that Will Save You Hours of Debugging

Ohans Emmanuel:

I have heard lots of developers say they hate CSS. In my experience, this comes as a result of not taking the time to learn CSS.

CSS isn’t the prettiest ‘language,’ but it has successfully powered the styling of the web for over 20 years now. Not doing too badly, huh?

However, as you write more CSS, you quickly see one big downside.

It is darn difficult to maintain CSS.

Poorly written CSS will quickly turn into a nightmare.

Ohans makes some interesting points about about CSS conventions such as the use of BEM naming convention (Body, Elements, Modifiers).

Definitely worth a share and a read and a few claps.

Source: https://medium.freecodecamp.org/css-naming-conventions-that-will-save-you-hours-of-debugging-35cea737d849

Ready To Build Awesome Apps?
Get started for free