Closed afrankel-sfdo closed 5 years ago
Describe the solution you'd like
injectSheet(styles, { theming: CUSTOM_THEME })
withTheme
withTheme(TestComponent, { theming: CUSTOM_THEME })
Are you willing to implement it? Maybe, would need some direction.
You have access to a withTheme HOC on your custom theming object.
https://github.com/cssinjs/theming#createthemingcontext
@HenriBeck totally missed that, thanks!
Describe the solution you'd like
injectSheet(styles, { theming: CUSTOM_THEME })
withTheme
is required to gain context to that same theme provider when running multiple themes.withTheme(TestComponent, { theming: CUSTOM_THEME })
Are you willing to implement it? Maybe, would need some direction.