ui-ux-next-kit 0.0.0-stage → 0.0.2
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/LICENSE +21 -0
- package/README.md +167 -2
- package/SKILL.md +115 -0
- package/bin/cli.js +196 -0
- package/examples/admin-home/MASTER.md +36 -0
- package/examples/admin-home/dashboard.html +127 -0
- package/examples/admin-home/pages/dashboard.md +12 -0
- package/examples/admin-home/tokens.css +52 -0
- package/examples/admin-home/tokens.json +44 -0
- package/examples/site-home/MASTER.md +42 -0
- package/examples/site-home/home.html +222 -0
- package/examples/site-home/pages/home.md +13 -0
- package/examples/site-home/tokens.css +60 -0
- package/examples/site-home/tokens.json +48 -0
- package/package.json +39 -4
- package/references/audit-dimensions.md +60 -0
- package/references/exemplar-deploy.md +72 -0
- package/references/exemplar-rpa-architecture.md +38 -0
- package/references/exemplar-rpa-console.md +120 -0
- package/references/figma-handoff.md +36 -0
- package/references/public-components.md +950 -0
- package/references/rules-sediment.md +15 -0
- package/references/tech-stacks.md +48 -0
- package/scripts/check-globals.sh +37 -0
- package/scripts/check-tokens.sh +42 -0
- package/scripts/lib.sh +13 -0
- package/scripts/run-all.sh +7 -0
- package/skill.json +16 -0
- package/templates/cursor-rules/figma-handoff.mdc +21 -0
- package/templates/cursor-rules/frontend-stack.mdc +97 -0
- package/templates/fix-prompts/P-A-tokens.md +23 -0
- package/templates/fix-prompts/P-D-states.md +24 -0
- package/templates/fix-prompts/P-H-globals.md +21 -0
- package/templates/fix-prompts/base.md +26 -0
- package/templates/report-template.md +67 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# 系统概况
|
|
2
|
+
|
|
3
|
+
登录后的首页。侧栏固定,顶栏和内容在剩余宽度里。
|
|
4
|
+
|
|
5
|
+
| 区域 | 尺寸 | 样式 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| 侧栏 | 宽 216,通高 | 白底;logo 区高约 59,内边距 16×12;选中项高 40、左右 16、圆角 12、底 `#1677ff`、字白 |
|
|
8
|
+
| 顶栏 | 高 56,左右 24 | 白底,阴影 `--shadow-header`;面包屑 14px |
|
|
9
|
+
| 页头 | 内边距 6×24×12 | 白底,圆角 16,同一套顶栏阴影 |
|
|
10
|
+
| 页底 | `#f5f5f5` | 指标卡白底、圆角 12 |
|
|
11
|
+
| 启用条 | 高 22 | 斜纹 `-45deg`,6px 一段;四色见 token |
|
|
12
|
+
| 正文 | 14 / rgba(0,0,0,.88) | 问候 22/700,区块标题 16/600 |
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 管理后台 · 系统概况
|
|
3
|
+
* 来源:已登录的 dashboard 计算样式。不含站点地址。
|
|
4
|
+
* 采样:2026-11-23,桌面视口 1440。账号信息未写入。
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
--font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
|
|
8
|
+
"Microsoft YaHei", "Noto Sans SC", sans-serif;
|
|
9
|
+
|
|
10
|
+
--color-primary: #1677ff;
|
|
11
|
+
--color-primary-hover: #4096ff;
|
|
12
|
+
--color-primary-active: #0958d9;
|
|
13
|
+
--color-primary-bg: #e6f4ff;
|
|
14
|
+
--color-on-primary: #ffffff;
|
|
15
|
+
|
|
16
|
+
--color-brand: #ff6a00;
|
|
17
|
+
--color-brand-hover: #e56200;
|
|
18
|
+
|
|
19
|
+
--color-text: rgba(0, 0, 0, 0.88);
|
|
20
|
+
--color-text-secondary: rgba(0, 0, 0, 0.65);
|
|
21
|
+
--color-background: #f5f5f5;
|
|
22
|
+
--color-surface: #ffffff;
|
|
23
|
+
|
|
24
|
+
--color-bar-product: #ff6b1a;
|
|
25
|
+
--color-bar-floor: #3d7eff;
|
|
26
|
+
--color-bar-banner: #8b5cf6;
|
|
27
|
+
--color-bar-news: #1bbf75;
|
|
28
|
+
|
|
29
|
+
--font-size-body: 14px;
|
|
30
|
+
--font-size-section: 16px;
|
|
31
|
+
--font-size-hero: 22px;
|
|
32
|
+
--font-weight-hero: 700;
|
|
33
|
+
--font-weight-section: 600;
|
|
34
|
+
|
|
35
|
+
--space-header-x: 24px;
|
|
36
|
+
--space-page: 24px;
|
|
37
|
+
|
|
38
|
+
--radius-menu: 12px;
|
|
39
|
+
--radius-card: 12px;
|
|
40
|
+
--radius-shell: 16px;
|
|
41
|
+
--radius-lg: 20px;
|
|
42
|
+
--radius-pill: 999px;
|
|
43
|
+
|
|
44
|
+
--shadow-header: 0 1px 2px #0f172a0a, 0 8px 24px #0f172a0f;
|
|
45
|
+
--shadow-sider: 4px 0 24px #0f172a0a;
|
|
46
|
+
--shadow-card: 0 2px 4px #0f172a0d, 0 14px 36px #0f172a1a;
|
|
47
|
+
|
|
48
|
+
--size-header: 56px;
|
|
49
|
+
--size-sider: 216px;
|
|
50
|
+
--size-menu-item: 40px;
|
|
51
|
+
--size-bar: 22px;
|
|
52
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "管理后台系统概况。2026-11-23 从已登录的 dashboard 计算样式抽出。不含账号、不含站点名。",
|
|
3
|
+
"color": {
|
|
4
|
+
"primary": { "$type": "color", "$value": "#1677ff" },
|
|
5
|
+
"primary-hover": { "$type": "color", "$value": "#4096ff" },
|
|
6
|
+
"brand": { "$type": "color", "$value": "#ff6a00" },
|
|
7
|
+
"background": { "$type": "color", "$value": "#f5f5f5" },
|
|
8
|
+
"surface": { "$type": "color", "$value": "#ffffff" },
|
|
9
|
+
"bar-product": { "$type": "color", "$value": "#ff6b1a" },
|
|
10
|
+
"bar-floor": { "$type": "color", "$value": "#3d7eff" },
|
|
11
|
+
"bar-banner": { "$type": "color", "$value": "#8b5cf6" },
|
|
12
|
+
"bar-news": { "$type": "color", "$value": "#1bbf75" }
|
|
13
|
+
},
|
|
14
|
+
"font": {
|
|
15
|
+
"sans": {
|
|
16
|
+
"$type": "fontFamily",
|
|
17
|
+
"$value": "-apple-system, BlinkMacSystemFont, PingFang SC, Helvetica Neue, Microsoft YaHei, Noto Sans SC, sans-serif"
|
|
18
|
+
},
|
|
19
|
+
"body": { "$type": "dimension", "$value": "14px" },
|
|
20
|
+
"hero": { "$type": "dimension", "$value": "22px" }
|
|
21
|
+
},
|
|
22
|
+
"size": {
|
|
23
|
+
"header": { "$type": "dimension", "$value": "56px" },
|
|
24
|
+
"sider": { "$type": "dimension", "$value": "216px" },
|
|
25
|
+
"menu-item": { "$type": "dimension", "$value": "40px" },
|
|
26
|
+
"bar": { "$type": "dimension", "$value": "22px" }
|
|
27
|
+
},
|
|
28
|
+
"radius": {
|
|
29
|
+
"card": { "$type": "dimension", "$value": "12px" },
|
|
30
|
+
"shell": { "$type": "dimension", "$value": "16px" },
|
|
31
|
+
"lg": { "$type": "dimension", "$value": "20px" }
|
|
32
|
+
},
|
|
33
|
+
"semantic": {
|
|
34
|
+
"color": {
|
|
35
|
+
"primary": { "$type": "color", "$value": "{color.primary}" },
|
|
36
|
+
"brand": { "$type": "color", "$value": "{color.brand}" },
|
|
37
|
+
"background": { "$type": "color", "$value": "{color.background}" },
|
|
38
|
+
"surface": { "$type": "color", "$value": "{color.surface}" }
|
|
39
|
+
},
|
|
40
|
+
"font": {
|
|
41
|
+
"body": { "$type": "fontFamily", "$value": "{font.sans}" }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# 官网首页 · 抽出的设计系统
|
|
2
|
+
|
|
3
|
+
来源:某官网首页,桌面视口 1440×900 的计算样式。这是页面上正在用的值,不是推荐生成的配色。不写站点名。
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
+----------------------------------------------------------------------------------------+
|
|
7
|
+
| TARGET: 官网首页 |
|
|
8
|
+
+----------------------------------------------------------------------------------------+
|
|
9
|
+
| |
|
|
10
|
+
| PATTERN: 全出血 Banner + 产品楼层 |
|
|
11
|
+
| 1. 固定顶栏(56px,内容宽 1200) |
|
|
12
|
+
| 2. Banner 8:3,展示高 720,指示点居中 |
|
|
13
|
+
| 3. 楼层底 #f5f5f7;首卡通栏 1200×520,其后两列 590+590、间距 20 |
|
|
14
|
+
| 4. 品牌视频条 |
|
|
15
|
+
| 5. 黑底页脚 |
|
|
16
|
+
| |
|
|
17
|
+
| STYLE: 白底产品目录 + 深色主视觉 |
|
|
18
|
+
| 卡片白底、圆角 24、轻阴影;购买按钮胶囊形 |
|
|
19
|
+
| |
|
|
20
|
+
| COLORS: |
|
|
21
|
+
| Primary: #FF6A00 |
|
|
22
|
+
| Primary hover: #E56200 |
|
|
23
|
+
| On primary: #FFFFFF |
|
|
24
|
+
| Background: #FFFFFF |
|
|
25
|
+
| Floor: #F5F5F7 |
|
|
26
|
+
| Text: #000000 / 次级 #333333 |
|
|
27
|
+
| Footer: #000000 |
|
|
28
|
+
| |
|
|
29
|
+
| TYPOGRAPHY: 系统中文栈(PingFang SC / Microsoft YaHei) |
|
|
30
|
+
| 导航 14/20,产品名 36/700,规格 16/400,价格符号 24、数字 36 |
|
|
31
|
+
| |
|
|
32
|
+
| KEY EFFECTS: |
|
|
33
|
+
| 卡片 hover 上移 4px,阴影 0 8px 24px rgba(0,0,0,.12) |
|
|
34
|
+
| 入场 translateY(56px) → 0,900ms,cubic-bezier(.16,1,.3,1) |
|
|
35
|
+
| |
|
|
36
|
+
| AVOID: |
|
|
37
|
+
| 第二套主色;卡片圆角改成 8;购买按钮改成直角 |
|
|
38
|
+
| |
|
|
39
|
+
+----------------------------------------------------------------------------------------+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Token:`tokens.css`、`tokens.json`。首页结构与覆盖:`pages/home.md`。可打开的静态页:`home.html`。
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>官网首页 · 抽出的布局</title>
|
|
7
|
+
<link rel="stylesheet" href="tokens.css" />
|
|
8
|
+
<style>
|
|
9
|
+
* { box-sizing: border-box; }
|
|
10
|
+
body {
|
|
11
|
+
margin: 0;
|
|
12
|
+
font-family: var(--font-sans);
|
|
13
|
+
color: var(--color-text);
|
|
14
|
+
background: var(--color-background);
|
|
15
|
+
}
|
|
16
|
+
a { color: inherit; text-decoration: none; }
|
|
17
|
+
.header {
|
|
18
|
+
position: sticky;
|
|
19
|
+
top: 0;
|
|
20
|
+
z-index: 10;
|
|
21
|
+
height: var(--size-header-height);
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
background: var(--color-background);
|
|
25
|
+
border-bottom: 1px solid var(--color-header-border);
|
|
26
|
+
box-shadow: var(--shadow-header);
|
|
27
|
+
}
|
|
28
|
+
.bar {
|
|
29
|
+
width: min(var(--size-content), calc(100% - 48px));
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
}
|
|
35
|
+
.logo {
|
|
36
|
+
width: var(--size-logo-width);
|
|
37
|
+
height: var(--size-logo-height);
|
|
38
|
+
display: grid;
|
|
39
|
+
place-items: center start;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
letter-spacing: -0.04em;
|
|
42
|
+
}
|
|
43
|
+
.nav { display: flex; gap: 4px; margin-left: 12px; }
|
|
44
|
+
.nav a {
|
|
45
|
+
padding: var(--space-nav-y) var(--space-nav-x);
|
|
46
|
+
border-radius: var(--radius-nav);
|
|
47
|
+
font-size: var(--font-size-nav);
|
|
48
|
+
line-height: var(--line-height-nav);
|
|
49
|
+
letter-spacing: -0.15px;
|
|
50
|
+
}
|
|
51
|
+
.nav a:hover { color: var(--color-primary); }
|
|
52
|
+
.banner {
|
|
53
|
+
height: var(--size-banner-height);
|
|
54
|
+
background:
|
|
55
|
+
radial-gradient(ellipse at 50% 80%, rgba(0, 220, 210, 0.45), transparent 55%),
|
|
56
|
+
linear-gradient(180deg, #042433 0%, #06384a 55%, #021820 100%);
|
|
57
|
+
color: #fff;
|
|
58
|
+
display: grid;
|
|
59
|
+
place-items: center;
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.banner h2 { margin: 0; font-size: 64px; font-weight: 700; letter-spacing: 0.04em; }
|
|
63
|
+
.banner p { margin: 8px 0 0; opacity: 0.85; }
|
|
64
|
+
.dots {
|
|
65
|
+
position: absolute;
|
|
66
|
+
bottom: 24px;
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
}
|
|
70
|
+
.dots i {
|
|
71
|
+
width: 8px;
|
|
72
|
+
height: 8px;
|
|
73
|
+
border-radius: var(--radius-pill);
|
|
74
|
+
background: rgba(255, 255, 255, 0.55);
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
.dots i.on { width: 22px; background: #fff; }
|
|
78
|
+
.floor {
|
|
79
|
+
background: var(--color-floor);
|
|
80
|
+
padding: var(--space-floor-top) 0 var(--space-floor-bottom);
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: var(--space-grid);
|
|
84
|
+
}
|
|
85
|
+
.wrap { width: min(var(--size-content), calc(100% - 32px)); margin: 0 auto; }
|
|
86
|
+
.grid {
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: var(--size-card) var(--size-card);
|
|
89
|
+
gap: var(--space-grid);
|
|
90
|
+
}
|
|
91
|
+
.card {
|
|
92
|
+
background: var(--color-card);
|
|
93
|
+
border-radius: var(--radius-card);
|
|
94
|
+
box-shadow: var(--shadow-card);
|
|
95
|
+
min-height: 420px;
|
|
96
|
+
padding: var(--space-card-top) var(--space-card-x) var(--space-card-bottom);
|
|
97
|
+
text-align: center;
|
|
98
|
+
transition: transform var(--duration-hover), box-shadow var(--duration-hover);
|
|
99
|
+
}
|
|
100
|
+
.card.hero { min-height: var(--size-hero-card-height); }
|
|
101
|
+
.card:hover {
|
|
102
|
+
transform: translateY(-4px);
|
|
103
|
+
box-shadow: var(--shadow-card-hover);
|
|
104
|
+
}
|
|
105
|
+
.card h3 {
|
|
106
|
+
margin: 0 0 8px;
|
|
107
|
+
font-size: var(--font-size-title);
|
|
108
|
+
font-weight: var(--font-weight-title);
|
|
109
|
+
line-height: var(--line-height-title);
|
|
110
|
+
}
|
|
111
|
+
.card .spec {
|
|
112
|
+
margin: 0 0 8px;
|
|
113
|
+
font-size: var(--font-size-body);
|
|
114
|
+
color: var(--color-text-secondary);
|
|
115
|
+
line-height: 1.5;
|
|
116
|
+
}
|
|
117
|
+
.price { margin: 0 0 12px; color: var(--color-primary); line-height: 1; }
|
|
118
|
+
.price b { font-size: var(--font-size-title); }
|
|
119
|
+
.price span { font-size: var(--font-size-price-symbol); }
|
|
120
|
+
.shot {
|
|
121
|
+
height: 180px;
|
|
122
|
+
margin: 12px auto 0;
|
|
123
|
+
border-radius: 12px;
|
|
124
|
+
background:
|
|
125
|
+
linear-gradient(160deg, rgba(255,255,255,0.55), transparent 40%),
|
|
126
|
+
linear-gradient(180deg, #d7dde6, #eef1f4);
|
|
127
|
+
}
|
|
128
|
+
.card.hero .shot { height: 240px; max-width: 480px; }
|
|
129
|
+
.buy {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
min-width: 120px;
|
|
134
|
+
height: var(--size-button-height);
|
|
135
|
+
padding: 0 28px;
|
|
136
|
+
border-radius: var(--radius-pill);
|
|
137
|
+
background: var(--color-primary);
|
|
138
|
+
color: var(--color-on-primary);
|
|
139
|
+
font-size: var(--font-size-body);
|
|
140
|
+
}
|
|
141
|
+
.buy:hover { background: var(--color-primary-hover); }
|
|
142
|
+
.footer {
|
|
143
|
+
background: var(--color-footer);
|
|
144
|
+
color: var(--color-on-footer);
|
|
145
|
+
padding: 56px 0 36px;
|
|
146
|
+
}
|
|
147
|
+
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; }
|
|
148
|
+
.footer h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
|
|
149
|
+
.footer a, .footer p { display: block; margin: 0 0 8px; font-size: 13px; opacity: 0.82; }
|
|
150
|
+
@media (max-width: 1200px) {
|
|
151
|
+
.grid { grid-template-columns: 1fr; }
|
|
152
|
+
.nav { display: none; }
|
|
153
|
+
.banner { height: min(360px, 60vw); }
|
|
154
|
+
}
|
|
155
|
+
</style>
|
|
156
|
+
</head>
|
|
157
|
+
<body>
|
|
158
|
+
<header class="header">
|
|
159
|
+
<div class="bar">
|
|
160
|
+
<a class="logo" href="#top">站点</a>
|
|
161
|
+
<nav class="nav" aria-label="主导航">
|
|
162
|
+
<a href="#floor">边缘计算</a>
|
|
163
|
+
<a href="#floor">笔记本电脑</a>
|
|
164
|
+
<a href="#floor">台式机</a>
|
|
165
|
+
<a href="#floor">显示器</a>
|
|
166
|
+
<a href="#floor">智能设备</a>
|
|
167
|
+
<a href="#floor">周边选件</a>
|
|
168
|
+
</nav>
|
|
169
|
+
</div>
|
|
170
|
+
</header>
|
|
171
|
+
|
|
172
|
+
<section class="banner" aria-label="首页 Banner">
|
|
173
|
+
<div>
|
|
174
|
+
<h2>新品</h2>
|
|
175
|
+
<p>示例产品 · 标准版</p>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="dots" aria-hidden="true"><i class="on"></i><i></i><i></i><i></i></div>
|
|
178
|
+
</section>
|
|
179
|
+
|
|
180
|
+
<section class="floor" id="floor">
|
|
181
|
+
<article class="card hero wrap">
|
|
182
|
+
<h3>示例产品 A</h3>
|
|
183
|
+
<p class="spec">Intel Core5 205H · 16GB · 512GB · RTX 3050 · 16 寸</p>
|
|
184
|
+
<p class="price"><span>¥</span><b>5999</b></p>
|
|
185
|
+
<a class="buy" href="#buy">立即购买</a>
|
|
186
|
+
<div class="shot" role="img" aria-label="产品示意"></div>
|
|
187
|
+
</article>
|
|
188
|
+
<div class="grid wrap">
|
|
189
|
+
<article class="card">
|
|
190
|
+
<h3>示例产品 B</h3>
|
|
191
|
+
<p class="spec">Intel Core5 315 · 12GB · 512GB · 蓝色</p>
|
|
192
|
+
<p class="price"><span>¥</span><b>4499</b></p>
|
|
193
|
+
<a class="buy" href="#buy">立即购买</a>
|
|
194
|
+
<div class="shot" role="img" aria-label="产品示意"></div>
|
|
195
|
+
</article>
|
|
196
|
+
<article class="card">
|
|
197
|
+
<h3>示例产品 C</h3>
|
|
198
|
+
<p class="spec">Ryzen 9 8940HX · RTX 5060 · 16 寸 2.5K</p>
|
|
199
|
+
<p class="price"><span>¥</span><b>9999</b></p>
|
|
200
|
+
<a class="buy" href="#buy">立即购买</a>
|
|
201
|
+
<div class="shot" role="img" aria-label="产品示意"></div>
|
|
202
|
+
</article>
|
|
203
|
+
</div>
|
|
204
|
+
</section>
|
|
205
|
+
|
|
206
|
+
<footer class="footer">
|
|
207
|
+
<div class="wrap">
|
|
208
|
+
<div>
|
|
209
|
+
<h4>选购产品</h4>
|
|
210
|
+
<a href="#floor">笔记本电脑</a>
|
|
211
|
+
<a href="#floor">台式机</a>
|
|
212
|
+
<a href="#floor">显示器</a>
|
|
213
|
+
</div>
|
|
214
|
+
<div>
|
|
215
|
+
<h4>客服热线</h4>
|
|
216
|
+
<a href="tel:4000000000">400-000-0000</a>
|
|
217
|
+
<p>服务时间:9:00-18:00</p>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</footer>
|
|
221
|
+
</body>
|
|
222
|
+
</html>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# 首页覆盖
|
|
2
|
+
|
|
3
|
+
相对全站:Banner 不进 1200 容器,左右贴边。楼层、顶栏导航、页脚回到 `--size-content`。
|
|
4
|
+
|
|
5
|
+
| 区域 | 尺寸 | 样式 |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| 顶栏 | 高 56,logo 117×32 | 白底,导航 14px `#000`,项内边距 6×12,圆角 4;投影 `--shadow-header` |
|
|
8
|
+
| Banner | 高 720,比例 8/3 | 全出血;指示点胶囊,当前项拉长 |
|
|
9
|
+
| 楼层 | 上 56 / 下 60,间距 20 | 底 `#f5f5f7` |
|
|
10
|
+
| 首卡 | 1200×520,圆角 24 | 白底;名称 36/700;价格 `#ff6a00` |
|
|
11
|
+
| 双列卡 | 590×2,间距 20 | 同首卡的字号与按钮 |
|
|
12
|
+
| 购买 | 高 40,左右 28,最小宽 120 | 底 `#ff6a00`,字白,圆角 999;悬停 `#e56200` |
|
|
13
|
+
| 页脚 | 上 56 / 下 36 | 底 `#000`,字白 |
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 官网首页 · 从桌面视口(1440)计算样式抽出。不含站点名。
|
|
3
|
+
* 采样日:2026-11-23。色值与官网 design-tokens 一致,布局数字以当次计算样式为准。
|
|
4
|
+
*/
|
|
5
|
+
:root {
|
|
6
|
+
--font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
|
|
7
|
+
"Microsoft YaHei", "Noto Sans SC", sans-serif;
|
|
8
|
+
|
|
9
|
+
--color-primary: #ff6a00;
|
|
10
|
+
--color-primary-hover: #e56200;
|
|
11
|
+
--color-on-primary: #ffffff;
|
|
12
|
+
--color-text: #000000;
|
|
13
|
+
--color-text-secondary: #333333;
|
|
14
|
+
--color-text-muted: rgba(0, 0, 0, 0.88);
|
|
15
|
+
--color-background: #ffffff;
|
|
16
|
+
--color-floor: #f5f5f7;
|
|
17
|
+
--color-footer: #000000;
|
|
18
|
+
--color-on-footer: #ffffff;
|
|
19
|
+
--color-header-border: #f3f4f6;
|
|
20
|
+
--color-card: #ffffff;
|
|
21
|
+
|
|
22
|
+
--font-size-nav: 14px;
|
|
23
|
+
--font-size-body: 16px;
|
|
24
|
+
--font-size-price-symbol: 24px;
|
|
25
|
+
--font-size-title: 36px;
|
|
26
|
+
--line-height-nav: 20px;
|
|
27
|
+
--line-height-title: 1.2;
|
|
28
|
+
--font-weight-title: 700;
|
|
29
|
+
|
|
30
|
+
--space-nav-x: 12px;
|
|
31
|
+
--space-nav-y: 6px;
|
|
32
|
+
--space-card-x: 28px;
|
|
33
|
+
--space-card-top: 32px;
|
|
34
|
+
--space-card-bottom: 20px;
|
|
35
|
+
--space-floor-top: 56px;
|
|
36
|
+
--space-floor-bottom: 60px;
|
|
37
|
+
--space-grid: 20px;
|
|
38
|
+
--space-actions: 20px;
|
|
39
|
+
|
|
40
|
+
--radius-nav: 4px;
|
|
41
|
+
--radius-card: 24px;
|
|
42
|
+
--radius-pill: 999px;
|
|
43
|
+
|
|
44
|
+
--shadow-header: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
45
|
+
--shadow-card: 0 2px 10px rgba(0, 0, 0, 0.02);
|
|
46
|
+
--shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
47
|
+
|
|
48
|
+
--size-header-height: 56px;
|
|
49
|
+
--size-logo-width: 117px;
|
|
50
|
+
--size-logo-height: 32px;
|
|
51
|
+
--size-content: 1200px;
|
|
52
|
+
--size-card: 590px;
|
|
53
|
+
--size-hero-card-height: 520px;
|
|
54
|
+
--size-banner-height: 720px;
|
|
55
|
+
--size-button-height: 40px;
|
|
56
|
+
--banner-aspect: 8 / 3;
|
|
57
|
+
|
|
58
|
+
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
59
|
+
--duration-hover: 0.3s;
|
|
60
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "官网首页。2026-11-23 从桌面视口计算样式抽出。不含站点名。",
|
|
3
|
+
"color": {
|
|
4
|
+
"orange": { "$type": "color", "$value": "#ff6a00" },
|
|
5
|
+
"orange-hover": { "$type": "color", "$value": "#e56200" },
|
|
6
|
+
"white": { "$type": "color", "$value": "#ffffff" },
|
|
7
|
+
"black": { "$type": "color", "$value": "#000000" },
|
|
8
|
+
"text-secondary": { "$type": "color", "$value": "#333333" },
|
|
9
|
+
"floor": { "$type": "color", "$value": "#f5f5f7" },
|
|
10
|
+
"header-border": { "$type": "color", "$value": "#f3f4f6" }
|
|
11
|
+
},
|
|
12
|
+
"font": {
|
|
13
|
+
"sans": {
|
|
14
|
+
"$type": "fontFamily",
|
|
15
|
+
"$value": "-apple-system, BlinkMacSystemFont, PingFang SC, Helvetica Neue, Microsoft YaHei, Noto Sans SC, sans-serif"
|
|
16
|
+
},
|
|
17
|
+
"nav": { "$type": "dimension", "$value": "14px" },
|
|
18
|
+
"body": { "$type": "dimension", "$value": "16px" },
|
|
19
|
+
"title": { "$type": "dimension", "$value": "36px" }
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"content": { "$type": "dimension", "$value": "1200px" },
|
|
23
|
+
"card": { "$type": "dimension", "$value": "590px" },
|
|
24
|
+
"header": { "$type": "dimension", "$value": "56px" },
|
|
25
|
+
"banner": { "$type": "dimension", "$value": "720px" },
|
|
26
|
+
"hero-card": { "$type": "dimension", "$value": "520px" },
|
|
27
|
+
"button": { "$type": "dimension", "$value": "40px" }
|
|
28
|
+
},
|
|
29
|
+
"radius": {
|
|
30
|
+
"nav": { "$type": "dimension", "$value": "4px" },
|
|
31
|
+
"card": { "$type": "dimension", "$value": "24px" },
|
|
32
|
+
"pill": { "$type": "dimension", "$value": "999px" }
|
|
33
|
+
},
|
|
34
|
+
"semantic": {
|
|
35
|
+
"color": {
|
|
36
|
+
"primary": { "$type": "color", "$value": "{color.orange}" },
|
|
37
|
+
"on-primary": { "$type": "color", "$value": "{color.white}" },
|
|
38
|
+
"background": { "$type": "color", "$value": "{color.white}" },
|
|
39
|
+
"surface-floor": { "$type": "color", "$value": "{color.floor}" },
|
|
40
|
+
"text": { "$type": "color", "$value": "{color.black}" },
|
|
41
|
+
"footer": { "$type": "color", "$value": "{color.black}" }
|
|
42
|
+
},
|
|
43
|
+
"font": {
|
|
44
|
+
"heading": { "$type": "fontFamily", "$value": "{font.sans}" },
|
|
45
|
+
"body": { "$type": "fontFamily", "$value": "{font.sans}" }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-ux-next-kit",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "UI/UX Next Kit. Installs the Cursor skill and project rules, and updates them with npm update.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"ui-ux-next-kit": "./bin/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin",
|
|
11
|
+
"SKILL.md",
|
|
12
|
+
"skill.json",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"references",
|
|
16
|
+
"scripts",
|
|
17
|
+
"templates",
|
|
18
|
+
"examples"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"postinstall": "node bin/cli.js install --from-postinstall"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/zzl81cn/ui-ux-next-kit.git"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"ui",
|
|
32
|
+
"ux",
|
|
33
|
+
"cursor",
|
|
34
|
+
"agent-skill",
|
|
35
|
+
"antd",
|
|
36
|
+
"design-system"
|
|
37
|
+
],
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# 审计维度 A–I 与分级
|
|
2
|
+
|
|
3
|
+
每个维度都要有结论;没问题写「查过未发现」。
|
|
4
|
+
|
|
5
|
+
## A. Token 与样式一致性
|
|
6
|
+
|
|
7
|
+
硬编码颜色 / 字号 / 间距 / 圆角 / 阴影;内联 style;`!important`;Tailwind 任意值;同一语义多种写法。
|
|
8
|
+
|
|
9
|
+
## B. 组件复用与选型
|
|
10
|
+
|
|
11
|
+
对照三档和 `exemplar-rpa-console.md`。原生控件 / 自写弹窗替代组件库;同一功能多套自研;公共组件存在但未用;桌面再引入 antd 以外的第二套 UI 库(手机壳里的 `antd-mobile` 按范本不算)。无组件库时修复方向写「按参考控制台的前端栈迁」。
|
|
12
|
+
|
|
13
|
+
## C. 布局与间距
|
|
14
|
+
|
|
15
|
+
Layout 是否唯一;页面内边距、卡片间距、表单栅格;响应式断点。
|
|
16
|
+
|
|
17
|
+
## D. 交互状态完整性
|
|
18
|
+
|
|
19
|
+
异步页 loading / empty / error;提交防重;表单校验;危险操作二次确认;成功/失败反馈。
|
|
20
|
+
|
|
21
|
+
## E. 表格与表单
|
|
22
|
+
|
|
23
|
+
分页 / 筛选 / 重置;数字列右对齐;空值;日期金额格式;必填与 label。
|
|
24
|
+
|
|
25
|
+
## F. 反馈与文案
|
|
26
|
+
|
|
27
|
+
message / notification / 确认用法;术语;中英混用;错误是否告诉下一步。
|
|
28
|
+
|
|
29
|
+
## G. 可访问性
|
|
30
|
+
|
|
31
|
+
可点击 div 无键盘支持;图片无 alt;图标按钮无 aria-label;对比度;焦点被全局去掉。
|
|
32
|
+
|
|
33
|
+
## H. 框架适配
|
|
34
|
+
|
|
35
|
+
弹层挂载与 z-index;表单受控混用;全局覆盖 `.ant-*` / `.el-*`;主题闪烁 / hydration;locale。Figma 交付是 Arco 时,不把「没用 Arco 组件」算进本维。全局改写 `.ant-btn` 导致 `loading`、`disabled`、`danger`、`type` 失效,记 High。其余大面积内部类名覆盖按 `references/figma-handoff.md` 记。修复方向是 token 对齐,覆盖分批删,按钮改回 antd `Button`。
|
|
36
|
+
|
|
37
|
+
## I. 工程卡口
|
|
38
|
+
|
|
39
|
+
lint / rules / Token 文件能否拦住上述问题。
|
|
40
|
+
|
|
41
|
+
## 运行时补充(有页面可点时)
|
|
42
|
+
|
|
43
|
+
- 同一屏数字能否加总、口径是否写明
|
|
44
|
+
- 空状态:「没有数据」vs「当前筛选为空」
|
|
45
|
+
- 筛选项是否覆盖列表已出现的值
|
|
46
|
+
- 宽表第一屏是否含决策列;颜色状态有无图例
|
|
47
|
+
- 正式导航是否露出试验入口
|
|
48
|
+
|
|
49
|
+
## 分级
|
|
50
|
+
|
|
51
|
+
- **High**:系统性或用户直接受损
|
|
52
|
+
- **Medium**:局部不一致或状态缺失
|
|
53
|
+
- **Low**:细节打磨
|
|
54
|
+
- **Info**:记录或待产品/架构决策
|
|
55
|
+
|
|
56
|
+
## 置信度
|
|
57
|
+
|
|
58
|
+
- **高**:源码可确认,或线上 DOM/样式/未压缩脚本可确认
|
|
59
|
+
- **中**:源码推断,视觉需运行确认
|
|
60
|
+
- **低**:取决于设计稿或产品意图
|