Wondering what’s next for npm?Check out our public roadmap! »

    gatsby-plugin-web-font-loader

    1.0.4 • Public • Published

    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.

    Install

    npm i gatsby-plugin-web-font-loader

    DownloadsWeekly Downloads

    20,309

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    3.83 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar