Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#346 Make mdx docs readable for dark theme by applying styles on Canvas wrapper #347

Merged
merged 2 commits into from
Jul 20, 2022

Conversation

sgraczyk
Copy link

@sgraczyk sgraczyk commented Jul 19, 2022

Resolves #346

Based on the following threads/issues I ended up applying themes in docs using the Canvas wrapper, so only a part of the documentation reflects theme tokens, and only for font and background color. This should be enough for showing Foundations docs.

Proof:
image
image
image

References:
storybookjs/storybook#10054
storybookjs/storybook#12817

@sgraczyk sgraczyk added this to the v1.0.0 milestone Jul 19, 2022
@sgraczyk sgraczyk requested a review from a team July 19, 2022 15:47
@sgraczyk sgraczyk removed this from the v1.0.0 milestone Jul 20, 2022
@sgraczyk sgraczyk merged commit 65e3c89 into v1 Jul 20, 2022
@sgraczyk sgraczyk deleted the feature/346 branch July 20, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Storybook] Theme switcher does not apply dark theme correctly to mdx docs (Foundations)
3 participants