Can't customize theme to change default font sizes
See original GitHub issueDescribe the bug
Can’t change the default fontSize
(aka text-base
).
I followed this sample and tested with double font size base: "2rem"
To Reproduce Steps to reproduce the behavior: My tailwind.config.js:
module.exports = {
content: ["./App.{js,jsx,ts,tsx}", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
fontSize: {
sm: "0.8rem",
base: "2rem",
xl: "1.25rem",
"2xl": "1.563rem",
"3xl": "1.953rem",
"4xl": "2.441rem",
"5xl": "3.052rem",
},
},
plugins: ["nativewind"],
};
Expected behavior Base font size should double but instead it looks the same.
Is it a known bug? Or how to change the default fontSize?
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Theme not used in text editor, cannot change font-size
When I use the text editor the text does not use my default font-size, taken from the theme Pukeko. the odd thing is,...
Read more >Change the font size - Microsoft Support
Change the default font size for all text. The way you change the default font size varies by app. Select your app below,...
Read more >How to Change the Font Globally in WordPress
To change the font globally in your WordPress site, you can edit the style for your site. This tutorial will show you how....
Read more >How to Easily Change the Font Size in WordPress - WPBeginner
Beginners guide to changing font size in WordPress for post and page content using headings or TinyMCE advanced editor functions.
Read more >WordPress Custom Fonts | WordPress.com Support
Reset Fonts · Go to Appearance → Customize · Click Fonts. · Click the X next to the custom font to reset the...
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
Would you be able to tell me the steps to make it work with
px
instable
?stable
only supportspx
, however there are various issues with babel/cachetailwind.config.js
(#235), so may need to update your babel cache.Can you please list your issues with
next
in #308