mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
字体效果优化
This commit is contained in:
@@ -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 字体图标地址
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user