3 ms·
> If you're new to this space, some of the practices to check out include OOCSS, SMACSS, BEM, ITCSS, and ECSS. These practices sound a bit outdated to be recom
by tarikjn 9y ago
> If you're new to this space, some of the practices to check out include OOCSS, SMACSS, BEM, ITCSS, and ECSS.
These practices sound a bit outdated to be recommended to someone new to the space. Forget any of these and just use CSS Modules, it guarantees you not only namespacing but explicit dependency between your CSS, which most of these conventions -- which require developer effort and compliance -- can't really offer.
- codebeaker 9y agoThere's nothing on caniuse.com about CSS Modules, perhaps you could share a resource? http://caniuse.com/#search=css%20modules http://caniuse.com/#search=css%20modules I don't need any fancy tools or precompilers/processors/etc to use BEM or SMACSS, so I think you may be mistaken about how Css Modules are comparable to the list given.
- tarikjn 9y agoThe idea that a best practice should be usable without a pre-processor has sailed. The fastest people give up on that, the better Web development will be for it.