I did think about replacing CSS with JavaScript for a while, but CSS actually works very well for modules, because it's cascading effects. For example h1.someClass takes precedence over .someClass and .someClass takes precedence over h1 which is not very intuitive. But you can get very effective in CSS once you learn how that works, and never have to use !important again. But it's also very important that the one who writes the CSS understands it, or it will be a total nightmare to edit.<p>It's also very powerful to be able to change the design by just replacing the css stylesheet.
For modularity you can load CSS just like loading modules using require.