-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Doczrc themeConfig not applying heading styles as expected #1309
Comments
I have the same issue |
Replaces MDXProvider with ThemeProvider Allows customization of all mdx components from themeConfig #1309 https://theme-ui.com/mdx-components https://theme-ui.com/theme-spec
Hey ! Thanks for reporting this issue and providing an easy way to reproduce it. There was indeed an issue with theming mdx components. The new version is released on the
And will soon be in PS: For more information about styling using themeConfig check : https://theme-ui.com/theme-spec |
hey @rakannimer thanks for taking a look! unfortunately i am still seeing this issue with I used this doczrc.js, and am only seeing the serif fonts in body applied: export default {
themeConfig: {
fonts: {
body: 'serif',
},
style: {
h2: {
color: 'red',
fontWeight: 500,
},
}
}
} |
I think it's still happening in the repo you provided because you have shadowed all the files in gatsby-theme-docz which is preventing the fix from being applied in the updated gatsby-theme-docz. In particular the fix which is in base/Layout and index.js is being over-written by : I advise you to remove the theme and only keep the file(s) that you really need to shadow to be able to benefit from new features and fixes 👍 |
hmm interesting, i just removed the entire |
I found 2 other issues :
Could you give Yihwan/gatsby-docz-flicker-issue#1 a try and let me know ? |
so weird, i just merged your PR into https://github.com/Yihwan/gatsby-docz-flicker-issue/tree/theming-issue, but am still not seeing a change. but if you can see the |
@rakannimer i just got this fix working on a separate repo, so i am guessing i couldn't figure it out this morning due to lack of coffee. 😆 thank you again, and i'll let you know if i notice any other strange things! |
Awesome ! Happy to hear that 😄 I will keep this issue open until we release 2.3.0 |
themeConfig: { |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm attempting to customize styles using the doczrc config, and I've found that heading styles aren't applied as expected.
For example:
Does anyone have ideas why? I've resorted to shadowing the
Heading
component to apply some default styles, but that doesn't seem sustainable long-term.I was able to reproduce this issue on a fresh project and can upload/link to that if helpful.
The text was updated successfully, but these errors were encountered: