Skip to content

Changing font size #398

Answered by prototypa
toorajpro asked this question in Q&A
Mar 26, 2024 · 0 comments · 2 replies
Discussion options

You must be logged in to vote

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 2xl:text-[20px] means that the base font for devices with a minimum size of 1536px will be 20px. More details:

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
4 replies
@toorajpro
Comment options

@prototypa
Comment options

@toorajpro
Comment options

@prototypa
Comment options

Answer selected by prototypa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants