font-family

This commit is contained in:
xaoxuu 2022-10-12 23:19:10 +08:00
parent 001079c072
commit 6ae95666ab
2 changed files with 14 additions and 1 deletions

View File

@ -365,6 +365,10 @@ plugins:
style: style:
darkmode: auto # auto / always / false darkmode: auto # auto / always / false
smooth_scroll: true # true / false smooth_scroll: true # true / false
font-family:
logo: system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif
body: system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif
code: Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif
theme: theme:
light: '#f8f8f8' light: '#f8f8f8'
dark: '#313438' dark: '#313438'

View File

@ -38,9 +38,18 @@ $dark-site-bg-mobile = black
$ff-body = system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif $ff-body = system-ui, "Microsoft Yahei", "Segoe UI", -apple-system, Roboto, Ubuntu, "Helvetica Neue", Arial, "WenQuanYi Micro Hei", sans-serif
$ff-code = Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif $ff-code = Menlo, Monaco, Consolas, system-ui, "Courier New", monospace, sans-serif
$ff-logo = $ff-body $ff-logo = $ff-body
if hexo-config('style.font-family.body')
$ff-body = convert(hexo-config('style.font-family.body'))
if hexo-config('style.font-family.code')
$ff-code = convert(hexo-config('style.font-family.code'))
if hexo-config('style.font-family.logo')
$ff-logo = convert(hexo-config('style.font-family.logo'))
// font size // font size
$fs-root = 16px $fs-root = 16px
$fs-15 = .9375rem $fs-15 = .9375rem