-
Hi, It seems the current font size for normal paragraphs is too big (25px). Is there a way to reduce all the font sizes with the same scale factor? For example I like to have the paragraph font to be reduced to 22px so a reduction ratio if 22/25, or 88%. How can I achive a 88% reduction on all the font sizes? Also how to change the line spacing in the paragraphs? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
Hi @toorajpro I think a solution for your needs is to modify the tailwind.config.cjs to adjust the Tailwind CSS settings to update the font sizes and line height to the values you want. Also keep in mind that for larger devices in AstroWind we do a proportional adjustment (increase the size of everything) using a class in the HTML tag. <html class="2xl:text-[20px] motion-safe:scroll-smooth">
<!-- rest of the tags -->
</html> The class |
Beta Was this translation helpful? Give feedback.
Hi @toorajpro
I think a solution for your needs is to modify the tailwind.config.cjs to adjust the Tailwind CSS settings to update the font sizes and line height to the values you want.
Also keep in mind that for larger devices in AstroWind we do a proportional adjustment (increase the size of everything) using a class in the HTML tag.
The class
2xl:text-[20px]
means that the base font for devices with a minimum size of 1536px will be 20px. More details: