Some UI libraries, like Grommet, are based on styled-components instead of emotion.
Supporting styled-components only by itself doesn’t make much sense because all the features are included in Emotion. So we are only talking about supporting styled-components to support the UI libraries that use styled-components instead of emotion.
As a theme developer
I want to use UI libraries that work with styled-components instead of emotion
so that I can do my work faster
We have some possibilities here:
Add support for styled-components SSR
I don’t think this makes much sense because we will increase the bundle size of Frontity unnecessarily.
Translate the styled-components API to emotion
This makes more sense but we still need to figure out how we are going to deal with Theming in Frontity to translate the
- Don’t support styled-components UI libraries at all