Skip to content

Commit 7ce85b9

Browse files
committed
style: improve base typography
1 parent 26eb13f commit 7ce85b9

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<link rel="preconnect" href="https://fonts.googleapis.com" />
7+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
8+
<link
9+
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap"
10+
rel="stylesheet"
11+
/>
612
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
713
<meta name="description" content="大模型日志分析工具 - 分析和可视化机器学习训练日志中的损失函数和梯度范数数据" />
814
<meta name="keywords" content="机器学习,日志分析,数据可视化,损失函数,梯度范数" />

src/index.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&display=swap');
2+
13
@tailwind base;
24
@tailwind components;
35
@tailwind utilities;
46

57
/* Accessibility improvements */
68
@layer base {
9+
body {
10+
font-family: 'Noto Sans SC', ui-sans-serif, system-ui, Helvetica Neue, Arial, Noto Sans, sans-serif;
11+
background-color: #f9fafb;
12+
color: #1f2937;
13+
line-height: 1.5;
14+
}
715
/* Screen reader only content */
816
.sr-only {
917
position: absolute;

tailwind.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ export default {
55
"./src/**/*.{js,ts,jsx,tsx}",
66
],
77
theme: {
8-
extend: {},
8+
extend: {
9+
fontFamily: {
10+
sans: ['"Noto Sans SC"', 'ui-sans-serif', 'system-ui', 'Helvetica Neue', 'Arial', 'Noto Sans', 'sans-serif'],
11+
},
12+
},
913
},
1014
plugins: [],
1115
}

0 commit comments

Comments
 (0)