Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
Changing some area's font-family with typography.js in Gatsbyjs

This is my first time to change font-family in Gatsbyjs.

I use this template

https://www.gatsbyjs.com/starters/netlify-templates/gatsby-starter-netlify-cms

I could change font but some part are not changing.

Here is my current code

import Typography from "typography"
import Theme from "typography-theme-moraga"

Theme.googleFonts.push({
// Noto Sans JP
  name: "Noto+Sans+JP",
  styles: ["400"],
})
Theme.bodyFontFamily = ["Noto Serif JP", "Roboto", "serif"]
Theme.headerFontFamily = ["Noto Serif JP", "Roboto", "serif"]
Theme.htmlFontFamily = ["Noto Serif JP", "Roboto", "serif"]
Theme.textareaFontFamily = ["Noto Serif JP", "Roboto", "serif"]

const typography = new Typography(Theme)

// Hot reload typography in development.
if (process.env.NODE_ENV !== `production`) {
  typography.injectStyles()
}

export default typography export const rhythm = typography.rhythm export const scale = typography.scale

I thoguht src\components\all.sass is css section. but I couldn't find font-family line which I would like to adjust. so I looked css using firefox developer tool and I see file name called common.css but I couldn't find it.

enter image description here

Could you teach me how to change main all font-family and adjusting specific area.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!