1 min readApr 26, 2017
Interestingly, the codebase on which I work at my new job uses Aphrodite, and I hate it, because:
- I’ve encountered various bugs with pseudo elements and media queries. It’s not as if these use cases are esoteric; they’re pretty fundamental to CSS
- the CSS it generates as a result of creating new classes for each computed combination of styles results in a larger stylesheet than if one were to use plain CSS or some preprocessor; while this might be defensive, it is possible to namespace and be defensive without JS-based styling tools
- Including the bundle adds more weight to the page; while this is small when gzipped, the browser supports CSS natively, so surely invoking a preprocessor during a build step renders this pointless
- Performance overhead of computing these styles at runtime vs using a preprocessor at build time
Avoid.