No description, website, or topics provided.
Clone or download
Latest commit 095484e Aug 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Removed SSR Jul 30, 2018
test Plugin Jul 5, 2018
.gitignore Initial commit Jul 5, 2018
.npmignore Initial commit Jul 5, 2018
.nvmrc Initial commit Jul 5, 2018
.travis.yml Initial commit Jul 5, 2018
README.md Installation in readme Jul 5, 2018
package.json 1.0.4 Aug 20, 2018
yarn.lock Plugin Jul 5, 2018

README.md

gatsby-plugin-web-font-loader

A Gatsby plugin to asynchronously load webfonts using Web Font Loader. Can load fonts from Google Fonts, Typekit, Fonts.com, and Fontdeck, as well as self-hosted web fonts.

Installation

With npm:

npm install --save gatsby-plugin-web-font-loader

Or with Yarn:

yarn add gatsby-plugin-web-font-loader

Usage

In your gatsby-config.js file, load in the plugin along with which web fonts to load. For example, loading Google Fonts could look like this:

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-web-font-loader',
      options: {
        google: {
          families: ['Droid Sans', 'Droid Serif']
        }
      }
    }
  ]
}

For a list of all available options, consult the Web Font Loader readme.