Closed claytonbwell closed 5 years ago
Are you including the plugin in yourgatsby-config.js
?
You shouldn't need to import the typography.js
you created to use it. You can but the gatsby plugin makes it painless.
Yea I've got it in my gatsby-config.js file. Is typography.js supposed to auto-apply to all h and p tags?
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`
}
},
I'm very green to Gatsby (and Javascript coding in general) so I'm hoping someone can explain this to me so that I can move past it. I can't figure out how to use typography.js in my site. I've got it all installed correctly. The issue I have is actually implementing it in my project.
I'm following a Gatsby tutorial and building a banner that will have text overlaid. I don't like the font the instructor used so thought I'd try typography.js... If anyone can help me out I would greatly appreciate it.
Here's what I got:
in typography.js file in my utils folder:
my Banner.js file looks like this:
I'm sure I'm calling it into the project incorrectly to begin with, but I also need to know if/how to apply it to my h1 and h3 tags. (The styles.js file in the utils folder contains navbar animation, one bad font, border styling and letter spacing.)