From 594b2eb08b39f8e6d2c0db768c4cce57eec96a65 Mon Sep 17 00:00:00 2001 From: terrierscript <13282103+terrierscript@users.noreply.github.com> Date: Wed, 23 Oct 2019 23:48:14 +0900 Subject: [PATCH] add https://github.com/KyleAMathews/typography.js/issues/211\#issuecomment-494001270 --- app/utils/typography.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/utils/typography.js b/app/utils/typography.js index 60c9cd2..4369bc2 100644 --- a/app/utils/typography.js +++ b/app/utils/typography.js @@ -1,6 +1,5 @@ import Typography from "typography" // import fairyGatesTheme from "typography-theme-fairy-gates"; -import injectFonts from "typography-inject-fonts" export const headerFont = "Quicksand" // export const headerFont = "Hiragino Kaku Gothic" @@ -16,6 +15,10 @@ const theme = { name: "Nunito", styles: ["400", "600", "700", "800", "900"] // styles: [400, 500] + }, + { + name: "Roboto Condensed", + styles: ["700&display=swap"] } ], headerFontFamily: [headerFont, "Helvetica"], @@ -42,7 +45,4 @@ const theme = { const typography = new Typography(theme) -typography.injectStyles() -injectFonts(typography) - export default typography