How to add Google fonts? #1578
Answered
by
Mister-Hope
alaireselene
asked this question in
Q&A
-
Hello, I've read the instruction and modified ".vuepress/styles/palette.scss" @import url('https://fonts.googleapis.com/css2?family=Fira+Sans&family=IBM+Plex+Mono&display=swap');
// font
$fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", "Fira Sans", sans-serif' !default;
$fontFamilyFancy: '-apple-system, BlinkMacSystemFont, "Segoe UI", "Fira Sans", sans-serif' !default;
// code
$fontFamilyCode: '"IBM Plex Mono", monospace' !default;
$lineNumbersWidth: 2.5rem !default; So what is the right way to change fonts? Thank you so much Mr.Hope for your work! |
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Mar 15, 2022
Replies: 1 comment 5 replies
-
Your problem is similar to this. https://vuepress-theme-hope.github.io/v2/faq.html#importing-iconfont-icons-does-not-work |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your problem is similar to this.
https://vuepress-theme-hope.github.io/v2/faq.html#importing-iconfont-icons-does-not-work