How to change font family while using storybook-design-token #28236
-
SummaryFor displaying my design tokens, I am using a wonderful plugin storybook-desing-token. However, I am struggling with setting up my custom I know about theming (as it is explained here: theming docs of storybook and it ability to set However, it only affects the fonts in the navbar on the left. Fonts in content are getting overriden and they get value of : My question is, why? And how can I fix it? Additional informationMy
Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, I have figured it out. I realized that since I am using MDX files for displaying these stories from storybook-design-token my global theming of Storybook won´t affect it. The theming docs even mentioned it:
That is why it did not get affected. The fix was to... unexpectedly follow the docs of styling Closing question |
Beta Was this translation helpful? Give feedback.
Ok, I have figured it out.
I realized that since I am using MDX files for displaying these stories from storybook-design-token my global theming of Storybook won´t affect it. The theming docs even mentioned it:
That is why it did not get affected. The fix was to... unexpectedly follow the docs of styling
mdx
files inpreview.ts
file:Closing question