@zmzai/theme 0.8.4 → 0.9.1
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.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "zmzai 全品牌设计系统 — Radix UI + framer-motion + Tailwind v4 + MiSans",
|
|
@@ -64,7 +64,8 @@
|
|
|
64
64
|
"build": "tsc -p tsconfig.json --noEmit",
|
|
65
65
|
"typecheck": "tsc --noEmit",
|
|
66
66
|
"playground": "vite playground --port 5174",
|
|
67
|
-
"prepublishOnly": "pnpm typecheck"
|
|
67
|
+
"prepublishOnly": "pnpm typecheck && pnpm run guard:colors",
|
|
68
|
+
"guard:colors": "node scripts/check-color-literals.mjs"
|
|
68
69
|
},
|
|
69
70
|
"peerDependencies": {
|
|
70
71
|
"react": "^19.0.0",
|
|
@@ -8,7 +8,7 @@ export interface MovingBorderProps {
|
|
|
8
8
|
className?: string;
|
|
9
9
|
/** Border rotation duration in seconds (default 5) */
|
|
10
10
|
duration?: number;
|
|
11
|
-
/** Border color (default accent
|
|
11
|
+
/** Border color (default accent = ink) */
|
|
12
12
|
borderColor?: string;
|
|
13
13
|
/** Inner background color (default bg) */
|
|
14
14
|
backgroundColor?: string;
|
package/src/tokens/theme.css
CHANGED
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
* v0.2~0.5 暖纸 + 印章红
|
|
18
18
|
* v0.6.x 纯白 + 荧光绿(accent 一色包打天下,装饰过载 → 观感 demo)
|
|
19
19
|
* v0.8.x 纯白 + 墨黑结构 + 绿色语义
|
|
20
|
-
* v0.8.3 品牌色全墨 Monochrome
|
|
20
|
+
* v0.8.3 品牌色全墨 Monochrome
|
|
21
|
+
* v0.9.0 暖纸底 + Serif display——去单调
|
|
22
|
+
* v0.9.1 印色路标撤回,命名定全词(现行)
|
|
21
23
|
*/
|
|
22
24
|
|
|
23
25
|
@theme {
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
v0.6 的 ink(30°) / ink-2(55°) / line(88°) / surface(90°) 四个色相
|
|
28
30
|
混用,是"说不出哪里怪"的根源。
|
|
29
31
|
══════════════════════════════════════════════════════ */
|
|
30
|
-
--color-bg: oklch(
|
|
32
|
+
--color-bg: oklch(0.992 0.003 85); /* 页面底,暖纸(v0.9.0:色相 85 彩度 0.003,有温度无色相感) */
|
|
31
33
|
--color-surface: oklch(0.985 0.001 265); /* 卡片 / 面板 */
|
|
32
34
|
--color-surface-2: oklch(0.968 0.002 265); /* 嵌套 / 表头 */
|
|
33
35
|
--color-surface-3: oklch(0.94 0.003 265); /* hover / 按下 */
|