theme.fonts.body is not being applied to CReset
See original GitHub issueDescribe the bug
theme.fonts.body
is not being applied. (I am using the latest version of chakra-ui/nuxt, 0.0.13.)
To Reproduce Steps to reproduce the behavior:
- Extend theme in nuxt.config.js with extendTheme
- Add
fonts.body
- Build site
- Inspect any plain body element and see that it uses
html { font-family: sans-serif }
and not the theme’s value.
Expected behavior I would expect that html font-family be set to what I provide in my theme.
Additional context
Setting fonts.heading
does work as expected. Additionally, I noticed that useTailwindPreflight() defines html font-family twice, where I’d expect one would suffice. I don’t know how to prove that is the cause, though.
Thanks for your help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
body font from theme not applying · Issue #539 · system-ui ...
I'm using gatsby-plugin-theme-ui (with gatsby-starter-default) and using the Styled component from theme-ui and I'm not seeing the fonts change ...
Read more >Body fonts not being applied - Support
Hi, Ive got a problem that the body font style (Open Sans) isnt being applied to existing text. Ive created text in Open...
Read more >Changing theme does not change font for normal style
I tried applying several themes to the document but the "normal" ... in my document - for the font, I changed it to...
Read more >Cant change body (paragraph) font
I stumbled upon a problem with the Colormag Free theme. ... However, the theme does not respond to changing the body font (paragraph...
Read more >Why is 'font-family' not inherited in '<button>' tags ...
Form elements don't inherit font settings, you have to set these properties manually. If you use font declaration for eg. body, body {font-family:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sure. Per this page https://vue.chakra-ui.com/extending-theme I would expect the following to work: https://codesandbox.io/s/funny-visvesvaraya-wqr7t
Thanks, but what does theme.fonts.body do if not this? I mean, is this really a new feature request or a bug?