I have an existing component library set up with Styled Components + Styled System. Now trying to integrate dark mode, and upon switching over from SC <ThemeProvider /> to the Theme UI alternative, I can't seem to get it working.
Am I doing something wrong or will I need to switch all my components to use Emotion instead of SC?
Theme UI is built with Emotion, and while it generally shouldn't clash with Styled Components, the theming context in the two libraries is not shared
So in order to continue to use my components, many of which are built using Styled Components + Styled System's themed css function, AND integrate Theme UI - I will need to switch over to Emotion?
If so that's fine, I just want to be clear before investing the time into switching over.
@kiastorm Did you end up needing to switch to emotion?
Sorry for the delayed response! Generally, I think it would make more sense to use only one CSS-in-JS library and Theme UI uses Emotion, but you can technically use both libraries together
Most helpful comment
Sorry for the delayed response! Generally, I think it would make more sense to use only one CSS-in-JS library and Theme UI uses Emotion, but you can technically use both libraries together