@lark-apaas/coding-steering 0.1.63 → 0.1.65
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 +1 -1
- package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +1 -1
- package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +3 -1
- package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +35 -33
- package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +33 -33
- package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md +41 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md +8 -8
- package/steering/nestjs-react-fullstack/skills/design-guide/references/dashboard.md +43 -42
- package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +98 -98
- package/steering/nestjs-react-fullstack/skills/design-guide/references/finance-report.md +24 -24
- package/steering/nestjs-react-fullstack/skills/design-guide/references/flowbite.md +16 -16
- package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md +56 -52
- package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +40 -38
- package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +47 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/minimal-jade.md +48 -48
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nebula-crimson.md +23 -23
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md +7 -7
- package/steering/nestjs-react-fullstack/skills/design-guide/references/organic-minimalism.md +43 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +54 -53
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +51 -43
- package/steering/nestjs-react-fullstack/skills/design-guide/references/sap-fiori-horizon.md +33 -31
- package/steering/nestjs-react-fullstack/skills/design-guide/references/token-mapping.md +17 -17
- package/steering/nestjs-react-fullstack/skills/design-guide/references/warm-elegance.md +43 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +24 -24
|
@@ -5,15 +5,19 @@ name_zh: 湖光蓝调
|
|
|
5
5
|
description: "纯白主面与大块极浅蓝静区,深蓝文字配明亮蓝主按钮和焦点;Lato 人文无衬线字体,4–12px 圆角、半透明边框、轻投影平铺卡片和较深漫射浮层构成层级。"
|
|
6
6
|
|
|
7
7
|
colors:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
muted: "#
|
|
14
|
-
muted-
|
|
15
|
-
accent: "#
|
|
16
|
-
|
|
8
|
+
background: "#FFFFFF"
|
|
9
|
+
foreground: "#222C3E"
|
|
10
|
+
card: "#FFFFFF"
|
|
11
|
+
primary: "#509EE3"
|
|
12
|
+
primary-foreground: "#FFFFFF"
|
|
13
|
+
muted: "#F0F8FF"
|
|
14
|
+
muted-foreground: "#5A6072"
|
|
15
|
+
accent: "#F0F8FF"
|
|
16
|
+
border: "rgba(90, 96, 114, 0.15)"
|
|
17
|
+
ring: "#509EE3"
|
|
18
|
+
surface-quiet: "#FAFBFE"
|
|
19
|
+
placeholder: "#8D93A5"
|
|
20
|
+
text-hint: "#4C5773"
|
|
17
21
|
|
|
18
22
|
typography:
|
|
19
23
|
display:
|
|
@@ -64,32 +68,32 @@ spacing:
|
|
|
64
68
|
|
|
65
69
|
components:
|
|
66
70
|
button:
|
|
67
|
-
background: "{colors.
|
|
68
|
-
color: "{colors.
|
|
71
|
+
background: "{colors.primary}"
|
|
72
|
+
color: "{colors.primary-foreground}"
|
|
69
73
|
borderRadius: "{rounded.md}"
|
|
70
|
-
description: "主按钮用强调蓝实底 + 8px 圆角;次级为描边按钮(border {colors.
|
|
74
|
+
description: "主按钮用强调蓝实底 + 8px 圆角;次级为描边按钮(border {colors.border}、文字 {colors.foreground})。"
|
|
71
75
|
card:
|
|
72
|
-
background: "{colors.
|
|
73
|
-
border: "1px solid {colors.
|
|
76
|
+
background: "{colors.card}"
|
|
77
|
+
border: "1px solid {colors.border}"
|
|
74
78
|
borderRadius: "{rounded.lg}"
|
|
75
79
|
boxShadow: "0 1px 2px rgba(16, 24, 40, 0.05)"
|
|
76
80
|
description: "干净白卡,纤细半透明中性边框 + 柔和漫射阴影,避免生硬边缘。"
|
|
77
81
|
chip:
|
|
78
82
|
borderRadius: "{rounded.pill}"
|
|
79
|
-
description: "柔和药丸标签,弱底 {colors.
|
|
83
|
+
description: "柔和药丸标签,弱底 {colors.muted} 用于分类与筛选。"
|
|
80
84
|
input:
|
|
81
|
-
background: "{colors.
|
|
82
|
-
border: "1px solid {colors.
|
|
85
|
+
background: "{colors.background}"
|
|
86
|
+
border: "1px solid {colors.border}"
|
|
83
87
|
borderRadius: "{rounded.md}"
|
|
84
|
-
description: "干净描边输入框,聚焦描边转 {colors.
|
|
88
|
+
description: "干净描边输入框,聚焦描边转 {colors.primary}。"
|
|
85
89
|
hero:
|
|
86
|
-
background: "{colors.
|
|
90
|
+
background: "{colors.background}"
|
|
87
91
|
description: "大号标题 + 副标 + 两个醒目 CTA,纯白平面无渐变。"
|
|
88
92
|
|
|
89
93
|
anchors:
|
|
90
94
|
- id: white-plus-vivid-blue
|
|
91
95
|
type: token
|
|
92
|
-
desc: "纯白底 + 醒目主色蓝强调(见 colors.
|
|
96
|
+
desc: "纯白底 + 醒目主色蓝强调(见 colors.primary),柔和中性调色板不与数据竞争"
|
|
93
97
|
- id: humanist-sans-bold-heads
|
|
94
98
|
type: token
|
|
95
99
|
desc: "人文无衬线全局承载,标题用 700 字重建立清晰层级"
|
|
@@ -98,7 +102,7 @@ anchors:
|
|
|
98
102
|
desc: "主按钮强调蓝实底 + 中圆角(见 rounded.md),次级为描边按钮"
|
|
99
103
|
- id: soft-shadow-card
|
|
100
104
|
type: component
|
|
101
|
-
desc: "白卡靠柔和漫射阴影 + 纤细半透明中性边框(colors.
|
|
105
|
+
desc: "白卡靠柔和漫射阴影 + 纤细半透明中性边框(colors.border)定义,无生硬边缘"
|
|
102
106
|
- id: open-airy-layout
|
|
103
107
|
type: pattern
|
|
104
108
|
desc: "标准居中容器 + 清晰分节线 + 充足留白,开放通透"
|
|
@@ -109,7 +113,7 @@ anchors:
|
|
|
109
113
|
gaps:
|
|
110
114
|
- "深色模式:源明确排除,只做明亮浅色主题"
|
|
111
115
|
- "chip:源未明确出现,按柔和药丸形推导(见 Components)"
|
|
112
|
-
- "看板图表序列色:源未逐一给出,已按
|
|
116
|
+
- "看板图表序列色:源未逐一给出,已按 primary 主序列 + 中性梯度补推(见 Components)"
|
|
113
117
|
---
|
|
114
118
|
|
|
115
119
|
## Overview
|
|
@@ -124,15 +128,17 @@ gaps:
|
|
|
124
128
|
|
|
125
129
|
色彩系统简洁且以数据为中心,醒目主色蓝点缀白色背景,创造高清晰度画布,让数据可视化与交互元素呈现而不产生视觉竞争;调色板作为专业中立的框架。
|
|
126
130
|
|
|
127
|
-
- **底色 `colors.
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
-
|
|
131
|
+
- **底色 `colors.background` `#FFFFFF`** — 主背景,纯白平面。
|
|
132
|
+
- **卡面 `colors.card` `#FFFFFF`** — 白卡底色。
|
|
133
|
+
- **柔底 `colors.muted` `#F0F8FF`** — 浅蓝静区与筛选区底色。
|
|
134
|
+
- **静区 `colors.surface-quiet` `#FAFBFE`** — 极浅静区。
|
|
135
|
+
- **正文 `colors.foreground` `#222C3E`** — 主要文本与关键数字。
|
|
136
|
+
- **次级文本 `colors.muted-foreground` `#5A6072`** — 说明性文本。
|
|
137
|
+
- **弱化 `colors.placeholder` `#8D93A5`** — 占位符。
|
|
138
|
+
- **弱提示 `colors.text-hint` `#4C5773`** — 次级提示文字。
|
|
139
|
+
- **主色 `colors.primary` `#509EE3`** — 醒目主色蓝,用于主按钮与交互焦点;`colors.ring` 同值作聚焦环,主按钮上的文字用 `colors.primary-foreground` `#FFFFFF`。
|
|
140
|
+
- **弱强调底 `colors.accent` `#F0F8FF`** — 悬停、选中行和加载占位的浅蓝底。
|
|
141
|
+
- **分隔线 `colors.border` `rgba(90, 96, 114, 0.15)`** — 纤细半透明中性边框。
|
|
136
142
|
|
|
137
143
|
**用色原则:** 简洁数据导向,以白底上的醒目强调蓝为主色;不引入高对比霓虹色。
|
|
138
144
|
|
|
@@ -176,23 +182,23 @@ gaps:
|
|
|
176
182
|
- 0 1px 2px rgba(16, 24, 40, 0.05)
|
|
177
183
|
- 0 16px 28px -6px rgba(24, 39, 75, 0.12)
|
|
178
184
|
- 0 32px 88px -4px rgba(24, 39, 75, 0.14)
|
|
179
|
-
- **Borders:** 1px 实线 colors.
|
|
185
|
+
- **Borders:** 1px 实线 colors.border。
|
|
180
186
|
|
|
181
187
|
## Shapes
|
|
182
188
|
|
|
183
189
|
圆角一致,卡片与按钮用小到中圆角,药丸标签用满圆角;不用尖锐直角。
|
|
184
190
|
|
|
185
191
|
- **Radius:** sm 4px(见 rounded.sm) · md 8px(rounded.md) · lg 12px(rounded.lg) · pill 999px(rounded.pill)
|
|
186
|
-
- **Borders:** 1px 半透明中性边框 colors.
|
|
192
|
+
- **Borders:** 1px 半透明中性边框 colors.border。
|
|
187
193
|
|
|
188
194
|
## Components
|
|
189
195
|
|
|
190
|
-
- **button:** 主按钮强调蓝实底(background {colors.
|
|
191
|
-
- **card:** 干净白卡(background {colors.
|
|
192
|
-
- **chip:** 柔和药丸标签(圆角 {rounded.pill}),弱底 {colors.
|
|
193
|
-
- **input:** 干净描边输入框(border 1px {colors.
|
|
196
|
+
- **button:** 主按钮强调蓝实底(background {colors.primary}、文字 {colors.primary-foreground}、圆角 {rounded.md});次级为描边按钮(border {colors.border}、文字 {colors.foreground})。
|
|
197
|
+
- **card:** 干净白卡(background {colors.card}、border 1px {colors.border}、圆角 {rounded.lg}),柔和漫射阴影 rgba(16,24,40,0.05)。
|
|
198
|
+
- **chip:** 柔和药丸标签(圆角 {rounded.pill}),弱底 {colors.muted},用于分类与筛选。
|
|
199
|
+
- **input:** 干净描边输入框(border 1px {colors.border}、圆角 {rounded.md}),聚焦描边转 {colors.primary}。
|
|
194
200
|
- **hero:** 大号标题 + 副标 + 两个醒目 CTA,纯白平面无渐变。
|
|
195
|
-
- **看板图表(数据看板落地补充):** 主序列用 colors.
|
|
201
|
+
- **看板图表(数据看板落地补充):** 主序列用 colors.primary 醒目蓝,次序列/对比用 colors.placeholder 与柔和中性梯度;图表容器为白卡,柔和漫射阴影 + colors.border 纤细边框成组,不引入高对比霓虹色。
|
|
196
202
|
|
|
197
203
|
## Do's and Don'ts
|
|
198
204
|
|
|
@@ -208,13 +214,13 @@ gaps:
|
|
|
208
214
|
|
|
209
215
|
## Hard Rules
|
|
210
216
|
|
|
211
|
-
- 不使用深色模式:背景始终明亮浅色 colors.
|
|
212
|
-
- 不使用高对比霓虹色:强调统一用醒目主色蓝 colors.
|
|
217
|
+
- 不使用深色模式:背景始终明亮浅色 colors.background(#FFFFFF),只做浅色主题。
|
|
218
|
+
- 不使用高对比霓虹色:强调统一用醒目主色蓝 colors.primary,其余为柔和中性。
|
|
213
219
|
- 卡片与按钮不用尖锐 90 度直角,一律圆角。
|
|
214
220
|
- 正文一律人文无衬线,不用纤细优雅衬线承载可读文本。
|
|
215
221
|
- 主背景不用复杂渐变,保持纯白或极浅浅蓝平面。
|
|
216
222
|
|
|
217
223
|
## Exceptions
|
|
218
224
|
|
|
219
|
-
- 主按钮允许唯一的强调蓝实底(colors.
|
|
225
|
+
- 主按钮允许唯一的强调蓝实底(colors.primary):它是界面上主要的实底色块,承担关键行动召唤;次级动作用描边按钮。
|
|
220
226
|
- 悬浮层/模态可用更深的第二/三层漫射阴影(0 16px 28px / 0 32px 88px),平铺卡片仍用第一层 0.05 极轻投影。
|
|
@@ -4,13 +4,13 @@ name: minimal-jade
|
|
|
4
4
|
name_zh: 简约翡翠
|
|
5
5
|
description: 浅灰蓝底、独立白卡与草绿强调;首要图表序列用草绿,次级序列按黑色透明度递减;无衬线超大粗标题,JetBrains Mono 对齐指标和表格数字;12px 圆角卡片带浅阴影和悬停上浮。
|
|
6
6
|
colors:
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
background: "#F5F7FA"
|
|
8
|
+
card: "#FFFFFF"
|
|
9
9
|
header: "#1D2025"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
foreground: "#1D2025"
|
|
11
|
+
muted-foreground: "#6B7280"
|
|
12
|
+
primary: "#A0E870"
|
|
13
|
+
primaryDark: "#7BC44C"
|
|
14
14
|
border: "#E5E7EB"
|
|
15
15
|
danger: "#EF4444"
|
|
16
16
|
typography:
|
|
@@ -34,38 +34,38 @@ spacing:
|
|
|
34
34
|
container-max: 1300px
|
|
35
35
|
components:
|
|
36
36
|
kpi-card:
|
|
37
|
-
background: "{colors.
|
|
37
|
+
background: "{colors.card}"
|
|
38
38
|
borderRadius: "{rounded.card}"
|
|
39
39
|
boxShadow: shadow-sm
|
|
40
40
|
border: "border border-transparent hover:border-gray-100"
|
|
41
41
|
hover: "整体上浮 y:-2px(-translate-y-0.5),带过渡"
|
|
42
|
-
iconBg: "{colors.
|
|
43
|
-
iconColor: "{colors.
|
|
44
|
-
title: "text-sm uppercase tracking-wide,{colors.
|
|
45
|
-
value: "text-3xl font-bold tracking-tighter tabular-nums,{colors.
|
|
46
|
-
trendUp: "text-xs font-medium,{colors.
|
|
42
|
+
iconBg: "{colors.primary} 10% 透明度"
|
|
43
|
+
iconColor: "{colors.primary}"
|
|
44
|
+
title: "text-sm uppercase tracking-wide,{colors.muted-foreground}"
|
|
45
|
+
value: "text-3xl font-bold tracking-tighter tabular-nums,{colors.foreground}(见 typography.mono)"
|
|
46
|
+
trendUp: "text-xs font-medium,{colors.primaryDark},带上箭头图标"
|
|
47
47
|
trendDown: "text-xs font-medium,{colors.danger},带下箭头图标"
|
|
48
|
-
statusDot: "若需要状态指示点,只能二选一:{colors.
|
|
48
|
+
statusDot: "若需要状态指示点,只能二选一:{colors.primary}(正常)或 {colors.danger}(异常),禁止新增第三种颜色(如橙色)表达'预警/中等'档位"
|
|
49
49
|
chart-card:
|
|
50
|
-
background: "{colors.
|
|
50
|
+
background: "{colors.card}"
|
|
51
51
|
borderRadius: "{rounded.card}"
|
|
52
52
|
boxShadow: shadow-sm
|
|
53
53
|
border: "border border-transparent"
|
|
54
54
|
height: "420px 或 450px 两档"
|
|
55
55
|
title: "font-semibold,{colors.header}"
|
|
56
|
-
tag: "text-xs,{colors.
|
|
56
|
+
tag: "text-xs,{colors.muted-foreground},bg-gray-50 底,{rounded.tag},px-2 py-1"
|
|
57
57
|
ai-insight-card:
|
|
58
|
-
accentBar: "w-1 h-4,{colors.
|
|
58
|
+
accentBar: "w-1 h-4,{colors.primary} 实色,{rounded.full}"
|
|
59
59
|
title: 与卡片标题样式一致
|
|
60
60
|
status-badge:
|
|
61
|
-
description: "适用于任意'状态/预警/优先级'类徽章、标签芯片、指示点(如渠道明细表状态列、异常指标监控卡片、AI洞察优先级标签)。只允许二档语义:{colors.
|
|
61
|
+
description: "适用于任意'状态/预警/优先级'类徽章、标签芯片、指示点(如渠道明细表状态列、异常指标监控卡片、AI洞察优先级标签)。只允许二档语义:{colors.primary}(正常/健康/低优先级)与 {colors.danger}(异常/预警/高优先级);其余非语义标签(如团队名、分类名)一律用中性灰(bg-gray-50 + {colors.muted-foreground})。禁止引入橙色/黄色/蓝色等表达'中等/三级'档位——多档状态一律压缩为二档"
|
|
62
62
|
charts:
|
|
63
|
-
palette: "单主色 {colors.
|
|
64
|
-
multi-series-fallback: "不论是否为'排名'语义,任何图表只要出现多个系列/类别需要区分(趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑:首要/主体系列用 {colors.
|
|
63
|
+
palette: "单主色 {colors.primary}(首位/主序列);排名类用黑色透明度递减 getRankedColor: index0={colors.primary},index≥1 为 rgba(0,0,0,opacity),opacity=max(0.1,0.9-(index-1)*0.15)"
|
|
64
|
+
multi-series-fallback: "不论是否为'排名'语义,任何图表只要出现多个系列/类别需要区分(趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑:首要/主体系列用 {colors.primary},其余系列全部用黑色透明度渐变(同 getRankedColor 公式)或灰阶({colors.muted-foreground}/{colors.border} 系),禁止为区分类别另起色相(黄/橙/蓝等)。这条优先于'排名'字面语义,是本风格图表配色的唯一兜底方案"
|
|
65
65
|
container: "背景 transparent(继承卡片白底),grid 四边留白 top10/right10/bottom0/left0,containLabel true,字体见 typography.mono"
|
|
66
66
|
tooltip: "白底 #fff,1px 边框 {colors.border},{rounded.small},padding 12px,文字纯黑 12px"
|
|
67
67
|
axis: "轴线与刻度隐藏,标签灰 400 系(#9CA3AF)11px;y 轴分隔线浅灰虚线({colors.border} 系),x 轴无分隔线"
|
|
68
|
-
legend: "icon=circle,size 8px,文字{colors.
|
|
68
|
+
legend: "icon=circle,size 8px,文字{colors.muted-foreground} 色,12px;图例本身不额外引入颜色,系列配色遵循 palette/multi-series-fallback"
|
|
69
69
|
area: "smooth 曲线,线宽 3px,symbol 4px,区域渐变填充(顶部 5% 处 opacity 0.3 → 底部 95% 处 opacity 0)"
|
|
70
70
|
pie: "环形 radius 60%~80%,padAngle 2,无 label,itemStyle 无描边"
|
|
71
71
|
radar: "线宽 2px,填充透明度 0.4"
|
|
@@ -76,7 +76,7 @@ anchors:
|
|
|
76
76
|
desc: 所有 KPI 数值/趋势数字用等宽字体(见 typography.mono)+tabular-nums 对齐,是本风格最强识别符
|
|
77
77
|
- id: single-accent-jade
|
|
78
78
|
type: token
|
|
79
|
-
desc: 全局仅一个强调色(见 colors.
|
|
79
|
+
desc: 全局仅一个强调色(见 colors.primary),图标/图表/装饰条/状态徽章统一复用,不叠加其他鲜艳色
|
|
80
80
|
- id: ranked-gradient
|
|
81
81
|
type: pattern
|
|
82
82
|
desc: 图表排名类数据用黑色透明度递减渐变区分名次(见 components.charts),仅第一名保留主色;非排名类多系列图表同样套用此逻辑
|
|
@@ -91,9 +91,9 @@ anchors:
|
|
|
91
91
|
desc: KPI 卡片图标底色为主色的低透明度版本,图标本身为主色实色
|
|
92
92
|
- id: gray-blue-canvas
|
|
93
93
|
type: token
|
|
94
|
-
desc: 页面底色为浅灰蓝(见 colors.
|
|
94
|
+
desc: 页面底色为浅灰蓝(见 colors.background),卡片底为纯白(见 colors.card)形成层次
|
|
95
95
|
gaps:
|
|
96
|
-
- header/
|
|
96
|
+
- header/foreground/muted-foreground/border 四个 token 的 hex 由源给出的 hsl(H S% L%) 精确换算得出(非取整近似);background/primary/primaryDark 三色源已直接给出 hex,按源 hex 原样使用
|
|
97
97
|
- danger(下降趋势色)为补充项:源仅写"下降 red-500"(Tailwind 类名,无具体 hex),按 Tailwind 官方默认值换算为 #EF4444
|
|
98
98
|
- 字体 @import 地址为补充项:源仅给出字体名(Inter/JetBrains Mono),未提供具体 @import URL,按 Google Fonts 官方 CSS2 API 标准格式补充,字重档位(400/500/600/700)为常见档推测
|
|
99
99
|
- rounded 四档(card/small/tag/full)为补充项:源仅给出 Tailwind 类名(rounded-xl/rounded-lg/rounded/rounded-full),未给具体 px,按 Tailwind 官方默认值换算
|
|
@@ -103,27 +103,27 @@ gaps:
|
|
|
103
103
|
- 无表单控件(input/select 等)规范
|
|
104
104
|
- 无漏斗(funnel)组件规范:第一版实验中生成模型曾自行加入转化漏斗组件并出现数字与标签重叠的排版问题,该组件超出本风格源文件定义范围,不在此补造具体规格(避免编造),仅在 Do's and Don'ts 提示自查
|
|
105
105
|
exceptions:
|
|
106
|
-
- 图标背景使用
|
|
107
|
-
- AI 洞察卡片左侧装饰条使用
|
|
106
|
+
- 图标背景使用 primary 10% 透明度作浅底,不受"仅一个强调色、不额外引入强调色"限制,属常规图标底色处理
|
|
107
|
+
- AI 洞察卡片左侧装饰条使用 primary 实色,视为组件签名而非额外强调色
|
|
108
108
|
- 卡片默认 border-transparent,hover 时转浅灰 border-gray-100,不受阴影/圆角统一约束(边框颜色变化例外)
|
|
109
109
|
- 元数据标签与小徽章允许使用 rounded/rounded-lg(见 rounded.tag/small)而非卡片档 rounded.card
|
|
110
110
|
---
|
|
111
111
|
|
|
112
112
|
## Overview
|
|
113
113
|
|
|
114
|
-
简洁商务数据界面风格。浅灰蓝({colors.
|
|
114
|
+
简洁商务数据界面风格。浅灰蓝({colors.background})基底上浮动纯白卡片({colors.card}),用克制留白和清晰数据层级组织内容。整体气质专业、可信赖、数据驱动;色彩极简,仅一个草绿主色({colors.primary})贯穿全局,数字均用等宽字体保证对齐,图表以黑色透明度渐变而非多彩配色表达排名优先级。
|
|
115
115
|
|
|
116
116
|
## Colors
|
|
117
117
|
|
|
118
118
|
| 角色 | 值 | 用法 |
|
|
119
119
|
|-----|-----|-----|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
120
|
+
| background | {colors.background} | 页面背景,浅灰蓝 |
|
|
121
|
+
| card | {colors.card} | 卡片背景,纯白 |
|
|
122
122
|
| header | {colors.header} | 页面/卡片标题文字 |
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
123
|
+
| foreground | {colors.foreground} | 主要文字、KPI 数值 |
|
|
124
|
+
| muted-foreground | {colors.muted-foreground} | 次要文字、副标题、KPI 标题、坐标轴与图例文字、元数据标签 |
|
|
125
|
+
| primary | {colors.primary} | 全局唯一强调色:图标、图表主序列、装饰条、状态徽章"正常"档;每处强调仅用此色 |
|
|
126
|
+
| primaryDark | {colors.primaryDark} | 深绿强调:趋势上升数值与箭头 |
|
|
127
127
|
| border | {colors.border} | 卡片 hover 边框、图表容器分隔线/Tooltip 边框 |
|
|
128
128
|
| danger | {colors.danger} | 趋势下降数值与箭头、状态徽章"异常/预警"档(补充项,见 gaps) |
|
|
129
129
|
|
|
@@ -140,17 +140,17 @@ Inter/JetBrains Mono 均为纯拉丁字体,源未要求 CJK 兜底(非手写/展
|
|
|
140
140
|
| 层级 | 样式(Tailwind) | 颜色 |
|
|
141
141
|
|-----|-----|-----|
|
|
142
142
|
| 页面标题 | text-5xl md:text-6xl font-bold tracking-tight | header |
|
|
143
|
-
| 页面副标题 | text-base tracking-wide |
|
|
143
|
+
| 页面副标题 | text-base tracking-wide | muted-foreground |
|
|
144
144
|
| 卡片标题 | font-semibold | header |
|
|
145
|
-
| KPI 标题 | text-sm uppercase tracking-wide |
|
|
146
|
-
| KPI 数值 | text-3xl font-bold font-mono tracking-tighter tabular-nums |
|
|
147
|
-
| 趋势数字(上升) | text-xs font-medium font-mono |
|
|
145
|
+
| KPI 标题 | text-sm uppercase tracking-wide | muted-foreground |
|
|
146
|
+
| KPI 数值 | text-3xl font-bold font-mono tracking-tighter tabular-nums | foreground |
|
|
147
|
+
| 趋势数字(上升) | text-xs font-medium font-mono | primaryDark |
|
|
148
148
|
| 趋势数字(下降) | text-xs font-medium font-mono | danger |
|
|
149
149
|
|
|
150
150
|
## Layout
|
|
151
151
|
|
|
152
152
|
- 全局容器:max-w-[1300px](见 spacing.container-max),mx-auto,px-6(见 spacing.page-px);区块间距 space-y-10(见 spacing.section-gap 40px);页面上下 padding pt-12/pb-12(见 spacing.page-py 48px)。
|
|
153
|
-
- 标题区:border-b border-gray-200/60(~{colors.border} 60% 透明度) pb-6;页面标题建立层级,副标题 {colors.
|
|
153
|
+
- 标题区:border-b border-gray-200/60(~{colors.border} 60% 透明度) pb-6;页面标题建立层级,副标题 {colors.muted-foreground};元数据标签 text-[10px] uppercase tracking-widest,灰 400 系(#9CA3AF)。
|
|
154
154
|
- 标题、指标、图表、表格或操作模块按任务关系组合;不固定出现顺序、卡片数量或 2/3+1/3 分栏。
|
|
155
155
|
- 网格间距 gap-6(见 spacing.card-gap 24px);卡片内边距 p-6(见 spacing.card-padding 24px)。
|
|
156
156
|
- 响应式按可用宽度和信息关系减少列数,窄屏保证数值、图例和操作完整可读。
|
|
@@ -171,35 +171,35 @@ Inter/JetBrains Mono 均为纯拉丁字体,源未要求 CJK 兜底(非手写/展
|
|
|
171
171
|
|
|
172
172
|
核心组件规格见 frontmatter components(kpi-card / chart-card / ai-insight-card / status-badge / charts)。补充细节:
|
|
173
173
|
|
|
174
|
-
- **KPI 卡片**:标题(KPI 名)居上,数值居中放大,趋势行(上下箭头+涨跌幅)居底;图标底色为
|
|
174
|
+
- **KPI 卡片**:标题(KPI 名)居上,数值居中放大,趋势行(上下箭头+涨跌幅)居底;图标底色为 primary 10% 透明度,图标本身 primary 实色;hover 整体上浮。若卡片带状态指示点,只能用 primary 或 danger 二色(见 components.kpi-card.statusDot)。
|
|
175
175
|
- **图表卡片**:标题 font-semibold + 可选灰底小标签;容器高度按数据量和可用空间确定;内部 ECharts 网格保持克制留白(见 components.charts.container)。
|
|
176
|
-
- **AI 洞察卡片**:左侧竖条(w-1 h-4,
|
|
177
|
-
- **状态徽章/标签/优先级标签**(如渠道明细表状态列、异常指标监控、AI洞察优先级标签):只允许
|
|
178
|
-
- **图表(ECharts)**:序列色单主色 + 排名渐变(见 components.charts.palette);不论图表是否为"排名"语义,只要存在多系列/多类别对比,一律套用同一取色逻辑——主体系列
|
|
176
|
+
- **AI 洞察卡片**:左侧竖条(w-1 h-4,primary 实色,rounded-full)+ 标题,内容排版与普通卡片一致,用于突出"AI 生成建议"类文本块。
|
|
177
|
+
- **状态徽章/标签/优先级标签**(如渠道明细表状态列、异常指标监控、AI洞察优先级标签):只允许 primary(正常/健康/低优先级)与 danger(异常/预警/高优先级)二档语义色,非语义标签(团队名、分类名)用中性灰底(bg-gray-50 + muted-foreground)。**不得为表达"中等/三级"档位新增橙色、黄色等本风格未声明的色相**(见 components.status-badge)。
|
|
178
|
+
- **图表(ECharts)**:序列色单主色 + 排名渐变(见 components.charts.palette);不论图表是否为"排名"语义,只要存在多系列/多类别对比,一律套用同一取色逻辑——主体系列 primary,其余系列黑色渐变或灰阶,禁止引入新色相区分类别(见 components.charts.multi-series-fallback);面积图/饼图/雷达/横向柱状各自默认样式见 components.charts;坐标轴线与刻度隐藏,只留浅色虚线网格,弱化图表"骨架"、突出数据本身。
|
|
179
179
|
- 本风格未定义漏斗(funnel)等组件的具体排版规格(见 gaps);若页面确需该类组件,配色仍须遵守单一强调色规则,不因组件未定义而自由发挥新色相。
|
|
180
180
|
|
|
181
181
|
## Do's and Don'ts
|
|
182
182
|
|
|
183
183
|
- 数字与数据统一用等宽字体(JetBrains Mono)+ tabular-nums,确保多行/多列对齐。
|
|
184
|
-
- 图表优先用排名渐变色系统(getRankedColor)表达数据优先级,而非分配多种颜色;非排名类的多系列图表同样只用
|
|
184
|
+
- 图表优先用排名渐变色系统(getRankedColor)表达数据优先级,而非分配多种颜色;非排名类的多系列图表同样只用 primary + 黑色渐变/灰阶,不新增色相。
|
|
185
185
|
- 卡片 hover 时加入轻微上浮(y:-2)增强交互感,避免更强的缩放/旋转效果。
|
|
186
186
|
- 标题区适合使用极大字号(text-5xl/6xl)建立视觉层级,正文与标签保持克制的小字号。
|
|
187
187
|
- 图表整体配色保持克制,避免过度丰富的色彩,优先单主色 + 黑色渐变的组合。
|
|
188
|
-
- 状态徽章、优先级标签、指示圆点、图例等任何"需要区分状态/类别"的元素,一律复用
|
|
188
|
+
- 状态徽章、优先级标签、指示圆点、图例等任何"需要区分状态/类别"的元素,一律复用 primary/primaryDark/danger 三色 + 灰阶;禁止为"预警/中优先级/第三分类"等语义临时新增颜色(如橙色、黄色、蓝色)——多档状态一律压缩为二档表达。
|
|
189
189
|
|
|
190
190
|
## Hard Rules
|
|
191
191
|
|
|
192
192
|
- KPI 数值与趋势数字必须使用等宽字体(见 typography.mono)+ tabular-nums,禁止用默认无衬线字体渲染数字。
|
|
193
|
-
- 图表与界面强调色统一使用单一主色
|
|
194
|
-
- 任意图表出现多个系列/类别需要区分时(不论是否为"排名"语义:趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑——首要/主体系列用
|
|
193
|
+
- 图表与界面强调色统一使用单一主色 primary({colors.primary}),排名/次序数据用黑色透明度渐变区分层级,禁止引入除 primaryDark/danger 语义色外的其他强调色。**该约束覆盖界面全部元素,不限于图表**:状态徽章、优先级标签、指示圆点、Tab/Chip、图表图例等任何用于区分状态或类别的地方,只能从 primary/primaryDark/danger + 灰阶(muted-foreground/border/#9CA3AF)中取色,禁止新增任何未在 colors 中声明的色相(橙色/黄色/蓝色等)表达"预警/中优先级/第三档状态"——多档状态一律压缩为二档(如"异常/预警"统一用 danger,"正常/健康/低优先级"统一用 primary)。
|
|
194
|
+
- 任意图表出现多个系列/类别需要区分时(不论是否为"排名"语义:趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑——首要/主体系列用 primary,其余系列全部用黑色透明度渐变(getRankedColor 公式)或灰阶,不得为区分类别另起色相。
|
|
195
195
|
- 所有卡片圆角统一 {rounded.card},阴影统一 shadow-sm,不使用更强阴影或其他圆角档位。
|
|
196
196
|
- 页面主标题可在 text-5xl md:text-6xl 范围建立强层级;空间不足或信息密集时允许自适应缩放。
|
|
197
|
-
- 语义色
|
|
197
|
+
- 语义色 primaryDark/danger 仅用于趋势方向指示(涨跌箭头与数值)及状态徽章的"正常/异常"二元判断,不作为装饰、多级优先级或跨场景强调色。
|
|
198
198
|
- 字体 @import 必须原样写入全局样式首行,禁止替换或省略。
|
|
199
199
|
|
|
200
200
|
## Exceptions
|
|
201
201
|
|
|
202
|
-
- 图标背景使用
|
|
203
|
-
- AI 洞察卡片左侧装饰条使用
|
|
202
|
+
- 图标背景使用 primary 10% 透明度作浅底,不受"仅一个强调色、不额外引入强调色"限制,属常规图标底色处理。
|
|
203
|
+
- AI 洞察卡片左侧装饰条使用 primary 实色,视为组件签名而非额外强调色。
|
|
204
204
|
- 卡片默认 border-transparent,hover 时转浅灰 border-gray-100,不受阴影/圆角统一约束(边框颜色变化例外)。
|
|
205
205
|
- 元数据标签与小徽章允许使用 {rounded.tag}/{rounded.small} 而非卡片档 {rounded.card}。
|
|
@@ -8,19 +8,19 @@ description: >
|
|
|
8
8
|
视觉签名是超黑字重(font-black/900)配超紧字距(tracking-tighter)的巨型标题,搭配全大写英文注释标签(uppercase tracking-widest),
|
|
9
9
|
中英双语层次分明。暗区用玻璃态透明白容器(bg-white/5~/20 + backdrop-blur),叠加网格线、carbon-fibre 纹理、径向渐变与品牌色模糊光斑。
|
|
10
10
|
colors:
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
background: "#FAFAFA"
|
|
12
|
+
card: "#FFFFFF"
|
|
13
13
|
header: "#8B0000"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
foreground: "#111827"
|
|
15
|
+
muted-foreground: "#9CA3AF"
|
|
16
|
+
primary: "#8B0000"
|
|
17
17
|
border: "#F3F4F6"
|
|
18
18
|
heroDark: "#1A0000"
|
|
19
19
|
outlookDark: "#030712"
|
|
20
20
|
footerDark: "#050505"
|
|
21
21
|
growthText: "#16A34A"
|
|
22
22
|
growthBg: "#DCFCE7"
|
|
23
|
-
|
|
23
|
+
accent: "#FEF2F2"
|
|
24
24
|
gridLine: "#EEEEEE"
|
|
25
25
|
axisLabel: "#999999"
|
|
26
26
|
axisLabelAlt: "#666666"
|
|
@@ -42,7 +42,7 @@ typography:
|
|
|
42
42
|
fontSize: "text-6xl md:text-8xl"
|
|
43
43
|
fontWeight: "900"
|
|
44
44
|
letterSpacing: "tracking-tighter"
|
|
45
|
-
color: "{colors.
|
|
45
|
+
color: "{colors.primary}"
|
|
46
46
|
h2Section:
|
|
47
47
|
fontSize: "text-5xl"
|
|
48
48
|
fontWeight: "900"
|
|
@@ -67,17 +67,17 @@ typography:
|
|
|
67
67
|
fontWeight: "900"
|
|
68
68
|
letterSpacing: "tracking-widest"
|
|
69
69
|
upper: true
|
|
70
|
-
color: "{colors.
|
|
70
|
+
color: "{colors.primary}"
|
|
71
71
|
metricLabel:
|
|
72
72
|
fontSize: "text-[10px]"
|
|
73
73
|
fontWeight: "700"
|
|
74
74
|
letterSpacing: "tracking-[0.15em]"
|
|
75
75
|
upper: true
|
|
76
|
-
color: "{colors.
|
|
76
|
+
color: "{colors.muted-foreground}"
|
|
77
77
|
body:
|
|
78
78
|
fontSize: "text-lg / text-sm"
|
|
79
79
|
lineHeight: "relaxed"
|
|
80
|
-
color: "{colors.
|
|
80
|
+
color: "{colors.muted-foreground}"
|
|
81
81
|
microLabel:
|
|
82
82
|
fontSize: "text-[10px]"
|
|
83
83
|
fontWeight: "900"
|
|
@@ -104,11 +104,11 @@ spacing:
|
|
|
104
104
|
cardPad: "2rem"
|
|
105
105
|
components:
|
|
106
106
|
metricCard:
|
|
107
|
-
background: "{colors.
|
|
107
|
+
background: "{colors.card}"
|
|
108
108
|
border: "border border-gray-100 = {colors.border}"
|
|
109
109
|
borderRadius: "{rounded.large}"
|
|
110
110
|
boxShadow: "0 10px 40px -15px rgba(0,0,0,0.1)"
|
|
111
|
-
description: "浅色指标卡;hover 投影转品牌色深投影 0 20px 60px -15px rgba(139,0,0,0.2),底部进度线 w-0→w-full bg-
|
|
111
|
+
description: "浅色指标卡;hover 投影转品牌色深投影 0 20px 60px -15px rgba(139,0,0,0.2),底部进度线 w-0→w-full bg-primary,图标 bg-red-50/text-crimson → bg-crimson/text-white"
|
|
112
112
|
crimsonBlock:
|
|
113
113
|
background: "{colors.header}"
|
|
114
114
|
description: "全幅品牌区块(Hero 深红黑 / Business 纯深红);叠加 skew 模糊光斑 bg-nebula-crimson opacity-10 blur-3xl 与深红点阵 radial-gradient(circle at 2px 2px, white 1px, transparent 0) 40px"
|
|
@@ -118,20 +118,20 @@ components:
|
|
|
118
118
|
borderRadius: "{rounded.panel}"
|
|
119
119
|
description: "暗区玻璃态容器;hover bg-white/5→/10;配 backdrop-blur-md"
|
|
120
120
|
emphasisBar:
|
|
121
|
-
border: "border-l-4 {colors.
|
|
121
|
+
border: "border-l-4 {colors.primary}"
|
|
122
122
|
description: "数据高亮左强调条;hover bg 淡红 hover:bg-red-50/30;emphasis-box 用 border-l-8"
|
|
123
123
|
productCard:
|
|
124
|
-
background: "{colors.
|
|
124
|
+
background: "{colors.card}"
|
|
125
125
|
border: "border-b-[12px] {colors.border} hover:border-nebula-crimson"
|
|
126
126
|
borderRadius: "{rounded.large}"
|
|
127
127
|
boxShadow: "shadow-lg"
|
|
128
128
|
description: "hover:-translate-y-4 上浮 + 图标 hover:scale-110;transition duration-500"
|
|
129
129
|
progressBar:
|
|
130
|
-
background: "linear-gradient(to right, #7F1D1D, {colors.
|
|
130
|
+
background: "linear-gradient(to right, #7F1D1D, {colors.primary})"
|
|
131
131
|
borderRadius: "{rounded.full}"
|
|
132
132
|
description: "填充动画 transition-all duration-[1.5s] ease-out;from-red-900(#7F1D1D 内置)→nebula-crimson"
|
|
133
133
|
chartTooltipLight:
|
|
134
|
-
background: "{colors.
|
|
134
|
+
background: "{colors.card}"
|
|
135
135
|
borderRadius: "{rounded.card}"
|
|
136
136
|
boxShadow: "shadowBlur:30, shadowColor:rgba(0,0,0,0.1), shadowOffsetY:10"
|
|
137
137
|
description: "浅区图表 tooltip"
|
|
@@ -144,7 +144,7 @@ components:
|
|
|
144
144
|
anchors:
|
|
145
145
|
- id: crimson-accent
|
|
146
146
|
type: token
|
|
147
|
-
desc: 深红点睛色,仅用于品牌区块背景、强调数值、进度条、装饰线与 hover(见 colors.
|
|
147
|
+
desc: 深红点睛色,仅用于品牌区块背景、强调数值、进度条、装饰线与 hover(见 colors.primary),绝不入正文或大面积辅助面
|
|
148
148
|
- id: full-bleed-rhythm
|
|
149
149
|
type: pattern
|
|
150
150
|
desc: 可用全幅明暗区块与大留白形成呼吸节奏,明暗顺序和段落数量按内容决定
|
|
@@ -185,19 +185,19 @@ gaps:
|
|
|
185
185
|
|
|
186
186
|
| 角色 | 值 | 用法 |
|
|
187
187
|
|------|-----|------|
|
|
188
|
-
|
|
|
189
|
-
|
|
|
188
|
+
| background 主内容区底 | `#FAFAFA` | 浅色段落基底(`bg-[#fafafa]`)|
|
|
189
|
+
| card 卡片/面板 | `#FFFFFF` | 卡片、面板、容器 |
|
|
190
190
|
| header 强调区背景 | `#8B0000` | 全幅品牌区块(Hero、业务分析)|
|
|
191
|
-
|
|
|
192
|
-
|
|
|
193
|
-
|
|
|
191
|
+
| foreground 主文字 | `#111827` | 标题与正文(`text-gray-900`)|
|
|
192
|
+
| muted-foreground 弱文字 | `#9CA3AF` | 标签、副标、说明(`text-gray-400`)|
|
|
193
|
+
| primary 点睛 | `#8B0000` | 关键数值、图标高亮、进度条、分隔线 |
|
|
194
194
|
| border 边框 | `#F3F4F6` | 浅色卡片/面板边框(`border-gray-100`)|
|
|
195
195
|
|
|
196
196
|
深/暗区背景:Hero `#1A0000`(深红黑)、Outlook `#030712`(`bg-gray-950` 近纯黑)、Footer `#050505`(极深黑)。
|
|
197
197
|
|
|
198
198
|
语义色(唯一声明):增长/正向 = 绿 `#16A34A` 文字 / `#DCFCE7` 底(`text-green-600` / `bg-green-50`)。未声明负向/危险/警告色。
|
|
199
199
|
|
|
200
|
-
浅色辅助:淡红底 `#FEF2F2`(`bg-red-50`,图标/高亮底)。暗区玻璃容器 = `rgba(255,255,255,0.05~0.2)`。
|
|
200
|
+
浅色辅助:淡红底 accent `#FEF2F2`(`bg-red-50`,图标/高亮底)。暗区玻璃容器 = `rgba(255,255,255,0.05~0.2)`。
|
|
201
201
|
|
|
202
202
|
图表序列色(ECharts,放这里作 token):`seq1 #8B0000 → seq2 #A52A2A → seq3 #CD5C5C → seq4 #E9967A → seq5 #FFA07A`,深红 → 鲑橙 5 段固定序列,用作默认 `color` 数组、线填充、柱填充、饼环等。图表不出现其他色相。ECharts 网格线 `#EEEEEE`、轴标签 `#999999`(横向条形变体用 `#666666`);线面积渐变 `rgba(139,0,0,0.15)→rgba(139,0,0,0)`;散点阴影 `rgba(139,0,0,0.3)`;轴指针阴影 `rgba(139,0,0,0.05)`。
|
|
203
203
|
|
package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md
CHANGED
|
@@ -6,11 +6,11 @@ description: "近黑底配电光紫的精密分析界面:紧凑直角面板、
|
|
|
6
6
|
colors:
|
|
7
7
|
primary: "#6D5DFB"
|
|
8
8
|
secondary: "#18181B"
|
|
9
|
-
|
|
9
|
+
ring: "#6D5DFB"
|
|
10
10
|
background: "#0F1115"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
card: "#18181B"
|
|
12
|
+
foreground: "#FFFFFF"
|
|
13
|
+
muted-foreground: "#A1A1AA"
|
|
14
14
|
border: "#27272A"
|
|
15
15
|
typography:
|
|
16
16
|
display-lg:
|
|
@@ -40,10 +40,10 @@ rounded:
|
|
|
40
40
|
pill: "9999px"
|
|
41
41
|
components:
|
|
42
42
|
card:
|
|
43
|
-
background: "Use the
|
|
43
|
+
background: "Use the card token with subtle borders and restrained shadow depth"
|
|
44
44
|
radius: "Match the declared card radius token"
|
|
45
45
|
button:
|
|
46
|
-
background: "Use primary
|
|
46
|
+
background: "Use primary colors for the main action"
|
|
47
47
|
radius: "Use the declared control or pill radius according to component role"
|
|
48
48
|
---
|
|
49
49
|
# NexusCore Analytics
|
|
@@ -54,7 +54,7 @@ Tags: dashboard, charts, bento, animated, webgl, threejs, cta, navigation.
|
|
|
54
54
|
## Composition
|
|
55
55
|
用核心指标或关键工作区建立焦点,再以紧凑模块组织次级信息;具体位置与顺序按任务决定。桌面端可保留横向比较和数据密度,窄屏按任务优先级重排,主操作保持可见。
|
|
56
56
|
## Colors
|
|
57
|
-
Anchor the palette in primary #6D5DFB, secondary #18181B,
|
|
57
|
+
Anchor the palette in primary #6D5DFB, secondary #18181B, ring #6D5DFB, background #0F1115, card #18181B, foreground #FFFFFF. Keep background, surface, text, and border roles distinct so generated layouts retain the same contrast pattern as the source.
|
|
58
58
|
## Typography
|
|
59
59
|
Use Inter for display moments and Inter for body copy unless the HTML clearly demands a compatible fallback. Labels and technical metadata should use JetBrains Mono or an equivalent mono face.
|
|
60
60
|
## Layout
|