@lark-apaas/coding-steering 0.1.52 → 0.1.53-alpha.20260916160524
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 +6 -6
- package/steering/nestjs-react-fullstack/skills/app-init-feasibility-guide/SKILL.md +1 -2
- package/steering/nestjs-react-fullstack/skills/client-builtins-file-storage-service/SKILL.md +0 -1
- package/steering/nestjs-react-fullstack/skills/client-builtins-user-service/SKILL.md +0 -2
- package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +14 -61
- package/steering/nestjs-react-fullstack/skills/plugin-guide/SKILL.md +1 -4
- package/steering/nestjs-react-fullstack/skills/plugin-guide/references/plugin-coding-guide.md +5 -37
- package/steering/nestjs-react-fullstack/skills_common/mcp-guide/SKILL.md +376 -0
- package/steering/nestjs-react-fullstack/skills_local/client-builtins-user-service/SKILL.md +0 -2
- package/steering/nestjs-react-fullstack/skills_local/coding-guide/SKILL.md +13 -44
- package/steering/nestjs-react-fullstack/skills_local/plugin-guide/SKILL.md +1 -1
- package/steering/nestjs-react-fullstack/skills_local/plugin-guide/references/plugin-coding-guide.md +5 -37
- package/steering/vite-react/skills/plugin-guide/SKILL.md +5 -2
- package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +0 -188
- package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +0 -311
- package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +0 -375
- package/steering/nestjs-react-fullstack/skills/design-guide/references/corporate-blueprint.md +0 -252
- package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md +0 -221
- package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md +0 -74
- package/steering/nestjs-react-fullstack/skills/design-guide/references/dashboard.md +0 -233
- package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +0 -349
- package/steering/nestjs-react-fullstack/skills/design-guide/references/flowbite.md +0 -179
- package/steering/nestjs-react-fullstack/skills/design-guide/references/frontend-design.md +0 -66
- package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md +0 -211
- package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +0 -346
- package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +0 -220
- package/steering/nestjs-react-fullstack/skills/design-guide/references/minimal-jade.md +0 -205
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nebula-crimson.md +0 -306
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md +0 -74
- package/steering/nestjs-react-fullstack/skills/design-guide/references/organic-minimalism.md +0 -251
- package/steering/nestjs-react-fullstack/skills/design-guide/references/phosphor-hud.md +0 -214
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +0 -233
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +0 -264
- package/steering/nestjs-react-fullstack/skills/design-guide/references/token-mapping.md +0 -68
- package/steering/nestjs-react-fullstack/skills/design-guide/references/warm-elegance.md +0 -215
- package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +0 -203
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: metabase
|
|
4
|
-
name_zh: 湖光蓝调
|
|
5
|
-
description: "简洁数据驱动的开源分析仪表盘:纯白底 + 深蓝墨字 + 醒目主色蓝强调,人文无衬线全局承载(标题 700 字重),标准居中容器 + 清晰分节线;柔和漫射阴影 + 纤细半透明中性边框定义卡片,开放通透、专业可靠,让数据与可视化成为焦点。"
|
|
6
|
-
|
|
7
|
-
colors:
|
|
8
|
-
bg: "#FFFFFF"
|
|
9
|
-
bg-soft: "#F0F8FF"
|
|
10
|
-
bg-quiet: "#FAFBFE"
|
|
11
|
-
ink: "#222C3E"
|
|
12
|
-
ink-soft: "#5A6072"
|
|
13
|
-
muted: "#8D93A5"
|
|
14
|
-
muted-soft: "#4C5773"
|
|
15
|
-
accent: "#509EE3"
|
|
16
|
-
line: "rgba(90, 96, 114, 0.15)"
|
|
17
|
-
|
|
18
|
-
typography:
|
|
19
|
-
display:
|
|
20
|
-
fontFamily: '"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
21
|
-
fontSize: 48px
|
|
22
|
-
lineHeight: 1.1
|
|
23
|
-
fontWeight: 700
|
|
24
|
-
letterSpacing: "-0.5px"
|
|
25
|
-
h1:
|
|
26
|
-
fontFamily: '"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
27
|
-
fontSize: 40px
|
|
28
|
-
lineHeight: 1.2
|
|
29
|
-
fontWeight: 700
|
|
30
|
-
letterSpacing: "0"
|
|
31
|
-
h2:
|
|
32
|
-
fontFamily: '"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
33
|
-
fontSize: 28px
|
|
34
|
-
lineHeight: 1.3
|
|
35
|
-
fontWeight: 700
|
|
36
|
-
letterSpacing: "0"
|
|
37
|
-
body:
|
|
38
|
-
fontFamily: '"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
39
|
-
fontSize: 16px
|
|
40
|
-
lineHeight: 1.5
|
|
41
|
-
fontWeight: 400
|
|
42
|
-
letterSpacing: "0"
|
|
43
|
-
small:
|
|
44
|
-
fontFamily: '"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
45
|
-
fontSize: 14px
|
|
46
|
-
lineHeight: 1.4
|
|
47
|
-
fontWeight: 400
|
|
48
|
-
letterSpacing: "0"
|
|
49
|
-
|
|
50
|
-
rounded:
|
|
51
|
-
sm: 4px
|
|
52
|
-
md: 8px
|
|
53
|
-
lg: 12px
|
|
54
|
-
pill: 999px
|
|
55
|
-
|
|
56
|
-
spacing:
|
|
57
|
-
xs: 4px
|
|
58
|
-
sm: 8px
|
|
59
|
-
md: 12px
|
|
60
|
-
lg: 16px
|
|
61
|
-
xl: 20px
|
|
62
|
-
2xl: 24px
|
|
63
|
-
3xl: 32px
|
|
64
|
-
|
|
65
|
-
components:
|
|
66
|
-
button:
|
|
67
|
-
background: "{colors.accent}"
|
|
68
|
-
color: "{colors.bg}"
|
|
69
|
-
borderRadius: "{rounded.md}"
|
|
70
|
-
description: "主按钮用强调蓝实底 + 8px 圆角;次级为描边按钮(border {colors.line}、文字 {colors.ink})。"
|
|
71
|
-
card:
|
|
72
|
-
background: "{colors.bg}"
|
|
73
|
-
border: "1px solid {colors.line}"
|
|
74
|
-
borderRadius: "{rounded.lg}"
|
|
75
|
-
boxShadow: "0 1px 2px rgba(16, 24, 40, 0.05)"
|
|
76
|
-
description: "干净白卡,纤细半透明中性边框 + 柔和漫射阴影,避免生硬边缘。"
|
|
77
|
-
chip:
|
|
78
|
-
borderRadius: "{rounded.pill}"
|
|
79
|
-
description: "柔和药丸标签,弱底 {colors.bg-soft} 用于分类与筛选。"
|
|
80
|
-
input:
|
|
81
|
-
background: "{colors.bg}"
|
|
82
|
-
border: "1px solid {colors.line}"
|
|
83
|
-
borderRadius: "{rounded.md}"
|
|
84
|
-
description: "干净描边输入框,聚焦描边转 {colors.accent}。"
|
|
85
|
-
hero:
|
|
86
|
-
background: "{colors.bg}"
|
|
87
|
-
description: "大号标题 + 副标 + 两个醒目 CTA,纯白平面无渐变。"
|
|
88
|
-
|
|
89
|
-
anchors:
|
|
90
|
-
- id: white-plus-vivid-blue
|
|
91
|
-
type: token
|
|
92
|
-
desc: "纯白底 + 醒目主色蓝强调(见 colors.accent),柔和中性调色板不与数据竞争"
|
|
93
|
-
- id: humanist-sans-bold-heads
|
|
94
|
-
type: token
|
|
95
|
-
desc: "人文无衬线全局承载,标题用 700 字重建立清晰层级"
|
|
96
|
-
- id: blue-solid-button
|
|
97
|
-
type: component
|
|
98
|
-
desc: "主按钮强调蓝实底 + 中圆角(见 rounded.md),次级为描边按钮"
|
|
99
|
-
- id: soft-shadow-card
|
|
100
|
-
type: component
|
|
101
|
-
desc: "白卡靠柔和漫射阴影 + 纤细半透明中性边框(colors.line)定义,无生硬边缘"
|
|
102
|
-
- id: open-airy-layout
|
|
103
|
-
type: pattern
|
|
104
|
-
desc: "标准居中容器 + 清晰分节线 + 充足留白,开放通透"
|
|
105
|
-
- id: rounded-corners-only
|
|
106
|
-
type: pattern
|
|
107
|
-
desc: "卡片与按钮一律圆角,不用尖锐 90 度直角"
|
|
108
|
-
|
|
109
|
-
gaps:
|
|
110
|
-
- "深色模式:源明确排除,只做明亮浅色主题"
|
|
111
|
-
- "chip:源未明确出现,按柔和药丸形推导(见 Components)"
|
|
112
|
-
- "看板图表序列色:源未逐一给出,已按 accent 主序列 + 中性梯度补推(见 Components)"
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Overview
|
|
116
|
-
|
|
117
|
-
利用 AI 回答问题的开源分析平台。设计系统是一个简洁、数据驱动的仪表盘——一个精确的仪器面板,信息清晰度是首要结构原则;身份建立在开源、分析、AI 驱动与数据之上,构成从颜色到组件每个决策的逻辑基础。
|
|
118
|
-
|
|
119
|
-
**One-liner:** 利用 AI 回答问题的开源分析平台。
|
|
120
|
-
**Keywords:** 开源 · 数据分析 · AI 驱动 · 数据
|
|
121
|
-
**Analogy:** 一个简洁、数据驱动的仪表盘。
|
|
122
|
-
|
|
123
|
-
## Colors
|
|
124
|
-
|
|
125
|
-
色彩系统简洁且以数据为中心,醒目主色蓝点缀白色背景,创造高清晰度画布,让数据可视化与交互元素呈现而不产生视觉竞争;调色板作为专业中立的框架。
|
|
126
|
-
|
|
127
|
-
- **底色 `colors.bg` `#FFFFFF`** — 主背景,纯白平面。
|
|
128
|
-
- **柔底 `colors.bg-soft` `#F0F8FF`** — 卡片/浅蓝静区底色。
|
|
129
|
-
- **静区 `colors.bg-quiet` `#FAFBFE`** — 极浅静区。
|
|
130
|
-
- **正文 `colors.ink` `#222C3E`** — 主要文本与关键数字。
|
|
131
|
-
- **次级文本 `colors.ink-soft` `#5A6072`** — 说明性文本。
|
|
132
|
-
- **弱化 `colors.muted` `#8D93A5`** — 占位符。
|
|
133
|
-
- **弱提示 `colors.muted-soft` `#4C5773`** — 次级提示文字。
|
|
134
|
-
- **强调 `colors.accent` `#509EE3`** — 醒目主色蓝,用于主按钮与交互焦点。
|
|
135
|
-
- **分隔线 `colors.line` `rgba(90, 96, 114, 0.15)`** — 纤细半透明中性边框。
|
|
136
|
-
|
|
137
|
-
**用色原则:** 简洁数据导向,以白底上的醒目强调蓝为主色;不引入高对比霓虹色。
|
|
138
|
-
|
|
139
|
-
## Typography
|
|
140
|
-
|
|
141
|
-
字体由 Lato 人文主义无衬线系列处理,因干净专业与跨屏可读性被选用;比例从主标题到辅助文本逐步递进,为数据驱动内容建立清晰层级。
|
|
142
|
-
|
|
143
|
-
- **@import(HARD REQUIREMENT / 禁止替换,原样写入全局样式首行):**
|
|
144
|
-
`@import url('https://miaoda.feishu.cn/fonts/css2?family=Lato:wght@400;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');`
|
|
145
|
-
- **字体栈:** `"Lato", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif` —— 拉丁用 Lato(源推荐,人文无衬线),中文用 Noto Sans SC(气质同为清晰人文无衬线),系统字体末位保底。
|
|
146
|
-
|
|
147
|
-
| 角色 | Size | Line-height | Weight | Letter-spacing | 用法 |
|
|
148
|
-
|---|---|---|---|---|---|
|
|
149
|
-
| display | 48px | 1.1 | 700 | -0.5px | 主标题 |
|
|
150
|
-
| h1 | 40px | 1.2 | 700 | 0 | 主要章节标题 |
|
|
151
|
-
| h2 | 28px | 1.3 | 700 | 0 | 子章节标题 |
|
|
152
|
-
| body | 16px | 1.5 | 400 | 0 | 正文文本 |
|
|
153
|
-
| small | 14px | 1.4 | 400 | 0 | 辅助文本 |
|
|
154
|
-
|
|
155
|
-
**字体规则:**
|
|
156
|
-
- 标题用 Lato 700 字重建立层级;正文用 400 字重保持易读。
|
|
157
|
-
- display 用 -0.5px 负字距收紧,其余标题字距为 0。
|
|
158
|
-
- **CJK 行高转译:** display 负字距在中文场景清零;中文标题 line-height 保持 ≥1.1,中文正文 ≥1.5,避免字形重叠。
|
|
159
|
-
|
|
160
|
-
## Layout
|
|
161
|
-
|
|
162
|
-
标准居中容器,提供稳定熟悉的框架;用清晰分节线与充足空白划分内容,保持开放通透。
|
|
163
|
-
|
|
164
|
-
- **Container max:** 1280px
|
|
165
|
-
- **Paragraph max:** 680px
|
|
166
|
-
- **Grid:** 12 columns, gutter 24px
|
|
167
|
-
- **Breakpoints:** 768 / 1024 px
|
|
168
|
-
- **Rhythm:** 8px 基础单位 + 4px 微间距(见 spacing.xs / spacing.sm)。
|
|
169
|
-
|
|
170
|
-
12 列仅作为对齐工具,不要求固定分栏、组件位置或页面骨架;实际列数与跨度按内容关系决定。
|
|
171
|
-
|
|
172
|
-
## Elevation & Depth
|
|
173
|
-
|
|
174
|
-
表面靠柔和漫射阴影创造微妙深度,避免生硬边缘;边框始终纤细浅淡,用半透明中性色定义卡片与输入框而不增加视觉重量。
|
|
175
|
-
|
|
176
|
-
- 0 1px 2px rgba(16, 24, 40, 0.05)
|
|
177
|
-
- 0 16px 28px -6px rgba(24, 39, 75, 0.12)
|
|
178
|
-
- 0 32px 88px -4px rgba(24, 39, 75, 0.14)
|
|
179
|
-
- **Borders:** 1px 实线 colors.line。
|
|
180
|
-
|
|
181
|
-
## Shapes
|
|
182
|
-
|
|
183
|
-
圆角一致,卡片与按钮用小到中圆角,药丸标签用满圆角;不用尖锐直角。
|
|
184
|
-
|
|
185
|
-
- **Radius:** sm 4px(见 rounded.sm) · md 8px(rounded.md) · lg 12px(rounded.lg) · pill 999px(rounded.pill)
|
|
186
|
-
- **Borders:** 1px 半透明中性边框 colors.line。
|
|
187
|
-
|
|
188
|
-
## Components
|
|
189
|
-
|
|
190
|
-
- **button:** 主按钮强调蓝实底(background {colors.accent}、文字 {colors.bg}、圆角 {rounded.md});次级为描边按钮(border {colors.line}、文字 {colors.ink})。
|
|
191
|
-
- **card:** 干净白卡(background {colors.bg}、border 1px {colors.line}、圆角 {rounded.lg}),柔和漫射阴影 rgba(16,24,40,0.05)。
|
|
192
|
-
- **chip:** 柔和药丸标签(圆角 {rounded.pill}),弱底 {colors.bg-soft},用于分类与筛选。
|
|
193
|
-
- **input:** 干净描边输入框(border 1px {colors.line}、圆角 {rounded.md}),聚焦描边转 {colors.accent}。
|
|
194
|
-
- **hero:** 大号标题 + 副标 + 两个醒目 CTA,纯白平面无渐变。
|
|
195
|
-
- **看板图表(数据看板落地补充):** 主序列用 colors.accent 醒目蓝,次序列/对比用 colors.muted 与柔和中性梯度;图表容器为白卡,柔和漫射阴影 + colors.line 纤细边框成组,不引入高对比霓虹色。
|
|
196
|
-
|
|
197
|
-
## Do's and Don'ts
|
|
198
|
-
|
|
199
|
-
**Do:**
|
|
200
|
-
- 用清晰分节线与充足留白保持开放通透。
|
|
201
|
-
- 标题用 700 字重建立粗体层级。
|
|
202
|
-
- 卡片/按钮一律圆角,配柔和漫射阴影。
|
|
203
|
-
|
|
204
|
-
**Don't:**
|
|
205
|
-
- 别在正文用纤细优雅衬线 —— 一律人文无衬线。
|
|
206
|
-
- 别用密集大段文字缺留白 —— 布局开放通透。
|
|
207
|
-
- 别用复杂渐变做主背景 —— 背景纯白或极浅浅蓝。
|
|
208
|
-
|
|
209
|
-
## Hard Rules
|
|
210
|
-
|
|
211
|
-
- 不使用深色模式:背景始终明亮浅色 colors.bg(#FFFFFF),只做浅色主题。
|
|
212
|
-
- 不使用高对比霓虹色:强调统一用醒目主色蓝 colors.accent,其余为柔和中性。
|
|
213
|
-
- 卡片与按钮不用尖锐 90 度直角,一律圆角。
|
|
214
|
-
- 正文一律人文无衬线,不用纤细优雅衬线承载可读文本。
|
|
215
|
-
- 主背景不用复杂渐变,保持纯白或极浅浅蓝平面。
|
|
216
|
-
|
|
217
|
-
## Exceptions
|
|
218
|
-
|
|
219
|
-
- 主按钮允许唯一的强调蓝实底(colors.accent):它是界面上主要的实底色块,承担关键行动召唤;次级动作用描边按钮。
|
|
220
|
-
- 悬浮层/模态可用更深的第二/三层漫射阴影(0 16px 28px / 0 32px 88px),平铺卡片仍用第一层 0.05 极轻投影。
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: minimal-jade
|
|
4
|
-
name_zh: 简约翡翠
|
|
5
|
-
description: 简约商务数据看板风——浅灰蓝底上排布纯白卡片(圆角 rounded-xl+浅阴影 shadow-sm),单一草绿主色贯穿图标/图表/装饰条,不叠加额外强调色;KPI 数值与趋势数字统一等宽字体(JetBrains Mono)+tabular-nums 对齐;图表排名数据用黑色透明度递减渐变区分名次,仅首位保留主色;页面主标题超大字号(text-5xl/6xl)建立层级,卡片 hover 时上浮+边框转浅灰。专业、可信赖、数据驱动。
|
|
6
|
-
colors:
|
|
7
|
-
bg: "#F5F7FA"
|
|
8
|
-
surface: "#FFFFFF"
|
|
9
|
-
header: "#1D2025"
|
|
10
|
-
text: "#1D2025"
|
|
11
|
-
textMuted: "#6B7280"
|
|
12
|
-
accent: "#A0E870"
|
|
13
|
-
accentDark: "#7BC44C"
|
|
14
|
-
border: "#E5E7EB"
|
|
15
|
-
danger: "#EF4444"
|
|
16
|
-
typography:
|
|
17
|
-
sans:
|
|
18
|
-
fontFamily: "Inter, system-ui, sans-serif"
|
|
19
|
-
usage: 全部标题与正文(Heading/Body 共用,靠字号/字重区分层级)
|
|
20
|
-
mono:
|
|
21
|
-
fontFamily: '"JetBrains Mono", monospace'
|
|
22
|
-
usage: 全部数字与坐标轴/图例文字,配 tabular-nums 保证对齐
|
|
23
|
-
rounded:
|
|
24
|
-
card: 12px
|
|
25
|
-
small: 8px
|
|
26
|
-
tag: 4px
|
|
27
|
-
full: 9999px
|
|
28
|
-
spacing:
|
|
29
|
-
section-gap: 40px
|
|
30
|
-
card-gap: 24px
|
|
31
|
-
card-padding: 24px
|
|
32
|
-
page-px: 24px
|
|
33
|
-
page-py: 48px
|
|
34
|
-
container-max: 1300px
|
|
35
|
-
components:
|
|
36
|
-
kpi-card:
|
|
37
|
-
background: "{colors.surface}"
|
|
38
|
-
borderRadius: "{rounded.card}"
|
|
39
|
-
boxShadow: shadow-sm
|
|
40
|
-
border: "border border-transparent hover:border-gray-100"
|
|
41
|
-
hover: "整体上浮 y:-2px(-translate-y-0.5),带过渡"
|
|
42
|
-
iconBg: "{colors.accent} 10% 透明度"
|
|
43
|
-
iconColor: "{colors.accent}"
|
|
44
|
-
title: "text-sm uppercase tracking-wide,{colors.textMuted}"
|
|
45
|
-
value: "text-3xl font-bold tracking-tighter tabular-nums,{colors.text}(见 typography.mono)"
|
|
46
|
-
trendUp: "text-xs font-medium,{colors.accentDark},带上箭头图标"
|
|
47
|
-
trendDown: "text-xs font-medium,{colors.danger},带下箭头图标"
|
|
48
|
-
statusDot: "若需要状态指示点,只能二选一:{colors.accent}(正常)或 {colors.danger}(异常),禁止新增第三种颜色(如橙色)表达'预警/中等'档位"
|
|
49
|
-
chart-card:
|
|
50
|
-
background: "{colors.surface}"
|
|
51
|
-
borderRadius: "{rounded.card}"
|
|
52
|
-
boxShadow: shadow-sm
|
|
53
|
-
border: "border border-transparent"
|
|
54
|
-
height: "420px 或 450px 两档"
|
|
55
|
-
title: "font-semibold,{colors.header}"
|
|
56
|
-
tag: "text-xs,{colors.textMuted},bg-gray-50 底,{rounded.tag},px-2 py-1"
|
|
57
|
-
ai-insight-card:
|
|
58
|
-
accentBar: "w-1 h-4,{colors.accent} 实色,{rounded.full}"
|
|
59
|
-
title: 与卡片标题样式一致
|
|
60
|
-
status-badge:
|
|
61
|
-
description: "适用于任意'状态/预警/优先级'类徽章、标签芯片、指示点(如渠道明细表状态列、异常指标监控卡片、AI洞察优先级标签)。只允许二档语义:{colors.accent}(正常/健康/低优先级)与 {colors.danger}(异常/预警/高优先级);其余非语义标签(如团队名、分类名)一律用中性灰(bg-gray-50 + {colors.textMuted})。禁止引入橙色/黄色/蓝色等表达'中等/三级'档位——多档状态一律压缩为二档"
|
|
62
|
-
charts:
|
|
63
|
-
palette: "单主色 {colors.accent}(首位/主序列);排名类用黑色透明度递减 getRankedColor: index0={colors.accent},index≥1 为 rgba(0,0,0,opacity),opacity=max(0.1,0.9-(index-1)*0.15)"
|
|
64
|
-
multi-series-fallback: "不论是否为'排名'语义,任何图表只要出现多个系列/类别需要区分(趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑:首要/主体系列用 {colors.accent},其余系列全部用黑色透明度渐变(同 getRankedColor 公式)或灰阶({colors.textMuted}/{colors.border} 系),禁止为区分类别另起色相(黄/橙/蓝等)。这条优先于'排名'字面语义,是本风格图表配色的唯一兜底方案"
|
|
65
|
-
container: "背景 transparent(继承卡片白底),grid 四边留白 top10/right10/bottom0/left0,containLabel true,字体见 typography.mono"
|
|
66
|
-
tooltip: "白底 #fff,1px 边框 {colors.border},{rounded.small},padding 12px,文字纯黑 12px"
|
|
67
|
-
axis: "轴线与刻度隐藏,标签灰 400 系(#9CA3AF)11px;y 轴分隔线浅灰虚线({colors.border} 系),x 轴无分隔线"
|
|
68
|
-
legend: "icon=circle,size 8px,文字{colors.textMuted} 色,12px;图例本身不额外引入颜色,系列配色遵循 palette/multi-series-fallback"
|
|
69
|
-
area: "smooth 曲线,线宽 3px,symbol 4px,区域渐变填充(顶部 5% 处 opacity 0.3 → 底部 95% 处 opacity 0)"
|
|
70
|
-
pie: "环形 radius 60%~80%,padAngle 2,无 label,itemStyle 无描边"
|
|
71
|
-
radar: "线宽 2px,填充透明度 0.4"
|
|
72
|
-
bar-horizontal: "barSize 20px,仅右侧圆角 borderRadius [0,4,4,0]"
|
|
73
|
-
anchors:
|
|
74
|
-
- id: mono-numbers
|
|
75
|
-
type: token
|
|
76
|
-
desc: 所有 KPI 数值/趋势数字用等宽字体(见 typography.mono)+tabular-nums 对齐,是本风格最强识别符
|
|
77
|
-
- id: single-accent-jade
|
|
78
|
-
type: token
|
|
79
|
-
desc: 全局仅一个强调色(见 colors.accent),图标/图表/装饰条/状态徽章统一复用,不叠加其他鲜艳色
|
|
80
|
-
- id: ranked-gradient
|
|
81
|
-
type: pattern
|
|
82
|
-
desc: 图表排名类数据用黑色透明度递减渐变区分名次(见 components.charts),仅第一名保留主色;非排名类多系列图表同样套用此逻辑
|
|
83
|
-
- id: card-float-hover
|
|
84
|
-
type: pattern
|
|
85
|
-
desc: 卡片默认透明边框+浅阴影,hover 时整体上浮并边框转浅灰(见 Elevation & Depth)
|
|
86
|
-
- id: giant-title
|
|
87
|
-
type: token
|
|
88
|
-
desc: 页面主标题使用极大字号建立层级(见 typography 页面标题层级)
|
|
89
|
-
- id: kpi-icon-tint
|
|
90
|
-
type: component
|
|
91
|
-
desc: KPI 卡片图标底色为主色的低透明度版本,图标本身为主色实色
|
|
92
|
-
- id: gray-blue-canvas
|
|
93
|
-
type: token
|
|
94
|
-
desc: 页面底色为浅灰蓝(见 colors.bg),卡片底为纯白(见 colors.surface)形成层次
|
|
95
|
-
gaps:
|
|
96
|
-
- header/text/textMuted/border 四个 token 的 hex 由源给出的 hsl(H S% L%) 精确换算得出(非取整近似);bg/accent/accentDark 三色源已直接给出 hex,按源 hex 原样使用
|
|
97
|
-
- danger(下降趋势色)为补充项:源仅写"下降 red-500"(Tailwind 类名,无具体 hex),按 Tailwind 官方默认值换算为 #EF4444
|
|
98
|
-
- 字体 @import 地址为补充项:源仅给出字体名(Inter/JetBrains Mono),未提供具体 @import URL,按 Google Fonts 官方 CSS2 API 标准格式补充,字重档位(400/500/600/700)为常见档推测
|
|
99
|
-
- rounded 四档(card/small/tag/full)为补充项:源仅给出 Tailwind 类名(rounded-xl/rounded-lg/rounded/rounded-full),未给具体 px,按 Tailwind 官方默认值换算
|
|
100
|
-
- Inter/JetBrains Mono 均为纯拉丁字体无 CJK 字形,源未指定中文兜底(非手写/展示体清单成员,非强制规则,原样保留)
|
|
101
|
-
- 图表容器高度源给两档(420px/450px),未说明各自适用图表类型,原样列出未做区分
|
|
102
|
-
- 无暗色模式定义
|
|
103
|
-
- 无表单控件(input/select 等)规范
|
|
104
|
-
- 无漏斗(funnel)组件规范:第一版实验中生成模型曾自行加入转化漏斗组件并出现数字与标签重叠的排版问题,该组件超出本风格源文件定义范围,不在此补造具体规格(避免编造),仅在 Do's and Don'ts 提示自查
|
|
105
|
-
exceptions:
|
|
106
|
-
- 图标背景使用 accent 10% 透明度作浅底,不受"仅一个强调色、不额外引入强调色"限制,属常规图标底色处理
|
|
107
|
-
- AI 洞察卡片左侧装饰条使用 accent 实色,视为组件签名而非额外强调色
|
|
108
|
-
- 卡片默认 border-transparent,hover 时转浅灰 border-gray-100,不受阴影/圆角统一约束(边框颜色变化例外)
|
|
109
|
-
- 元数据标签与小徽章允许使用 rounded/rounded-lg(见 rounded.tag/small)而非卡片档 rounded.card
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
## Overview
|
|
113
|
-
|
|
114
|
-
简洁商务数据界面风格。浅灰蓝({colors.bg})基底上浮动纯白卡片({colors.surface}),用克制留白和清晰数据层级组织内容。整体气质专业、可信赖、数据驱动;色彩极简,仅一个草绿主色({colors.accent})贯穿全局,数字均用等宽字体保证对齐,图表以黑色透明度渐变而非多彩配色表达排名优先级。
|
|
115
|
-
|
|
116
|
-
## Colors
|
|
117
|
-
|
|
118
|
-
| 角色 | 值 | 用法 |
|
|
119
|
-
|-----|-----|-----|
|
|
120
|
-
| bg | {colors.bg} | 页面背景,浅灰蓝 |
|
|
121
|
-
| surface | {colors.surface} | 卡片背景,纯白 |
|
|
122
|
-
| header | {colors.header} | 页面/卡片标题文字 |
|
|
123
|
-
| text | {colors.text} | 主要文字、KPI 数值 |
|
|
124
|
-
| textMuted | {colors.textMuted} | 次要文字、副标题、KPI 标题、坐标轴与图例文字、元数据标签 |
|
|
125
|
-
| accent | {colors.accent} | 全局唯一强调色:图标、图表主序列、装饰条、状态徽章"正常"档;每处强调仅用此色 |
|
|
126
|
-
| accentDark | {colors.accentDark} | 深绿强调:趋势上升数值与箭头 |
|
|
127
|
-
| border | {colors.border} | 卡片 hover 边框、图表容器分隔线/Tooltip 边框 |
|
|
128
|
-
| danger | {colors.danger} | 趋势下降数值与箭头、状态徽章"异常/预警"档(补充项,见 gaps) |
|
|
129
|
-
|
|
130
|
-
## Typography
|
|
131
|
-
|
|
132
|
-
全局样式首行按以下方式加载字体(HARD REQUIREMENT,禁止替换;源未提供具体 @import 地址,此行为补充项,按 Google Fonts 官方 CSS2 API 标准格式生成,见 gaps):
|
|
133
|
-
|
|
134
|
-
```css
|
|
135
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Inter/JetBrains Mono 均为纯拉丁字体,源未要求 CJK 兜底(非手写/展示体,原样保留)。
|
|
139
|
-
|
|
140
|
-
| 层级 | 样式(Tailwind) | 颜色 |
|
|
141
|
-
|-----|-----|-----|
|
|
142
|
-
| 页面标题 | text-5xl md:text-6xl font-bold tracking-tight | header |
|
|
143
|
-
| 页面副标题 | text-base tracking-wide | textMuted |
|
|
144
|
-
| 卡片标题 | font-semibold | header |
|
|
145
|
-
| KPI 标题 | text-sm uppercase tracking-wide | textMuted |
|
|
146
|
-
| KPI 数值 | text-3xl font-bold font-mono tracking-tighter tabular-nums | text |
|
|
147
|
-
| 趋势数字(上升) | text-xs font-medium font-mono | accentDark |
|
|
148
|
-
| 趋势数字(下降) | text-xs font-medium font-mono | danger |
|
|
149
|
-
|
|
150
|
-
## Layout
|
|
151
|
-
|
|
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.textMuted};元数据标签 text-[10px] uppercase tracking-widest,灰 400 系(#9CA3AF)。
|
|
154
|
-
- 标题、指标、图表、表格或操作模块按任务关系组合;不固定出现顺序、卡片数量或 2/3+1/3 分栏。
|
|
155
|
-
- 网格间距 gap-6(见 spacing.card-gap 24px);卡片内边距 p-6(见 spacing.card-padding 24px)。
|
|
156
|
-
- 响应式按可用宽度和信息关系减少列数,窄屏保证数值、图例和操作完整可读。
|
|
157
|
-
|
|
158
|
-
## Elevation & Depth
|
|
159
|
-
|
|
160
|
-
- 卡片阴影统一 shadow-sm,不叠加更强档位;默认边框 border-transparent,hover 转 border-gray-100(浅灰,~{colors.border} 系)。
|
|
161
|
-
- Hover 交互:卡片整体上浮 y:-2px(配 motion 过渡),边框由透明变浅灰;不使用缩放/旋转/更强投影。
|
|
162
|
-
- 层次感仅来自"卡片白底 + 浅阴影 + hover 微浮动",无多层堆叠或渐变阴影。
|
|
163
|
-
|
|
164
|
-
## Shapes
|
|
165
|
-
|
|
166
|
-
- 圆角三档(见 frontmatter rounded):卡片用 {rounded.card}(12px);按钮/小元素用 {rounded.small}(8px)或 {rounded.tag}(4px);圆形装饰用 {rounded.full}(9999px,如 AI 洞察卡片装饰条端点)。
|
|
167
|
-
- 边框语言:卡片默认 transparent,hover 转浅灰({colors.border});图表容器同样 transparent;标签徽章 bg-gray-50 无边框。
|
|
168
|
-
- 无手绘/有机形态,无阴影模糊之外的装饰纹理;视觉极简,靠留白与色块层级表达信息密度。
|
|
169
|
-
|
|
170
|
-
## Components
|
|
171
|
-
|
|
172
|
-
核心组件规格见 frontmatter components(kpi-card / chart-card / ai-insight-card / status-badge / charts)。补充细节:
|
|
173
|
-
|
|
174
|
-
- **KPI 卡片**:标题(KPI 名)居上,数值居中放大,趋势行(上下箭头+涨跌幅)居底;图标底色为 accent 10% 透明度,图标本身 accent 实色;hover 整体上浮。若卡片带状态指示点,只能用 accent 或 danger 二色(见 components.kpi-card.statusDot)。
|
|
175
|
-
- **图表卡片**:标题 font-semibold + 可选灰底小标签;容器高度按数据量和可用空间确定;内部 ECharts 网格保持克制留白(见 components.charts.container)。
|
|
176
|
-
- **AI 洞察卡片**:左侧竖条(w-1 h-4,accent 实色,rounded-full)+ 标题,内容排版与普通卡片一致,用于突出"AI 生成建议"类文本块。
|
|
177
|
-
- **状态徽章/标签/优先级标签**(如渠道明细表状态列、异常指标监控、AI洞察优先级标签):只允许 accent(正常/健康/低优先级)与 danger(异常/预警/高优先级)二档语义色,非语义标签(团队名、分类名)用中性灰底(bg-gray-50 + textMuted)。**不得为表达"中等/三级"档位新增橙色、黄色等本风格未声明的色相**(见 components.status-badge)。
|
|
178
|
-
- **图表(ECharts)**:序列色单主色 + 排名渐变(见 components.charts.palette);不论图表是否为"排名"语义,只要存在多系列/多类别对比,一律套用同一取色逻辑——主体系列 accent,其余系列黑色渐变或灰阶,禁止引入新色相区分类别(见 components.charts.multi-series-fallback);面积图/饼图/雷达/横向柱状各自默认样式见 components.charts;坐标轴线与刻度隐藏,只留浅色虚线网格,弱化图表"骨架"、突出数据本身。
|
|
179
|
-
- 本风格未定义漏斗(funnel)等组件的具体排版规格(见 gaps);若页面确需该类组件,配色仍须遵守单一强调色规则,不因组件未定义而自由发挥新色相。
|
|
180
|
-
|
|
181
|
-
## Do's and Don'ts
|
|
182
|
-
|
|
183
|
-
- 数字与数据统一用等宽字体(JetBrains Mono)+ tabular-nums,确保多行/多列对齐。
|
|
184
|
-
- 图表优先用排名渐变色系统(getRankedColor)表达数据优先级,而非分配多种颜色;非排名类的多系列图表同样只用 accent + 黑色渐变/灰阶,不新增色相。
|
|
185
|
-
- 卡片 hover 时加入轻微上浮(y:-2)增强交互感,避免更强的缩放/旋转效果。
|
|
186
|
-
- 标题区适合使用极大字号(text-5xl/6xl)建立视觉层级,正文与标签保持克制的小字号。
|
|
187
|
-
- 图表整体配色保持克制,避免过度丰富的色彩,优先单主色 + 黑色渐变的组合。
|
|
188
|
-
- 状态徽章、优先级标签、指示圆点、图例等任何"需要区分状态/类别"的元素,一律复用 accent/accentDark/danger 三色 + 灰阶;禁止为"预警/中优先级/第三分类"等语义临时新增颜色(如橙色、黄色、蓝色)——多档状态一律压缩为二档表达。
|
|
189
|
-
|
|
190
|
-
## Hard Rules
|
|
191
|
-
|
|
192
|
-
- KPI 数值与趋势数字必须使用等宽字体(见 typography.mono)+ tabular-nums,禁止用默认无衬线字体渲染数字。
|
|
193
|
-
- 图表与界面强调色统一使用单一主色 accent({colors.accent}),排名/次序数据用黑色透明度渐变区分层级,禁止引入除 accentDark/danger 语义色外的其他强调色。**该约束覆盖界面全部元素,不限于图表**:状态徽章、优先级标签、指示圆点、Tab/Chip、图表图例等任何用于区分状态或类别的地方,只能从 accent/accentDark/danger + 灰阶(textMuted/border/#9CA3AF)中取色,禁止新增任何未在 colors 中声明的色相(橙色/黄色/蓝色等)表达"预警/中优先级/第三档状态"——多档状态一律压缩为二档(如"异常/预警"统一用 danger,"正常/健康/低优先级"统一用 accent)。
|
|
194
|
-
- 任意图表出现多个系列/类别需要区分时(不论是否为"排名"语义:趋势线多指标对比、分组柱状图例、饼图多切片等),一律套用同一取色逻辑——首要/主体系列用 accent,其余系列全部用黑色透明度渐变(getRankedColor 公式)或灰阶,不得为区分类别另起色相。
|
|
195
|
-
- 所有卡片圆角统一 {rounded.card},阴影统一 shadow-sm,不使用更强阴影或其他圆角档位。
|
|
196
|
-
- 页面主标题可在 text-5xl md:text-6xl 范围建立强层级;空间不足或信息密集时允许自适应缩放。
|
|
197
|
-
- 语义色 accentDark/danger 仅用于趋势方向指示(涨跌箭头与数值)及状态徽章的"正常/异常"二元判断,不作为装饰、多级优先级或跨场景强调色。
|
|
198
|
-
- 字体 @import 必须原样写入全局样式首行,禁止替换或省略。
|
|
199
|
-
|
|
200
|
-
## Exceptions
|
|
201
|
-
|
|
202
|
-
- 图标背景使用 accent 10% 透明度作浅底,不受"仅一个强调色、不额外引入强调色"限制,属常规图标底色处理。
|
|
203
|
-
- AI 洞察卡片左侧装饰条使用 accent 实色,视为组件签名而非额外强调色。
|
|
204
|
-
- 卡片默认 border-transparent,hover 时转浅灰 border-gray-100,不受阴影/圆角统一约束(边框颜色变化例外)。
|
|
205
|
-
- 元数据标签与小徽章允许使用 {rounded.tag}/{rounded.small} 而非卡片档 {rounded.card}。
|