Skip to content

How do I specify multiple base fonts in typography? #63

Answered by gadenbuie
yo5uke asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks! This might get you close:

typography:
  fonts:
    - family: Zen Maru Gothic
      source: google
    - family: Commissioner
      source: google
    - family: Fira Code
      source: google
  base: "Commissioner, Zen Maru Gothic"
  monospace: "Fira Code, Zen Maru Gothic"

defaults:
  bootstrap:
    defaults:
      font-family-jp: Zen Maru Gothic

Note that typography.fonts loads the fonts into the page, so typography.base (or more specifically typography.base.family) can use any of the fonts. typography.base.family is directly mapped to the CSS font-family property for base fonts (or equivalent in other formats).

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@yo5uke
Comment options

@gadenbuie
Comment options

Answer selected by yo5uke
@gadenbuie
Comment options

@yo5uke
Comment options

@gadenbuie
Comment options

@yo5uke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants