Typography.js syntax error?

I want to use Google Font in Typography.js
However it keeps telling me that I have syntax error and Gatsby JS always failed to run under
gatsby develop

Here is the Typography.js file:

//customize fonts here:

// set default font size to 16 px
import Typography from "typography";  
const typography = new Typography({ 
  baseFontSize: "16px",
    name: 'Montserrat',
    styles: [

export default typography;

Where did I do wrong?

I don’t know typography.js, but that part looks strange:

I would expect an object:
googleFonts={name: 'Montserrat', styles: [ '100', '300', '400' ] }

1 Like

opps… thanks for pointing out…