During the past two years of building decoupled websites, my team at Amazee Labs has tried several different CSS-in-JS solutions and made lots of mistakes. But we have finally decided on using CSS Modules.
Some of the CSS Modules features we will cover include:
- Components without BEM
- Locally-scoped class names
- Dead-code elimination
- Multi-platform support
- Nested rulesets
- Cross-component composition
If you are trying to decide which CSS-in-JS project to use for your decoupled Drupal project, come learn from our mistakes. We’ve picked a single CSS build tool that works with React, Vue, Angular and Drupal.