# Ionic 4: How to change font size?

**URL:** <https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807>\
**Category:** Ionic Framework\
**Created:** [January 31, 2019, 1:26am UTC](https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807 "2019-01-31T01:26:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![i2x](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/i2x/32/123951_2.png) [@i2x](https://forum.ionicframework.com/u/i2x)\
**Post date:** [January 31, 2019, 1:26am UTC](https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807/1 "2019-01-31T01:26:12Z")

</div>

Howdy -

I’m starting a new Ionic v4 app and the customer has asked for the font-size to be larger. Seems like a reasonable request.

I see documentation on [Ionic CSS variables](https://ionicframework.com/docs/theming/css-variables#ionic-variables), including colors and --ion-font-family. However, I see no obvious way to customize font size.

What’s the recommended approach?

Thanks for the help,  
Ben

---

<div class="post-metadata">

**Author:** ![OliverPrimo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/oliverprimo/32/121442_2.png) [@OliverPrimo](https://forum.ionicframework.com/u/OliverPrimo)\
**Post date:** [January 31, 2019, 8:47am UTC](https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807/2 "2019-01-31T08:47:05Z")

</div>

I guess there are so many ways to customize the look and feel of your app including the font-size.

**1. Overriding Variables**

> You can put your font-size customization to _variables.scss_ that is located inside your your\_app\_folder/src/theme/. This will affect all the Sass variables found in Ionic’s source scss files.

**2. Modifying app.scss**

> You can put your font-size customization to _app.scss_ that is located inside your your\_app\_folder/src/app/. This will affect your styles globally for the entire app and not just one component.

**3. Modify specific component**

> You can put your font-size customization to _your-component.scss_. This will the style of that specific component, you can use this approach if you want to modify a specific component only.

I am not sure if this answers your question but I hope it can help you in any way 😊

---

<div class="post-metadata">

**Author:** ![h\_schindler](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@h\_schindler](https://forum.ionicframework.com/u/h_schindler)\
**Post date:** [March 21, 2019, 8:16am UTC](https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807/3 "2019-03-21T08:16:43Z")

</div>

Hi,  
same problem. In Ionic v3 I changed the font-size on html-tag (\<`html`\>). Now in Ionic 4 this don’t work. I think it’s a problem with the web component architecture and the shadow dom. The documentation about this is very meager.  
I there a CSS4 variable to change the main font-size?

---

<div class="post-metadata">

**Author:** ![tomahony](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tomahony/32/119561_2.png) [@tomahony](https://forum.ionicframework.com/u/tomahony)\
**Post date:** [April 26, 2019, 11:25am UTC](https://forum.ionicframework.com/t/ionic-4-how-to-change-font-size/154807/4 "2019-04-26T11:25:04Z")

</div>

This seems to be another bewildering omission from the docs. There are pages of information on how to change colors, but nothing on font sizes.

This works for me. In your `theme/variables.scss` file:

```auto
:root {
  ion-input {
    --background: white;
    --padding-start: 15px;
    --padding-end: 15px;
    --padding-top: 15px;
    --padding-bottom: 15px;
    font-size: 1.6rem;
  }
}

```

I don’t know why you need to use a mix of variables and declarations.
