Skip to content

Commit 8a3d988

Browse files
author
yunxinx
committed
将部分自定义字体修改为CDN形式,并且更新 OpenWebUI 版本至 0.6.10
1 parent aab989a commit 8a3d988

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

openwebui_css/assets/custom.css

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/* --- 修改/添加 @font-face 规则 --- */
2+
@import url("https://fontsapi.zeoseven.com/2/main/result.css");
3+
24
@font-face {
3-
/* 给你的代码字体起个名字,比如 'Maple Mono' */
4-
font-family: 'Maple Mono';
5-
/* 确认路径正确:相对于 custom.css,字体在 fonts/ 目录下 */
6-
src: url('fonts/MapleMono-Regular.woff2') format('woff2');
5+
font-family: "ZSFT-443";
6+
src: url("https://fontsapi.zeoseven.com/443/main.woff2") format('woff2'),
7+
url("https://fontsapi-storage.zeoseven.com/443/main.woff2") format('woff2');
78
font-display: swap;
89
font-style: normal;
910
}
@@ -17,22 +18,13 @@
1718
font-style: italic;
1819
}
1920

20-
@font-face {
21-
/* 给你的UI主字体起个名字,比如 'MiSans' */
22-
font-family: 'MiSans';
23-
/* 确认路径正确 */
24-
src: url('fonts/MiSans.woff2') format('woff2');
25-
font-display: swap;
26-
/* 如果 MiSans.woff2 包含多种字重,可以分别定义,
27-
但如果只有一个常规体,这样写就行 */
28-
}
29-
3021
html {
3122
scroll-behavior: smooth;
3223
}
3324

3425
body {
35-
font-family: 'MiSans', -apple-system, BlinkMacSystemFont, sans-serif;
26+
font-family: "LXGW ZhenKai", -apple-system, BlinkMacSystemFont, sans-serif;
27+
font-weight: normal;
3628
}
3729

3830
/* 代码块容器样式 */
@@ -137,8 +129,8 @@ body {
137129

138130
/* 代码内容区域 */
139131
.cm-content {
140-
/* 使用你为 MapleMono 定义的 font-family 名称 */
141-
font-family: 'Maple Mono', -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
132+
/* 使用你为 ZSFT-443 定义的 font-family 名称 */
133+
font-family: 'ZSFT-443', -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, system-ui, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
142134
/* 保留后面的备用字体 */
143135
font-size: 15px !important;
144136
line-height: 1.6em !important;
@@ -291,7 +283,7 @@ span.ͼw {
291283
color: #586069 !important;
292284
padding-right: 10px !important;
293285
/* 也使用代码字体 */
294-
font-family: 'Maple Mono';
286+
font-family: 'ZSFT-443';
295287
}
296288

297289
.dark .cm-gutters {

0 commit comments

Comments
 (0)