@zmzai/theme 0.2.8 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zmzai/theme",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "zmzai 全品牌设计系统 — Radix UI + framer-motion + Tailwind v4 + MiSans",
Binary file
@@ -16,6 +16,7 @@ const paths: Record<string, { d: string; fill?: boolean }> = {
16
16
  "arrow-down": { d: "M8 3.5v8M5 8.5L8 11.5 11 8.5" },
17
17
  "arrow-right": { d: "M3 8h9.5M8.5 4.5L12 8l-3.5 3.5" },
18
18
  "chevron-right": { d: "M6 4l4 4-4 4" },
19
+ "chevron-left": { d: "M10 4l-4 4 4 4" },
19
20
  "chevron-down": { d: "M4 6l4 4 4-4" },
20
21
  refresh: { d: "M13 8a5 5 0 1 1-1.5-3.6M13 3.5v2.8h-2.8" },
21
22
  retry: { d: "M13 8a5 5 0 1 1-1.5-3.6M13 3.5v2.8h-2.8" },
@@ -1,17 +1,40 @@
1
1
  /*
2
- * @zmzai/theme — Font Faces(v0.2.0 暖色杂志风)
2
+ * @zmzai/theme — Font Faces(v0.2.9 修正字体)
3
3
  *
4
- * Noto Serif SC(衬线正文,杂志感)+ JetBrains Mono(等宽)。
5
- * 均通过 jsDelivr CDN 加载 @fontsource woff2(OFL 协议,免费商用)。
4
+ * MiSans(无衬线正文,现代感主字体)+ JetBrains Mono(等宽)。
5
+ * Noto Serif SC 保留为 serif fallback(标题/杂志元素可选)。
6
+ * MiSans 通过 jsDelivr gh CDN 加载 woff2;Noto Serif SC 走 @fontsource。
6
7
  * font-display: swap 保证加载期间用 fallback,加载完无缝切换。
7
8
  *
8
- * 注意:简体中文子集较大,Noto Serif SC 仅含 chinese-simplified;
9
- * 拉丁字符命中子集内的 latin 部分,无需额外声明。
9
+ * ⚠️ v0.2.0~0.2.8 的坑:Noto Serif SC next/font 里只声明 latin 子集,
10
+ * 中文没有字形 全局中文 fallback 到系统宋体(Songti SC),观感陈旧。
11
+ * 0.2.9 起 --font-sans/--font-serif 默认指 MiSans(无衬线,中文齐全)。
10
12
  *
11
13
  * Import in your app's globals.css:
12
14
  * @import "@zmzai/theme/fonts";
13
15
  */
14
16
 
17
+ @font-face {
18
+ font-family: 'MiSans';
19
+ src: url('https://cdn.jsdelivr.net/gh/dsrkafuu/misans@main/raw/Normal/woff2/MiSans-Regular.woff2') format('woff2');
20
+ font-weight: 400; font-style: normal; font-display: swap;
21
+ }
22
+ @font-face {
23
+ font-family: 'MiSans';
24
+ src: url('https://cdn.jsdelivr.net/gh/dsrkafuu/misans@main/raw/Normal/woff2/MiSans-Medium.woff2') format('woff2');
25
+ font-weight: 500; font-style: normal; font-display: swap;
26
+ }
27
+ @font-face {
28
+ font-family: 'MiSans';
29
+ src: url('https://cdn.jsdelivr.net/gh/dsrkafuu/misans@main/raw/Normal/woff2/MiSans-Semibold.woff2') format('woff2');
30
+ font-weight: 600; font-style: normal; font-display: swap;
31
+ }
32
+ @font-face {
33
+ font-family: 'MiSans';
34
+ src: url('https://cdn.jsdelivr.net/gh/dsrkafuu/misans@main/raw/Normal/woff2/MiSans-Bold.woff2') format('woff2');
35
+ font-weight: 700; font-style: normal; font-display: swap;
36
+ }
37
+
15
38
  @font-face {
16
39
  font-family: 'Noto Serif SC';
17
40
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/noto-serif-sc/files/noto-serif-sc-chinese-simplified-400-normal.woff2') format('woff2');
@@ -36,8 +36,10 @@
36
36
  --color-dark-line: #27272A;
37
37
 
38
38
  /* ===== Fonts =====
39
- 衬线正文字体(Noto Serif SC,杂志感)+ JetBrains Mono 等宽。 */
40
- --font-sans: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
39
+ 无衬线主字体(MiSans,中文现代感)+ Noto Serif SC 标题衬线 + JetBrains Mono 等宽。
40
+ v0.2.0~0.2.8 曾以 Noto Serif SC sans,但 next/font 只加载 latin 子集、
41
+ 中文 fallback 系统宋体观感陈旧——0.2.9 改回 MiSans。 */
42
+ --font-sans: "MiSans", "Noto Serif SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", sans-serif;
41
43
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
42
44
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
43
45