Use typeface-fira-mono instead of locally checked-in files

This commit is contained in:
Kyle Mathews 2020-01-11 16:20:39 -08:00
parent 93b8ad6856
commit e94168ddb3
8 changed files with 10 additions and 20 deletions

View file

@ -1,6 +1,6 @@
import React from 'react';
import { FilterProvider } from './src/context/FilterContext';
import './static/fonts.css';
import React from "react";
import { FilterProvider } from "./src/context/FilterContext";
import "typeface-fira-mono";
export const wrapRootElement = ({ element }) => (
<FilterProvider>{element}</FilterProvider>

5
package-lock.json generated
View file

@ -15780,6 +15780,11 @@
"is-typedarray": "^1.0.0"
}
},
"typeface-fira-mono": {
"version": "0.0.72",
"resolved": "https://registry.npmjs.org/typeface-fira-mono/-/typeface-fira-mono-0.0.72.tgz",
"integrity": "sha512-bouzjtniGMrakhazipUl6mskswe7UvH3qynU5Wsl0O7NMuL178VtZ0pOqUGsjBJ42l64GZo9nUMI1eSK4kvJbQ=="
},
"ua-parser-js": {
"version": "0.7.21",
"resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.21.tgz",

View file

@ -29,7 +29,8 @@
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1",
"styled-components": "5.0.0-rc.3"
"styled-components": "5.0.0-rc.3",
"typeface-fira-mono": "0.0.72"
},
"scripts": {
"build": "npx --node-arg '-r esm' gatsby build",

View file

@ -1,16 +0,0 @@
/* Fonts */
@font-face {
font-family: 'Fira Mono';
font-weight: 400;
font-style: normal;
src: url('../src/fonts/fira_mono-regular-webfont.woff2') format('woff2'),
url('../src/fonts/fira_mono-regular-webfont.woff') format('woff');
font-display: swap;
}
@font-face {
font-family: 'Fira Mono';
font-weight: 400;
font-style: italic;
src: url('../src/fonts/fira_mono-regular_italic-webfont.woff2') format('woff2'), url('../src/fonts/fira_mono-regular_italic-webfont.woff') format('woff');
font-display: swap;
}