How to create a sensible CSS Architecture
Have you worked on large websites that spans more than a few pages? If you did, you probably realized the horrors of not conforming to a robust CSS architecture. You probably would also have researched on ways to write maintainable CSS.
Since our industry is awesome, we don’t only have one recommended solution. Experts have jumped in and provided us with suggestions like BEM, OOCSS, SMACSS, Atomic Design and many others.
Now, instead of suffering from “I don’t know what to do”, the question becomes: “there’s so many ways. Which should I try?” Should I use everything, only one approach or create a custom architecture from the possible picks out there?.
I started off with only one approach. Then, as I tried different approaches, I began to include what I thought made sense into my process. In today’s article, I want to share with you how I structure my CSS and why I do so. Hopefully, it’ll help you find your preferred method.
https://zellwk.com/blog/css-architecture-1/
If you loved the article, please let me know your thoughts/learnings/comments in the comments section on the site :)
Stay awesome,
Zell