Description
First off, thanks for an awesome project that's helping to solve the CSS Modules theming conundrum 👍 .
Although @themr('injectedStyles', localStyles)
allows the injected stylesheet to override the component-local styles (where the override granularity can be increased if that's helpful), there are other more complex ordering strategies that can be useful depending on the project, so I'd really prefer to have specific control over both the number of stylesheets being merged, and the order in which they are merged.
For example, in my case I'd really like to invoke as @themr('siteTheme', localStyles, 'componentOverrides')
. My motivation for wanting to do this is that I'd like the ability to very quickly theme an app we have using a site-theme that involves the cross-cutting concerns that affect all components, or go further and start theming specific components when we can justify spending more time, while still retaining the ability to just use the app as it is, with its default theme specified directly within the React components.
I'm not suggesting here that 'react-css-themr' also supports the particular function signature I've used above, but that any number of theme objects (string | object
) can be provided as suits the end-developer. It's possible that this might also address @gharwood1's issue?