Open christopherjbaker opened 6 years ago
I have recently come across styled components and think this might be a better way to provide this functionality. Not only can arbitrary information be exposed via a theme (especially colors and sizes), but the styled components themselves can be collected in a single place for ease of replacing (much like st2-panel
, though strictly styles, and hopefully in individual files as appropriate).
If one wants to rebrand the app, they can do so by overwriting
st2-style
with lerna. If they want to include one of our components in their own custom app, it will be styled our way, and there is no way to re-style (only recolor/etc, as above). Once the modules are using css modules (part of #456), I would propose that the modules also take an optionalstyle
prop, which will be used instead of the local styles. I would also suggest that the local styles be exported, so that a user can merge those with some of their own.