Skip to content

Commit

Permalink
Revert "#155 | Use local prefetched google fonts"
Browse files Browse the repository at this point in the history
This reverts commit b7d3c60.
  • Loading branch information
himeshr committed Dec 3, 2024
1 parent 442313a commit 6fa414d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 293 deletions.
17 changes: 0 additions & 17 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,6 @@ module.exports = {
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
omitGoogleFont: true
},
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
family: `Muli`,
styles: [
'900',
'900i',
'400',
'200',
]
},
],
},
},
{
Expand Down
274 changes: 0 additions & 274 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"gatsby-plugin-google-analytics": "^2.3.18",
"gatsby-plugin-netlify": "^2.3.19",
"gatsby-plugin-netlify-cms": "^4.3.16",
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
"gatsby-plugin-purgecss": "^5.0.0",
"gatsby-plugin-react-helmet": "^3.3.14",
"gatsby-plugin-sass": "^2.3.16",
Expand Down
12 changes: 11 additions & 1 deletion src/utils/typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ import Typography from "typography"
const typography = new Typography({
baseFontSize: "14px",
baseLineHeight: 1.666,
googleFonts: [],
googleFonts: [
{
name: 'Muli',
styles: [
'900',
'900i',
'400',
'200',
]
}
],
headerFontFamily: [
"Muli",
"Helvetica Neue",
Expand Down

0 comments on commit 6fa414d

Please sign in to comment.