Styles from theme not being applied #1244
-
Everything in my theme gets picked up, apart from stuff within styles. The I've been using the font size of headings to test. So with this I would expect the fontsize for H2 to be massive and H1 to be tiny. But nothing gets applied. If I change the I'm not sure if a misunderstanding on my part about how it should work, or something I've set up incorrectly.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@danchristian - its probably a bit confusing, but the styles link is specific that those styles apply for MDX components only. You can have a couple options:
|
Beta Was this translation helpful? Give feedback.
-
@atanasster I have another question!
|
Beta Was this translation helpful? Give feedback.
-
@danchristian - multiple levels for option 1 above can be accomplished with variants (Heading is using variants under the theme:
and your Heading component:
|
Beta Was this translation helpful? Give feedback.
@danchristian - its probably a bit confusing, but the styles link is specific that those styles apply for MDX components only.
You can have a couple options:
Styled
component: