<aside> ✅ Option: Why?
</aside>
Since the rebranding of the website and Joy UI, the emotion React theme
context is not hosting the Material UI theme structure anymore.
We need to have a decision around:
An earlier proposal:
The idea in this option is to import a static theme in all the docs-infra components that are rendered in the docs, where Joy UI might be present in the parent context. To make this work, we would need to add an invariant in the runtime to catch issues early on. This would be very close to https://vanilla-extract.style/
Pros:
Cons:
sx
prop. We don’t have access to the theme.