doczjs / docz

✍ It has never been so easy to document your things!
https://docz.site
MIT License
23.6k stars 1.46k forks source link

How to get styles applied to components when using Theme-UI? #1589

Open HumidBrains opened 3 years ago

HumidBrains commented 3 years ago

Question

Has anyone succeeded in using Theme-UI with docz and actually gotten the sx styles applied to your components rendered by Playground?

Description I got a Gatsby project (Typescript) running using Theme-UI, all good. It's a monorepo where I got docz installed in the package where my components are located, but the theme for my site (not docz) is coming from a Gatsby theme in another package. When running docz (with typescript set to true in .doczrc), I manage to render my components, but they're displaying without any css applied. I'm not managing to display props table either despite components props are specified , but guess that's another issue.

Would be grateful for any help.

dbertella commented 3 years ago

Did you check this issue already? #1474 it kind of fixed it for me