Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

151
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda