Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Thomas Ireland
PLUS
Thomas Ireland
Courses Plus Student 8,216 Points

Anyone interested in BEM, OOCSS or SMACSS?

I've posted a question to support as a project suggestion. I would love to see something on BEM, OOCSS or SMACSS.

I recently read a book called SMACSS (Scalable and Modular Architecture for CSS) by a chap called Jonathan Snook. In a nutshell, Jonathan talks about how best to structure code for large scale projects that works equally well for smaller sites, too. It's about learning how to make sites more scalable and maintainable.

Harry Roberts (@csswizardy) wrote a Sass-based framework called Inuit CSS, that really encapsulates BEM, OOCSS (check out Nicole Sullivan) and SMACSS. I used it on a project a few months ago and was amazed at how easy it was to update my components without spending hours refactoring. Harry really focusses on taking the specificity out of writing CSS to make it more maintainable and scalable.

I would like to suggest a Treehouse project touching on the fundamentals behind BEM, OOCSS and SMACSS, with some examples as I strongly believe that it would really benefit a lot of people.

Tom

5 Answers

I use BEM all the time, it's awesome for web development because it makes it super easy to understand where code would be located at a quick glance. My own CSS framework is heavily influenced by Inuit and the Yandex work.

No because I don't think it's generally useful. I might throw some of it up though over the holiday

Thomas Ireland
Thomas Ireland
Courses Plus Student 8,216 Points

No worries, bud. Have a good Thanksgiving tomorrow!

i rencently learn and use smacss. but very confuse about module. how big should i define a module?should i think a form as a module? Do you have any suggestion or good examples about smacss?

Hello, I am reading SMACSS (Scalable and Modular Architecture for CSS) by a chap called Jonathan Snook too.

Which one do you think works best with Bootstrap and WordPress ?