# How to set global font size in Discourse?

**URL:** https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807
**Category:** Support
**Created:** [Fevereiro 18, 2016, 4:04pm UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807 "2016-02-18T16:04:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![SMT](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SMT](https://meta.discourse.org/u/SMT)
#### Post date: [Fevereiro 18, 2016, 4:04pm UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/1 "2016-02-18T16:04:39Z")

</div>

I changed the font of my forum to proxima nova. But now the default font size is very small. If I change by this way -

```
body {
    font-size: 16px;
}

```

The font size gets increased automatically for example - topic title font size sets to 23px and so on. Whats the problem?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Fevereiro 18, 2016, 4:51pm UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/2 "2016-02-18T16:51:30Z")

</div>

For Discourse the font size is set at 14px on the html element. Most of the other fonts are sized using the ‘em’ unit. For example the heading of this topic has a size of 1.8 em. To convert an em unit to px you multiply the em unit by the size of the current font (1.8 em \* 14px). If you change the font size on the html element or the body element, that change will cascade throughout the application. It’s done that way on purpose. It does mean that if you change the base font size you might have to adjust font sizes and possibly some margins and padding in a few other places.

Maybe you can get away with changing the font size on `.container.posts` or `.topic-body`

`.container.posts {font-size: 16px;}`

That will affect less of the application.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Dezembro 21, 2018, 3:28am UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/3 "2018-12-21T03:28:09Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Dezembro 21, 2018, 3:29am UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/4 "2018-12-21T03:29:23Z")

</div>

I believe there is an easy way to change global font size in Discourse now @awesomerobot?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [Dezembro 21, 2018, 3:37am UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/5 "2018-12-21T03:37:45Z")

</div>

Right, all font sizes cascade from the 14px set on the HTML tag — so you can bump everything up proportionately by doing

```css
html {
  font-size: 16px;
}  

```

or if you just want to increase the font size of a specific section, that still works too — just find a parent container and apply a font size there. For example, posts:

```CSS
.posts-wrapper {
  font-size: 16px;
}

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Novembro 13, 2021, 11:58pm UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/6 "2021-11-13T23:58:44Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Novembro 14, 2021, 5:00am UTC](https://meta.discourse.org/t/how-to-set-global-font-size-in-discourse/39807/7 "2021-11-14T05:00:18Z")

</div>

Observe que, por usuário, você pode controlar o tamanho da fonte **no navegador da web** por meio de dois métodos:

1. Escala de zoom do navegador (no Chrome, o zoom é definido como 100% por padrão)
2. Ajuste manual do tamanho da fonte do navegador (no Chrome, Aparência –\> Tamanho da fonte, que é definido como Médio por padrão)

Você pode ajustar o tamanho da fonte **no Discourse** em [suas preferências de usuário](https://meta.discourse.org/my/preferences/interface) na seção Tamanho do texto. O padrão é Normal.

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/8/d8b42c5e19478eb42175dd269839cbd0fb714b44.png)
