Bring Google Fonts to Gatsby https://www.gatsbyjs.org/
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6521f93 Mar 15, 2018
Permalink
Failed to load latest commit information.
.gitignore Initial commit Sep 18, 2017
LICENSE Initial commit Sep 18, 2017
README.md Update README with font weights Sep 28, 2017
gatsby-ssr.js es5 Sep 26, 2017
index.js Initial commit Sep 18, 2017
package.json v0.0.4 Mar 14, 2018

README.md

gatsby-plugin-google-fonts

How to use it ?

yarn add gatsby-plugin-google-fonts
// or
npm install gatsby-plugin-google-fonts --save

Add some fonts to your gatsby-config.js:

module.exports = {
  siteMetadata: {
    title: `I like Google fonts`
  },
  plugins: [
    {
      resolve: `gatsby-plugin-google-fonts`,
      options: {
        fonts: [
          `limelight`,
          `source sans pro\:300,400,400i,700` // you can also specify font weights and styles
        ]
      }
    }
  ]
}

How to find great ideas ?