字体效果优化

This commit is contained in:
tangly1024.com
2023-02-09 14:53:35 +08:00
parent 6f13f0a57b
commit 357cef29fe
2 changed files with 4 additions and 3 deletions

View File

@@ -25,16 +25,17 @@ const BLOG = {
// 网站字体
FONT_STYLE: process.env.NEXT_PUBLIC_FONT_STYLE || 'font-serif', // ['font-serif','font-sans'] 两种可选,分别是衬线和无衬线: 参考 https://www.jianshu.com/p/55e410bd2115
FONT_URL: [// 字体CSS 例如 https://npm.elemecdn.com/lxgw-wenkai-webfont@1.6.0/style.css
'https://fonts.googleapis.com/css?family=Bitter&display=swap',
'https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@500&display=swap',
'https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500&display=swap'
],
FONT_SANS: [// 无衬线字体 例如'LXGW WenKai'
'"PingFang SC"', '-apple-system', 'BlinkMacSystemFont', '"Hiragino Sans GB"',
'Bitter', '"PingFang SC"', '-apple-system', 'BlinkMacSystemFont', '"Hiragino Sans GB"',
'"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Segoe UI"', '"Noto Sans SC"', 'HarmonyOS_Regular',
'"Microsoft YaHei"', '"Helvetica Neue"', 'Helvetica', '"Source Han Sans SC"',
'Arial', 'sans-serif', '"Apple Color Emoji"'],
FONT_SERIF: [// 衬线字体 例如'LXGW WenKai'
'"Noto Serif SC"', 'SimSun', '"Times New Roman"', 'Times', 'serif',
'Bitter', '"Noto Serif SC"', 'SimSun', '"Times New Roman"', 'Times', 'serif',
'"Segoe UI Emoji"', '"Segoe UI Symbol"', '"Apple Color Emoji"'],
FONT_AWESOME: '/css/all.min.css', // font-awesome 字体图标地址

View File

@@ -1,5 +1,5 @@
:root {
--fg-color: rgb(55, 53, 47);
--fg-color: rgb(0, 0, 0);
--fg-color-0: rgba(55, 53, 47, 0.09);
--fg-color-1: rgba(55, 53, 47, 0.16);
--fg-color-2: rgba(55, 53, 47, 0.4);