Skip to content

Typography Plugin Has No Effect (Tutorial #2) #1739

@geirman

Description

@geirman

Stepping through part 2 of your tutorial, I believe I followed the directions correctly, but changing the baseFontSize has no effect.

Here's what I've got...

// /gatsby-config.js
module.exports = {
  siteMetadata: {
    title: `Gatsby Default Starter`
  },
  plugins: [
    `gatsby-plugin-react-helmet`,
    {
      resolve: `gatsby-plugin-typography`,
      options: {
        pathToConfigModule: `src/utils/typography.js`
      }
    }
  ]
};
// src/utils/typography.js
import Typography from 'typography';

const typography = new Typography({ baseFontSize: '10px' });

export default typography;

I am seeing the typography.js style included
image

NOTE: I did not create a new site as the tutorial suggests. I instead continued from the previous tutorial (step-1). And I used the default gatsby new <sitename> for that one as well. I'd be surprised if this has anything to do with it, but mention it just in case. I have restarted gatsby develop many times after ctrl C to stop the server.

I'm not sure how to troubleshoot this, so that might be a nice thing to add to the tutorial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions