Skip to content

Fonts Configuration and different fonts for heading and body? #733

Closed Answered by markdumay
Aman-Aalam asked this question in Help
Discussion options

You must be logged in to vote

You can configure multiple fonts and apply them to different elements of your site. The following example configures Fira Sans as default font. It then configures PT Serif font to headings and display headings specifically.

Define the font stack in params.toml, separating the family names by a comma:

[style]
    themeFont = "Fira Sans, PT Serif"
    themeFontPath = "/fonts" # local path

Use the google-webfonts-helper to download the two fonts. Copy the font files to your local static/fonts directory. Put the font face definitions in a new file assets/scss/theme/fonts.scss.

Hinode now uses Fira Sans as default font for the entire site, as it is the first font in our custom font stack. We c…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markdumay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants