Heading children styles coming through as the string "heading" instead of theme values #1480
-
I'm trying to bootstrap a relatively simple next.js typescript x theme-ui 0.6.6 app and have the following in my theme:
Sorry, I feel like i wrestle with this stage of setup every single time i start a new theme-ui project and I'm sure that I am just missing something simple. Current Repo is here where I am updating a simple mdx-theme-ui-next.js example to use typescript and the latest theme-ui. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yep, I've run into this many times too. It's super frustrating. This is usually caused by having multiple installations of Emotion in a project, which means the theme context won't be properly inherited by components. It looks like you've specified |
Beta Was this translation helpful? Give feedback.
Yep, I've run into this many times too. It's super frustrating. This is usually caused by having multiple installations of Emotion in a project, which means the theme context won't be properly inherited by components. It looks like you've specified
@emotion/react
yourself inpackage.json
. If you remove that & re-install/re-start, does it work?