@zmzai/theme 0.5.8 → 0.6.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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zmzai/theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "zmzai 全品牌设计系统 — Radix UI + framer-motion + Tailwind v4 + MiSans",
|
|
@@ -59,12 +59,6 @@
|
|
|
59
59
|
"README.md",
|
|
60
60
|
"LICENSE"
|
|
61
61
|
],
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "tsc -p tsconfig.json --noEmit",
|
|
64
|
-
"typecheck": "tsc --noEmit",
|
|
65
|
-
"playground": "vite playground --port 5174",
|
|
66
|
-
"prepublishOnly": "pnpm typecheck"
|
|
67
|
-
},
|
|
68
62
|
"peerDependencies": {
|
|
69
63
|
"react": "^19.0.0",
|
|
70
64
|
"react-dom": "^19.0.0",
|
|
@@ -104,5 +98,9 @@
|
|
|
104
98
|
"remark-gfm": "^4.0.1",
|
|
105
99
|
"tailwind-merge": "^2.5.0"
|
|
106
100
|
},
|
|
107
|
-
"
|
|
108
|
-
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "tsc -p tsconfig.json --noEmit",
|
|
103
|
+
"typecheck": "tsc --noEmit",
|
|
104
|
+
"playground": "vite playground --port 5174"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -13,14 +13,14 @@ export const inputVariants = cva(
|
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
15
15
|
default:
|
|
16
|
-
"border border-line rounded-sm px-4
|
|
16
|
+
"h-10 border border-line rounded-sm px-4 text-sm focus:border-ink",
|
|
17
17
|
brutal:
|
|
18
|
-
"border-2 border-ink rounded-sm px-4
|
|
18
|
+
"h-10 border-2 border-ink rounded-sm px-4 text-sm",
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
|
-
sm: "text-xs
|
|
22
|
-
md: "text-sm
|
|
23
|
-
lg: "text-base
|
|
21
|
+
sm: "h-8 text-xs px-3",
|
|
22
|
+
md: "h-10 text-sm px-4",
|
|
23
|
+
lg: "h-12 text-base px-5",
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
defaultVariants: {
|
|
@@ -18,7 +18,7 @@ export function SelectTrigger({
|
|
|
18
18
|
return (
|
|
19
19
|
<SelectPrimitive.Trigger
|
|
20
20
|
className={cn(
|
|
21
|
-
"inline-flex h-
|
|
21
|
+
"inline-flex h-10 items-center justify-between gap-2 rounded-sm border border-line bg-bg px-4 text-sm font-medium text-ink outline-none transition-colors",
|
|
22
22
|
"hover:border-ink/40 focus:border-ink data-[placeholder]:text-ink-3",
|
|
23
23
|
className
|
|
24
24
|
)}
|
package/src/tokens/theme.css
CHANGED
|
@@ -6,32 +6,33 @@
|
|
|
6
6
|
* @import "@zmzai/theme/tokens";
|
|
7
7
|
* @import "@zmzai/theme/fonts";
|
|
8
8
|
*
|
|
9
|
-
* v0.
|
|
10
|
-
* 与 zmzai.cloud 主应用(Hallmark Study)同源。
|
|
11
|
-
*
|
|
9
|
+
* v0.6.0 起为纯白 + 荧光绿(Pure white + fluorescent green),
|
|
10
|
+
* 与 zmzai.cloud 主应用(Hallmark Study)同源。
|
|
11
|
+
* v0.2.0~0.5.x 为暖色杂志风(Warm paper + seal-red,已弃用)。
|
|
12
|
+
* v0.1.x 黑白 Monochrome 风,更早废弃。
|
|
12
13
|
*/
|
|
13
14
|
|
|
14
15
|
@theme {
|
|
15
16
|
/* ===== Color =====
|
|
16
|
-
|
|
17
|
-
accent
|
|
18
|
-
--color-bg: oklch(0.
|
|
19
|
-
--color-surface: oklch(0.
|
|
20
|
-
--color-surface-2: oklch(0.
|
|
21
|
-
--color-ink: oklch(0.
|
|
22
|
-
--color-ink-2: oklch(0.
|
|
17
|
+
纯白底 + 荧光绿 accent(与 zmzai.cloud 主应用同源,Hallmark Study 锁定)。
|
|
18
|
+
accent 为荧光绿(oklch 0.78 0.220 142);accent-ink 为深色(用于绿底上的字)。 */
|
|
19
|
+
--color-bg: oklch(0.995 0.002 90);
|
|
20
|
+
--color-surface: oklch(0.98 0.004 90);
|
|
21
|
+
--color-surface-2: oklch(0.95 0.006 88);
|
|
22
|
+
--color-ink: oklch(0.15 0.010 30);
|
|
23
|
+
--color-ink-2: oklch(0.50 0.012 55);
|
|
23
24
|
--color-ink-3: oklch(0.55 0.012 55);
|
|
24
|
-
--color-line: oklch(0.
|
|
25
|
-
--color-line-strong: oklch(0.
|
|
26
|
-
--color-accent: oklch(0.
|
|
27
|
-
--color-accent-ink: oklch(0.
|
|
28
|
-
--color-success: oklch(0.
|
|
29
|
-
--color-danger: oklch(0.
|
|
30
|
-
--color-warning: oklch(0.
|
|
25
|
+
--color-line: oklch(0.90 0.005 88);
|
|
26
|
+
--color-line-strong: oklch(0.15 0.010 30);
|
|
27
|
+
--color-accent: oklch(0.78 0.220 142);
|
|
28
|
+
--color-accent-ink: oklch(0.15 0.010 30);
|
|
29
|
+
--color-success: oklch(0.72 0.180 145);
|
|
30
|
+
--color-danger: oklch(0.55 0.200 25);
|
|
31
|
+
--color-warning: oklch(0.80 0.150 90);
|
|
31
32
|
|
|
32
33
|
/* Dark surface — 仅用于代码块/preview,不是全局 dark mode */
|
|
33
34
|
--color-dark-bg: #0A0A0A;
|
|
34
|
-
--color-dark-surface: #
|
|
35
|
+
--color-dark-surface: #141414;
|
|
35
36
|
--color-dark-ink: #FAFAFA;
|
|
36
37
|
--color-dark-line: #27272A;
|
|
37
38
|
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
--color-muted: var(--color-ink-2);
|
|
63
64
|
--color-rule: var(--color-ink);
|
|
64
65
|
--color-surface-strong: var(--color-surface-2);
|
|
65
|
-
--color-accent-strong: oklch(0.
|
|
66
|
+
--color-accent-strong: oklch(0.68 0.220 142);
|
|
66
67
|
--animate-dur-fast: 150ms;
|
|
67
68
|
--animate-dur-base: 250ms;
|
|
68
69
|
--animate-dur-slow: 500ms;
|
|
@@ -100,8 +101,8 @@
|
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
::selection {
|
|
103
|
-
background: var(--color-
|
|
104
|
-
color:
|
|
104
|
+
background: var(--color-accent);
|
|
105
|
+
color: var(--color-accent-ink);
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
:focus-visible {
|