ui: tweak modular scale, move from oxygen to inter

This commit is contained in:
Jean-Philippe Sirois
2020-05-22 01:33:40 -04:00
parent 429197693b
commit 2d267a8064
6 changed files with 24 additions and 18 deletions
+5 -5
View File
@@ -1,9 +1,9 @@
const FONT_OXYGEN = "Oxygen, sans-serif"
const FONT_INTER = "Inter, sans-serif"
const FONT_MONTSERRAT = "Montserrat, sans-serif"
export const BASE_FONT_SIZE = 18
export const BASE_LINE_HEIGHT = 25
export const MODULAR_SCALE = 1.1487
export const BASE_FONT_SIZE = 20
export const BASE_LINE_HEIGHT = 26
export const MODULAR_SCALE = 1.2
function modularFontSize(power: number) {
return BASE_FONT_SIZE * Math.pow(MODULAR_SCALE, power)
@@ -25,7 +25,7 @@ export function modularScale(power: number) {
export const fontFamily = {
header: FONT_MONTSERRAT,
body: FONT_OXYGEN,
body: FONT_INTER,
}
export default fontFamily