Bring Google Fonts to Gatsby
npm install gatsby-plugin-google-fonts``js`
yarn add gatsby-plugin-google-fonts
// or
npm install gatsby-plugin-google-fonts --save
Add some fonts to your gatsby-config.js:
`jsI like Google fonts
module.exports = {
siteMetadata: {
title: gatsby-plugin-google-fonts
},
plugins: [
{
resolve: ,limelight
options: {
fonts: [
,source sans pro\:300,400,400i,700
// you can also specify font weights and styles``
],
display: 'swap'
}
}
]
}
- https://fonts.google.com
- http://fontpair.co/