What CSS Guidelines / Principles should i use?

over 8 years ago from Chris Winch, Freelance Frontend Developer

  • Helen TranHelen Tran, over 8 years ago (edited over 8 years ago )

    You should try all of them and see if it works for you.

    I've always done something along the lines of what OOCSS proposes. I think it's a great starting point to learn how to abstract your code and generally reduce the amount of redundant styles you are creating. Additionally, I am a big fan of BEM but in large projects it can overcomplicate things when poorly implemented. If you go too crazy with it, the class names can get overwhelming and hard to read. Everything with a little bit of moderation is a good rule of thumb.

    As for SMACSS, I'm not a big fan of it at all. I have tried it on small and large projects. The rules for it are too fuzzy for me and I've found it slows down my production time because of the fuzziness. You may find you like it, but it hasn't worked at all for me.

    0 points