However, sharing those constants across stylesheets is a bit less convenient, as CSS Modules are meant to compose styles together (and make that super easy by importing styles from other files), and expect style composition to be used over constant sharing.
Modular CSS with React
Philippe Masset
29618
Another alternative is to use postcss-cssnext or SCSS variables, and run your modules through the relevant loaders before running them through css-loader?module. This essentially means you can use CSS Modules with SCSS, LESS, future CSS, or any other variant you want.