To write CSS correctly, you need to know it better first, let's get a little more familiar with CSS and take a closer look at some of it's problems.
- Not Scalable Syntax
- Bad Browser Support
- Unused CSS Classes
- No Test at All
Yes, CSS may have problems, but all of these are easily solvable
Why not? You can always scale your CSS using methods like BEM and OOCSS.
Unfortunately, different browsers still have different understandings of CSS commands, but that's not a problem! Using a tool like PostCSS this problem can also be solved!
Increasing or decreasing the project features creates a list of unused styles, but it is not a problem because with PurgeCSS these additional styles are specified and removed from the project bundle.
Well not exactly, you can unit test CSS using a tool called Barista, but it's not as popular as other methods.
You can easily upgrade your CSS skills using the following tools/technologies
- JSS ( eg. Styled Components )
- CSS Modules/Scoped
- CSS Frameworks