Apply custom theme to mdx #17190
Unanswered
nrakochy
asked this question in
Documentation
Replies: 1 comment
-
If you are also using MUI I found #25134 helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having a bit of trouble applying a custom theme to mdx. The generated
Docs
tab works as expected on the components withStories
csf format, butmdx
only is not applying the theme. I have attempted multiple variations of the sb documentation. What might I be missing? Appreciate any help.Output
Here you can see the text is the wrong color, code source is off, etc.
Expected Output (which applies even on the
Show Code
bit)Here's an example
.mdx
which does not take the theme. Tried with both regularmd
inside ofmdx
as well asSource
componentHere's the usage in
preview.js
that works as expected for.stories.tsx
Beta Was this translation helpful? Give feedback.
All reactions