Skip to content

[FEATURE] 能在配置文件中添加字体字段吗? #159

Answered by Lruihao
userxiaosi asked this question in Q&A
Discussion options

You must be logged in to vote

@userxiaosi 你可以将 _custom.scss 复制到自己博客相似相同目录,在 _custom.scss 里你可以自定义任何的 CSS 样式,比如全局修改字体你可以这样写

html {
  font-family: 'system-ui, -apple-system'
}

或者 _override.scss 覆盖全局的 scss 字体变量 $global-font-family

更多请查看 https://fixit.lruihao.cn/zh-cn/theme-documentation-basics/#33-自定义样式

  • 相似问题 #80

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Lruihao
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
Q&A
Labels
Q&A question and answer
2 participants
Converted from issue

This discussion was converted from issue #158 on July 18, 2022 07:49.