Skip to content

How to change font family while using storybook-design-token #28236

Closed Answered by Grzegorz-Molin
Grzegorz-Molin asked this question in Help
Discussion options

You must be logged in to vote

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:

Storybook docs uses the same theme system as Storybook’s UI but is themed independently from the main UI.

That is why it did not get affected. The fix was to... unexpectedly follow the docs of styling mdx files in preview.ts file:

Closing question

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Grzegorz-Molin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant