# Change hard coded font ratios to variables

**URL:** <https://meta.discourse.org/t/change-hard-coded-font-ratios-to-variables/47404>\
**Category:** UX\
**Created:** [July 16, 2016, 6:18pm UTC](https://meta.discourse.org/t/change-hard-coded-font-ratios-to-variables/47404 "2016-07-16T18:18:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![probus](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@probus](https://meta.discourse.org/u/probus)\
**Post date:** [July 17, 2016, 6:11am UTC](https://meta.discourse.org/t/change-hard-coded-font-ratios-to-variables/47404/3 "2016-07-17T06:11:02Z")

</div>

> [@sam](#):
>
> Can you expand on this issue with a screenshot or two?

Unfortunately not. This is pretty basic stuff for (Windows) font rendering in low resolution screens, but I don’t have such setup.

Here’s a list of the main font sizes, basically I suggest replacing these with variables named xxs-xxl or — +++ trough out the css.

0.714 //10px  
0.857 //12px  
0.929 //13px  
1 //14px  
1.071 //15px  
1.143 //16px  
1.214 //17px  
1.286 //18px  
1.5 //21px  
1.571 //22px  
1.643 //23px  
1.714 //24px  
1.786 //25px  
2 // 28px

I left a couple out (if I remember correctly there are some nested rules) and the larger sizes obviously don’t suffer as much as the smaller.

---

_[View the full topic](https://meta.discourse.org/t/change-hard-coded-font-ratios-to-variables/47404)._
