Skip to content

Commit

Permalink
Self-host web font (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarprause authored Nov 15, 2023
1 parent 1a1e606 commit 52a97ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 80 deletions.
2 changes: 2 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import React from "react";
import { LinkProvider } from "./src/components/header/header";

import "modern-normalize/modern-normalize.css";
import "@fontsource/space-grotesk/400.css";
import "@fontsource/space-grotesk/700.css";
import "./src/styles/typo.css";

/** @type {import("gatsby").GatsbyBrowser["wrapPageElement"]} */
Expand Down
8 changes: 0 additions & 8 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ module.exports = {
},
},
},
{
resolve: "gatsby-plugin-web-font-loader",
options: {
google: {
families: ["Space Grotesk:400,700"],
},
},
},
{
resolve: "gatsby-source-filesystem",
options: {
Expand Down
82 changes: 11 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build-storybook": "build-storybook"
},
"dependencies": {
"@fontsource/space-grotesk": "^5.0.15",
"@mdx-js/mdx": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"canvas": "^2.9.1",
Expand All @@ -27,7 +28,6 @@
"gatsby-plugin-react-leaflet": "^3.0.3",
"gatsby-plugin-sass": "^5.6.0",
"gatsby-plugin-sharp": "^4.17.0",
"gatsby-plugin-web-font-loader": "^1.0.4",
"gatsby-remark-images": "^6.17.0",
"gatsby-source-filesystem": "^4.17.0",
"gatsby-transformer-sharp": "^4.17.0",
Expand Down

0 comments on commit 52a97ab

Please sign in to comment.