@seanyeh77/ui 0.24.0 → 0.25.0

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/dist/tokens.css CHANGED
@@ -129,13 +129,13 @@
129
129
  --shadow-overlay: 0 20px 48px rgba(0, 0, 0, 0.5);
130
130
  }
131
131
  [data-theme="teaching"] {
132
- --accent: #0f766e;
133
- --accent-hover: #0d6861;
134
- --accent-press: #0c5c56;
135
- --accent-text: #0f766e;
136
- --accent-soft: #e2efee;
137
- --focus-ring: rgba(15, 118, 110, 0.3);
138
- --chart-1: #0f766e;
132
+ --accent: #0e827d;
133
+ --accent-hover: #0c726e;
134
+ --accent-press: #0b6562;
135
+ --accent-text: #0e827d;
136
+ --accent-soft: #e2f0ef;
137
+ --focus-ring: rgba(14, 130, 125, 0.3);
138
+ --chart-1: #0e827d;
139
139
  --radius-sm: 0px;
140
140
  --radius-chip: 0px;
141
141
  --radius-md: 0px;
@@ -118,7 +118,7 @@
118
118
 
119
119
  - 主題與強調色放在設定頁的「外觀」,不放在頂部列。
120
120
  - 主題:自動、淺色、深色三張預覽卡片(`ThemePicker`)。
121
- - 強調色:8 個推薦色票,加上可以輸入任何色碼的欄位(`AccentPicker`)。
121
+ - 強調色:8 個推薦色票,加上可以輸入任何色碼的欄位(`AccentPicker`)。每個推薦色在淺色主題都至少 4.5:1:當文字放在 `bg` 上,以及白字放在它上面;預設色一定是其中之一。
122
122
  - 切換主題時,所有顏色用 300 ms 漸變。
123
123
 
124
124
  ## 通知
@@ -279,13 +279,13 @@ Slidev 教材投影片使用 `data-theme="teaching"`。投影片的 CSS 只讀 t
279
279
  已確認的選擇:
280
280
 
281
281
  - 混合方案:中性色與字型沿用設計系統,強調色、直角與細線邊框沿用投影片風格。
282
- - 強調色:青綠 `#0f766e`。
282
+ - 強調色:預設為青 `#0e827d`,即 8 個推薦色之一;觀眾可以用簡報的選色器改成其他顏色。
283
283
  - 圓角:全部 0 px(`radius-sm`、`radius-chip`、`radius-md`、`radius-lg`)。
284
284
  - 陰影:不用(`shadow-*` 為 none),外框用 1.5 px 的 `line`。
285
285
  - 字型:標題與內文 Inter 加思源黑體,程式碼 Geist Mono。
286
286
  - 只有淺色。
287
287
 
288
- `accent-hover`、`accent-press`、`accent-soft` 依「自訂強調色的換算」由 `#0f766e` 算出。版面、字級與投影片規則見 `teaching-materials-style`。
288
+ `accent-hover`、`accent-press`、`accent-soft`、`accent-text`、`on-accent` 依「自訂強調色的換算」由 `#0e827d` 算出:它在 `bg` 上為 4.51:1、白字在它上面為 4.66:1,所以 `accent-text` 就是強調色本身,強調色底上的文字用白色。版面、字級與投影片規則見 `teaching-materials-style`。
289
289
 
290
290
  ## 無障礙
291
291
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyeh77/ui",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "SeanYeh's design system: typed React components on Base UI, styled with design tokens.",
5
5
  "license": "MIT",
6
6
  "author": "Hsiu-An Yeh",
@@ -49,7 +49,7 @@
49
49
  "react-dom": "^19.3.1",
50
50
  "tsdown": "^0.23.7",
51
51
  "vitest": "^5.1.0",
52
- "@seanyeh77/tokens": "^0.24.0"
52
+ "@seanyeh77/tokens": "^0.25.0"
53
53
  },
54
54
  "dependencies": {
55
55
  "@base-ui/react": "^1.9.0"