Skip to content

Commit 770f3f8

Browse files
author
hulinjiang
committed
style(quartz): 调整样式和字体配置
- 移除 blockquote 的 padding 注释- 注释掉 WenKai 字体的样式链接 - 更新 quartz.config.ts 中的字体配置: - 将 fontOrigin 从 'local' 改为 'googleFonts' - 将 header 字体改为 'Schibsted Grotesk' - 将 body 字体改为 'Source Sans Pro' -调整 light 模式下的背景颜色
1 parent 17939d3 commit 770f3f8

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

quartz.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ const config: QuartzConfig = {
1818
ignorePatterns: ["private", "templates", ".obsidian"],
1919
defaultDateType: "created",
2020
theme: {
21-
fontOrigin: "local",
21+
fontOrigin: "googleFonts",
2222
cdnCaching: true,
2323
typography: {
24-
header: "LXGW WenKai",
25-
body: "LXGW WenKai Mono",
24+
header: "Schibsted Grotesk",
25+
body: "Source Sans Pro",
2626
code: "Fire Code",
2727
},
2828
colors: {
2929
lightMode: {
30-
light: "#f9f4ee", // 温暖的米色背景
30+
light: "#FFFCF0", // 温暖的米色背景
3131
lightgray: "#ebe6e0", // 调整为更温暖的浅灰色
3232
gray: "#c0b8b0", // 中性偏暖的灰色
3333
darkgray: "#5a534d", // 深灰带一点褐

quartz/components/Head.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export default (() => {
8080
/>
8181
</>
8282
)}
83-
<link rel="stylesheet"
84-
href="https://cdn.jsdelivr.net/npm/@callmebill/lxgw-wenkai-web/lxgwwenkaiscreen/result.css" spa-preserve/>
83+
{/*<link rel="stylesheet"*/}
84+
{/* href="https://cdn.jsdelivr.net/npm/@callmebill/lxgw-wenkai-web/lxgwwenkaiscreen/result.css" spa-preserve/>*/}
8585
<link rel="stylesheet"
8686
href="https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css" spa-preserve/>
8787
{css.map((resource) => CSSResourceToStyleElement(resource, true))}

quartz/styles/custom.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ a.external {
293293
//引用样式
294294
blockquote:not(.callout) {
295295
background: #fff1c9;
296-
//padding: 25px;
297296
margin-bottom: 10px;
298297
border: 1px solid #ffe066;
299298
border-radius: var(--border-radius);

0 commit comments

Comments
 (0)