Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
fix: switch to small type scale - mobile
Browse files Browse the repository at this point in the history
Switch to a smaller type scale for mobile devices

fix #339
  • Loading branch information
Schalk Neethling committed Dec 8, 2020
1 parent b3edc08 commit 0e3baa1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions sass/vars/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ $large-font-size: 1.953rem; /* 35.16px */
$medium-font-size: 1.563rem; /* 28.13px */
$small-medium-font-size: 1.25rem; /* 22.50px */

/* Mobile typescale based on minor third typescale with a base of
100% of base font size set by the user. */
$xxl-font-size-mobile: 2.488rem;
$xl-font-size-mobile: 2.074rem;
$large-font-size-mobile: 1.728rem;
$medium-font-size-mobile: 1.44rem;
$small-medium-font-size-mobile: 1.2rem;
/* Mobile typescale based on a major second typescale with a base of
* 100% as set by the user
* https://type-scale.com/?size=16&scale=1.125&text=MDN%20Web%20Docs&font=Open%20Sans&fontweight=400&bodyfont=body_font_default&bodyfontweight=400&lineheight=1.75&backgroundcolor=%23ffffff&fontcolor=%23212121&preview=true
*/
$xxl-font-size-mobile: 1.802rem;
$xl-font-size-mobile: 1.602rem;
$large-font-size-mobile: 1.424rem;
$medium-font-size-mobile: 1.266rem;
$small-medium-font-size-mobile: 1.125rem;

$default-font-size: 1rem; /* 18px */
$small-font-size: 0.9rem; /* 16px */
Expand Down

0 comments on commit 0e3baa1

Please sign in to comment.