Replies: 1 comment 1 reply
-
You can replicate Emotion's theming using CSS vars. Technically Emotion's theme can contain non-primitive values but that's not advised anyway. When nesting ThemeProviders you can compute the inner theme based on the outer theme (which u cant do easily with CSS - at least not without extra rerender) but usually that's not needed either. If you ask me - we'd like to drop having theme in the core but for now, we keep it to avoid churn in the community. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently building an app which will need theming support and I'm having a hard time understanding what benefits does emotion's theme API provide. It's basically a plain javascript object shared in a context or passed down as a prop.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions