3 ms·
I agree that preprocessors can address some of the issues that OOCSS sets out to address. At the same time I think that an over reliance on preprocessors can re
by cwebbdesign 14y ago
I agree that preprocessors can address some of the issues that OOCSS sets out to address. At the same time I think that an over reliance on preprocessors can result in the same set of problems. Preprocessing can easily result in bloated, highly repetitive CSS and deeply nested selectors.
I personally love using SASS and in fact (as mentioned by philipwalton) find it highly compatible with OOCSS. However, as with any tool, I advocate for thoughtful and critical implementation. I tend to suggest that anytime the final CSS file contains a large amount of repetitive styles or deeply nested selectors it's time to consider refactoring.