Hi there, I’m having troubles with redwood not generating my chakra’s data-emotion-css on most things.has anyone else came across this issue in redwood?
exact same code works fine elsewhere (cra, next…etc) so I know its not chakra (also already troubleshot it with their team on discord and he said its either emotion or redwood related, but it works everywhere else so I’m guessing its an issue with redwood missing something or rendering something different that I need to add in a babel or webpack config?
In this example I tried adding header sizes and also tried adding letterspacing. I have to manually add anything I need as rem sizing as nothing is being imported and then rendered into css from the main chakra theme, ive tried using the default theme and a custom theme to no avail.
For example, I should be able to do
<Heading size='2xl' letterSpacing='widest'>
and it should render the css (from the theme settings default or defined in the customtheme)
font-size: 4rem;
letter-spacing: 2.25rem;
but instead it renders it literally and drops back to defaults:
font-size: 2xl;
letter-spacing: widest;
but its wild because some of the styling works… just not some of the fields getting data from the theme dynamically that is causing issues, and overall a lot of the styling isnt being loaded the correct way on render.
demo app:
https://socialite-plum.vercel.app/
my chakra provider:
https://github.com/hyliancoder/socialite/blob/master/web/src/index.js
my layout where styles are being used:
https://github.com/hyliancoder/socialite/blob/master/web/src/layouts/HeaderLayout/HeaderLayout.js
my custom theme file:
https://github.com/hyliancoder/socialite/blob/master/web/src/theme/theme.js
my rendered css/html:
how it should be:
if anyone has encountered this and has any tips, its much appreciated!