Two developers, a React app with about 30 components. We are choosing between CSS Modules and Tailwind. I care about maintainability more than raw speed.
CSS Modules keeps styles close to components without a build-time utility vocabulary. Tailwind wins when you need consistent spacing quickly across many people.
Tailwind purges unused classes so the final CSS is small. CSS Modules also tree-shake by import. Real difference is how you review changes: class strings versus declarations.
3 replies