1yarn add gatsby-plugin-google-fonts
2// or
3npm install gatsby-plugin-google-fonts --save
4
5module.exports = {
6 siteMetadata: {
7 title: `I like Google fonts`
8 },
9 plugins: [
10 {
11 resolve: `gatsby-plugin-google-fonts`,
12 options: {
13 fonts: [
14 `limelight`,
15 `source sans pro\:300,400,400i,700` // you can also specify font weights and styles
16 ],
17 display: 'swap'
18 }
19 }
20 ]
21}