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
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a bit of trouble applying a custom theme to mdx. The generated
Docstab works as expected on the components withStoriescsf format, butmdxonly 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 Codebit)Here's an example
.mdxwhich does not take the theme. Tried with both regularmdinside ofmdxas well asSourcecomponentHere's the usage in
preview.jsthat works as expected for.stories.tsxBeta Was this translation helpful? Give feedback.
All reactions