@lark-apaas/coding-steering 0.1.70 → 0.1.71
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/client-builtins-file-storage-service/SKILL.md +1 -0
- package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +2 -1
- package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +164 -133
- package/steering/nestjs-react-fullstack/skills/plugin-guide/SKILL.md +2 -0
- package/steering/nestjs-react-fullstack/skills_local/coding-guide/SKILL.md +1 -0
- package/steering/nestjs-react-fullstack/skills_local/plugin-guide/SKILL.md +1 -0
- package/steering/vite-react/skills/plugin-guide/SKILL.md +5 -2
- package/steering/vite-react/skills/plugin-guide/references/plugin-coding-guide.md +44 -0
- package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +0 -313
- package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +0 -375
- 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 -234
- package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +0 -349
- package/steering/nestjs-react-fullstack/skills/design-guide/references/finance-report.md +0 -169
- 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 -215
- package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +0 -348
- package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +0 -226
- 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 -253
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +0 -234
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +0 -272
- package/steering/nestjs-react-fullstack/skills/design-guide/references/sap-fiori-horizon.md +0 -154
- 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 -217
- package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +0 -203
package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: "neuform-staff-featured-2026-05-22"
|
|
3
|
-
name: cybernetic-vault-terminal
|
|
4
|
-
name_zh: 赛博机库
|
|
5
|
-
description: "深空蓝黑底的赛博数据终端:亮青蓝为唯一高能强调,深色嵌套面板、等宽技术标签与模块化网格共同形成高信息密度但清晰的操作界面。适合分析、监控、后台、工作流工具与产品展示;动态网格或粒子只作内容后的环境层。"
|
|
6
|
-
colors:
|
|
7
|
-
primary: "#0EA5E9"
|
|
8
|
-
highlight: "#FFFFFF"
|
|
9
|
-
primary-2: "#3B82F6"
|
|
10
|
-
background: "#020617"
|
|
11
|
-
card: "#0F172A"
|
|
12
|
-
foreground: "#FFFFFF"
|
|
13
|
-
muted-foreground: "#A1A1AA"
|
|
14
|
-
border: "#27272A"
|
|
15
|
-
typography:
|
|
16
|
-
display-lg:
|
|
17
|
-
fontFamily: "Inter"
|
|
18
|
-
fontSize: "64px"
|
|
19
|
-
fontWeight: 500
|
|
20
|
-
lineHeight: "1.04"
|
|
21
|
-
letterSpacing: "0"
|
|
22
|
-
body-md:
|
|
23
|
-
fontFamily: "Inter"
|
|
24
|
-
fontSize: "16px"
|
|
25
|
-
fontWeight: 400
|
|
26
|
-
lineHeight: "1.6"
|
|
27
|
-
label-md:
|
|
28
|
-
fontFamily: "JetBrains Mono"
|
|
29
|
-
fontSize: "12px"
|
|
30
|
-
fontWeight: 600
|
|
31
|
-
lineHeight: "1.2"
|
|
32
|
-
spacing:
|
|
33
|
-
base: "8px"
|
|
34
|
-
gap: "16px"
|
|
35
|
-
card-padding: "24px"
|
|
36
|
-
section-padding: "80px"
|
|
37
|
-
rounded:
|
|
38
|
-
card: "24px"
|
|
39
|
-
control: "23px"
|
|
40
|
-
pill: "9999px"
|
|
41
|
-
components:
|
|
42
|
-
card:
|
|
43
|
-
background: "Use the card token with subtle borders and restrained shadow depth"
|
|
44
|
-
radius: "Match the declared card radius token"
|
|
45
|
-
button:
|
|
46
|
-
background: "Use primary or primary-2 colors for the main action"
|
|
47
|
-
radius: "Use the declared control or pill radius according to component role"
|
|
48
|
-
---
|
|
49
|
-
# Cybernetic Vault Terminal
|
|
50
|
-
Source: Neuform staff featured templates. Author: Aksonvady Phomhome (@aksonvady). Views: 583; favorites: 13; remixes: 2.
|
|
51
|
-
Tags: dashboard, animated, webgl, threejs, bento, dither, charts, support.
|
|
52
|
-
## Overview
|
|
53
|
-
深空蓝黑界面以清晰的信息密度、模块化面板和稳定节奏呈现工作流。亮青蓝只强调关键动作、主指标与当前状态;Inter 承担正文,JetBrains Mono 承担标签和技术元数据。适合产品展示、管理后台、分析体验、监控与支持工具。
|
|
54
|
-
## Composition
|
|
55
|
-
建立一个明确焦点,并可用不对称模块网格展开内容;保持紧凑导航、嵌套表面和主次指标层级。具体首屏结构和模块顺序由任务决定,窄屏按阅读顺序重排,操作不能因装饰层遮挡。
|
|
56
|
-
## Colors
|
|
57
|
-
Anchor the palette in primary #0EA5E9, highlight #FFFFFF, primary-2 #3B82F6, background #020617, card #0F172A, foreground #FFFFFF. Keep background, surface, text, and border roles distinct so generated layouts retain the same contrast pattern as the source.
|
|
58
|
-
## Typography
|
|
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
|
-
## Layout
|
|
61
|
-
Keep spacing deliberate and stable. Choose grid direction, max-width, card density, and responsive stacking from the content relationships. Source layouts are examples, not structures to reproduce.
|
|
62
|
-
## Components
|
|
63
|
-
Dashboard, chart, and data panels should preserve their compact operational hierarchy, nested surfaces, and metric emphasis.
|
|
64
|
-
## Motion
|
|
65
|
-
Preserve existing motion cues such as masked reveals, staggered entrance, hover lift, scroll-triggered transitions, and ambient movement. Keep easing smooth and restrained.
|
|
66
|
-
## WebGL & Effects
|
|
67
|
-
|
|
68
|
-
If the source includes canvas, WebGL, Three.js, gradients, particles, or atmospheric effects, rebuild them as supporting layers behind the content. Keep effects performant, responsive, and secondary to the interface.
|
|
69
|
-
|
|
70
|
-
## Guardrails
|
|
71
|
-
- Do not flatten the source into a generic card grid.
|
|
72
|
-
- Do not swap the color mode unless the source clearly supports it.
|
|
73
|
-
- Preserve a strong focal signal and the intended visual density without copying a fixed first-viewport composition.
|
|
74
|
-
- Keep buttons, cards, and badges aligned to the same radius and border language.
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: dashboard
|
|
4
|
-
name_zh: 陶土净台
|
|
5
|
-
description: >-
|
|
6
|
-
暖调米白底 + 纯白卡片 + 陶土橙单强调色的数据看板风格。零阴影,层次全靠
|
|
7
|
-
极细暖灰边框与底色/表面的明度差;内容模块按任务关系自由组合,数据图表使用
|
|
8
|
-
内联 SVG。文字为暖黑,小标签全大写宽字距,
|
|
9
|
-
大数字收紧字距;系统字体栈,无 webfont。密度中等偏疏朗,气质克制、干净、温润。
|
|
10
|
-
colors:
|
|
11
|
-
background: "#fafaf9"
|
|
12
|
-
foreground: "#1c1b1a"
|
|
13
|
-
muted-foreground: "#6b6964"
|
|
14
|
-
border: "#e6e4e0"
|
|
15
|
-
primary: "#c96442"
|
|
16
|
-
primary-foreground: "#ffffff"
|
|
17
|
-
card: "#ffffff"
|
|
18
|
-
good: "#2f7d4a"
|
|
19
|
-
bad: "#b53a2a"
|
|
20
|
-
typography:
|
|
21
|
-
body:
|
|
22
|
-
fontFamily: "-apple-system, system-ui, sans-serif"
|
|
23
|
-
fontSize: 14px
|
|
24
|
-
lineHeight: 1.5
|
|
25
|
-
pageTitle:
|
|
26
|
-
fontSize: 20px
|
|
27
|
-
letterSpacing: -0.01em
|
|
28
|
-
kpiValue:
|
|
29
|
-
fontSize: 28px
|
|
30
|
-
letterSpacing: -0.02em
|
|
31
|
-
kpiLabel:
|
|
32
|
-
fontSize: 12px
|
|
33
|
-
letterSpacing: 0.05em
|
|
34
|
-
transform: uppercase
|
|
35
|
-
color: "{colors.muted-foreground}"
|
|
36
|
-
delta:
|
|
37
|
-
fontSize: 12px
|
|
38
|
-
panelTitle:
|
|
39
|
-
fontSize: 14px
|
|
40
|
-
fontWeight: 500
|
|
41
|
-
microLabel:
|
|
42
|
-
fontSize: 11px
|
|
43
|
-
letterSpacing: 0.06em
|
|
44
|
-
transform: uppercase
|
|
45
|
-
fontWeight: 500
|
|
46
|
-
color: "{colors.muted-foreground}"
|
|
47
|
-
brand:
|
|
48
|
-
fontWeight: 600
|
|
49
|
-
rounded:
|
|
50
|
-
control: 6px
|
|
51
|
-
card: 10px
|
|
52
|
-
pill: 999px
|
|
53
|
-
spacing:
|
|
54
|
-
mainPadding: "0 28px 56px"
|
|
55
|
-
topbarPadding: "16px 0"
|
|
56
|
-
topbarGapBelow: 24px
|
|
57
|
-
cardGap: 16px
|
|
58
|
-
kpiRowGapBelow: 28px
|
|
59
|
-
kpiPadding: "16px 18px"
|
|
60
|
-
panelPadding: 20px
|
|
61
|
-
buttonPadding: "7px 13px"
|
|
62
|
-
navItemPadding: "7px 10px"
|
|
63
|
-
tableCellPadding: "10px 6px"
|
|
64
|
-
pillPadding: "2px 8px"
|
|
65
|
-
chartHeight: 240px
|
|
66
|
-
components:
|
|
67
|
-
brandMark:
|
|
68
|
-
color: "{colors.foreground}"
|
|
69
|
-
fontWeight: 600
|
|
70
|
-
navLink:
|
|
71
|
-
padding: "{spacing.navItemPadding}"
|
|
72
|
-
borderRadius: "{rounded.control}"
|
|
73
|
-
color: "{colors.foreground}"
|
|
74
|
-
activeBackground: "{colors.background}"
|
|
75
|
-
activeFontWeight: 500
|
|
76
|
-
hoverBackground: "{colors.background}"
|
|
77
|
-
kpiCard:
|
|
78
|
-
background: "{colors.card}"
|
|
79
|
-
border: "1px solid {colors.border}"
|
|
80
|
-
borderRadius: "{rounded.card}"
|
|
81
|
-
padding: "{spacing.kpiPadding}"
|
|
82
|
-
panel:
|
|
83
|
-
background: "{colors.card}"
|
|
84
|
-
border: "1px solid {colors.border}"
|
|
85
|
-
borderRadius: "{rounded.card}"
|
|
86
|
-
padding: "{spacing.panelPadding}"
|
|
87
|
-
buttonPrimary:
|
|
88
|
-
background: "{colors.primary}"
|
|
89
|
-
color: "{colors.primary-foreground}"
|
|
90
|
-
border: "1px solid {colors.primary}"
|
|
91
|
-
borderRadius: "{rounded.control}"
|
|
92
|
-
padding: "{spacing.buttonPadding}"
|
|
93
|
-
buttonSecondary:
|
|
94
|
-
background: "transparent"
|
|
95
|
-
color: "{colors.foreground}"
|
|
96
|
-
border: "1px solid {colors.border}"
|
|
97
|
-
borderRadius: "{rounded.control}"
|
|
98
|
-
padding: "{spacing.buttonPadding}"
|
|
99
|
-
pill:
|
|
100
|
-
fontSize: 11px
|
|
101
|
-
padding: "{spacing.pillPadding}"
|
|
102
|
-
borderRadius: "{rounded.pill}"
|
|
103
|
-
background: "{colors.background}"
|
|
104
|
-
border: "1px solid {colors.border}"
|
|
105
|
-
chartArea:
|
|
106
|
-
height: "{spacing.chartHeight}"
|
|
107
|
-
background: "linear-gradient(180deg, rgba(201,100,66,0.06), transparent)"
|
|
108
|
-
borderBottom: "1px solid {colors.border}"
|
|
109
|
-
chartBar:
|
|
110
|
-
fill: "{colors.muted-foreground}"
|
|
111
|
-
track: "{colors.border}"
|
|
112
|
-
anchors:
|
|
113
|
-
- id: terracotta-accent
|
|
114
|
-
type: token
|
|
115
|
-
desc: 全页唯一强调色是陶土橙(见 colors.primary),每屏最多两处——主按钮与唯一主图表,其余柱状/进度条一律中性色
|
|
116
|
-
- id: flat-border-depth
|
|
117
|
-
type: pattern
|
|
118
|
-
desc: 零阴影平面系统,层次只靠极细暖灰边框(见 colors.border)与表面/底色的微弱明度差
|
|
119
|
-
- id: warm-neutrals
|
|
120
|
-
type: token
|
|
121
|
-
desc: 底色是暖调米白(见 colors.background),文字是暖黑(见 colors.foreground),中性色全部偏暖不偏蓝
|
|
122
|
-
- id: kpi-card
|
|
123
|
-
type: component
|
|
124
|
-
desc: KPI 卡三段式——全大写宽字距灰色小标签、收紧字距的大数字、涨跌语义色 delta
|
|
125
|
-
- id: status-pill
|
|
126
|
-
type: component
|
|
127
|
-
desc: 全圆角胶囊状态标签,语义色只染文字与半透明描边,底仍为页面底色
|
|
128
|
-
- id: inline-svg-chart
|
|
129
|
-
type: pattern
|
|
130
|
-
desc: 图表一律内联 SVG,全页仅一个主图表可用陶土色描边/渐变,其余柱状/进度条一律中性灰色,禁用图表库
|
|
131
|
-
gaps:
|
|
132
|
-
- 暗色模式未定义(来源仅亮色)
|
|
133
|
-
- 图标体系未定义(来源导航为纯文字,品牌标仅一个 ◐ 字符)
|
|
134
|
-
- 动效/过渡未定义(来源无 transition/animation)
|
|
135
|
-
- focus / disabled 等交互态未定义(来源仅 nav hover 一种)
|
|
136
|
-
- 字号体系仅覆盖 11/12/14/20/28 五档,H2-H6 标题层级未定义
|
|
137
|
-
- 图表多序列配色未定义(来源仅单序列陶土色折线)
|
|
138
|
-
exceptions:
|
|
139
|
-
- rgba 半透明派生色仅限三处既有值:图表渐变底、状态胶囊 good/bad 描边
|
|
140
|
-
- 窄屏下数据模块按阅读优先级重排,保证标签、数值和操作可读可用
|
|
141
|
-
- 全页允许一个主图表用 primary 描边/渐变;其余柱状图/进度条/排行榜一律用 `{components.chartBar}` 中性配色,不占用 primary 预算
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## Overview
|
|
145
|
-
|
|
146
|
-
陶土净台(terracotta-console):温润克制的管理/分析界面风格。暖米白页面底 `{colors.background}` 上铺纯白卡片 `{colors.card}`,全部层次由 1px 暖灰边框 `{colors.border}` 承担,全页零 box-shadow。唯一强调色是陶土橙 `{colors.primary}`,每屏最多出现两处(主行动 + 唯一主数据焦点)。页面骨架、导航位置和内容分区由用户需求与信息关系决定;CSS Grid 或 Flexbox 只用于实现自适应布局。
|
|
147
|
-
|
|
148
|
-
## Colors
|
|
149
|
-
|
|
150
|
-
| 角色 | Token | 值 | 用法 |
|
|
151
|
-
|------|-------|-----|------|
|
|
152
|
-
| 页面底 | `{colors.background}` | #fafaf9 | body 背景;同时复用为 nav 激活/hover 底、胶囊底——"底色即最浅灰"是本风格的层次手法 |
|
|
153
|
-
| 表面 | `{colors.card}` | #ffffff | 侧栏、KPI 卡、panel 的背景 |
|
|
154
|
-
| 主文字 | `{colors.foreground}` | #1c1b1a | 正文、导航链接、次级按钮文字(暖黑,非纯黑);同时是品牌标/logo 的唯一颜色 |
|
|
155
|
-
| 次文字 | `{colors.muted-foreground}` | #6b6964 | KPI 标签、表头、分组标签、顶栏右侧辅助信息;同时是非主图表柱状/进度条的填充色 |
|
|
156
|
-
| 边框 | `{colors.border}` | #e6e4e0 | 所有描边:卡片、侧栏右缘、顶栏下缘、表格行分隔、次级按钮;同时是非主图表柱状/进度条的轨道底色 |
|
|
157
|
-
| 强调 | `{colors.primary}` | #c96442 | 仅两类用途:主按钮(底+描边,按钮文字用 `{colors.primary-foreground}` #ffffff)、**全页唯一主图表**的描边与渐变底;禁止用于导航激活、文字链接、品牌标/logo、大面积填充、以及除主图表外的任何柱状图/进度条/排行榜 |
|
|
158
|
-
| 正向 | `{colors.good}` | #2f7d4a | 上涨 delta 文字、正向胶囊文字(描边用 rgba(47,125,74,0.3)) |
|
|
159
|
-
| 负向 | `{colors.bad}` | #b53a2a | 下跌 delta 文字、负向胶囊文字(描边用 rgba(181,58,42,0.3))。注意 `{colors.bad}` 与 `{colors.primary}` 同属暖红橙系但是两个不同 token:预警/下跌类文字与胶囊用 bad,按钮/主图表用 primary,两者不得混用替代 |
|
|
160
|
-
|
|
161
|
-
不发明新色。所有半透明色仅限 Exceptions 列出的三处既有 rgba 值。
|
|
162
|
-
|
|
163
|
-
## Typography
|
|
164
|
-
|
|
165
|
-
字体硬指令(HARD REQUIREMENT):本风格使用系统字体栈 `-apple-system, system-ui, sans-serif`,**原样写入、禁止替换**为任何 webfont;**禁止添加任何 `@import` 字体加载行**——无外部字体正是该风格气质的一部分。
|
|
166
|
-
|
|
167
|
-
- 正文 `{typography.body}`:14px / 1.5,字重常规。
|
|
168
|
-
- 页面标题 `{typography.pageTitle}`:20px,letter-spacing -0.01em,仅顶栏 h1 一处。
|
|
169
|
-
- KPI 大数字 `{typography.kpiValue}`:28px,letter-spacing -0.02em(大字必收字距)。
|
|
170
|
-
- KPI 标签 `{typography.kpiLabel}`:12px,全大写,letter-spacing 0.05em,色 `{colors.muted-foreground}`。
|
|
171
|
-
- delta `{typography.delta}`:12px,色随涨跌用 `{colors.good}` / `{colors.bad}`。
|
|
172
|
-
- 面板标题 `{typography.panelTitle}`:14px / 500,禁止加粗到 600 以上。
|
|
173
|
-
- 微标签 `{typography.microLabel}`(表头 th、侧栏分组标签):11px,全大写,letter-spacing 0.06em,500,色 `{colors.muted-foreground}`。
|
|
174
|
-
- 品牌名 `{typography.brand}`:600,全页最重字重,颜色固定 `{colors.foreground}`(见 `{components.brandMark}`),禁止用 primary。
|
|
175
|
-
|
|
176
|
-
层级规律:靠"大小写转换 + 字距 + 灰度"区分层级,不靠加粗;600 只给品牌名。
|
|
177
|
-
|
|
178
|
-
## Layout
|
|
179
|
-
|
|
180
|
-
- 采用清晰、紧凑但不过度拥挤的信息密度;主任务和主数据焦点优先,次级信息降低对比度。
|
|
181
|
-
- 卡片、表格和图表按内容关系组合,列数与比例由信息量决定,不预设 KPI 行、主副图表或固定侧栏。
|
|
182
|
-
- 导航可使用侧栏、顶栏、标签页或页面内导航;仅在业务需要持续可见时固定。
|
|
183
|
-
- 内容宽度、网格列数和排列应随窗口变化;窄屏按任务优先级重排为可读结构。
|
|
184
|
-
|
|
185
|
-
## Elevation & Depth
|
|
186
|
-
|
|
187
|
-
**全页禁止 box-shadow。** **HARD REQUIREMENT**:`<style>` 块首行追加 `*,*::before,*::after{box-shadow:none!important}` 作为强制兜底,任何后续规则都不得覆盖这条。深度体系只有两层:页面底 `{colors.background}` 与表面 `{colors.card}`,一切分界由 1px `{colors.border}` 描边完成(卡片四周、侧栏右缘、顶栏下缘、表格行上缘、图表底缘)。不使用第二层浮起、不使用 overlay 阴影。
|
|
188
|
-
|
|
189
|
-
## Shapes
|
|
190
|
-
|
|
191
|
-
- 控件(按钮、导航项)圆角 `{rounded.control}`(6px)。
|
|
192
|
-
- 容器(KPI 卡、panel)圆角 `{rounded.card}`(10px)。
|
|
193
|
-
- 状态胶囊全圆角 `{rounded.pill}`(999px)。
|
|
194
|
-
- 所有描边一律 1px 实线;无双线、无虚线、无粗边框。
|
|
195
|
-
|
|
196
|
-
## Components
|
|
197
|
-
|
|
198
|
-
- **KPI 卡** `{components.kpiCard}`:结构固定三段——`{typography.kpiLabel}` 标签(下距 8px)→ `{typography.kpiValue}` 大数字 → `{typography.delta}` delta(上距 4px,涨 `{colors.good}` / 跌 `{colors.bad}`)。指标名必须具体拟真(如 MRR、Active accounts、P95 latency),禁止 "Metric A" 类占位。
|
|
199
|
-
- **面板** `{components.panel}`:标题 `{typography.panelTitle}` 下距 16px,内容为图表或表格。
|
|
200
|
-
- **按钮**:主按钮 `{components.buttonPrimary}`(陶土底白字,每屏至多 1 个);次按钮 `{components.buttonSecondary}`(透明底、灰描边)。两者 padding 7px 13px、圆角 6px。
|
|
201
|
-
- **导航项** `{components.navLink}`:默认无底;当前项判定只能用以下手法组合,**禁止用 primary(含圆点、竖线、图标填充、文字色)**——① 底色 `{colors.background}`(已默认)② 字重升到 500(`activeFontWeight`)。hover 底同为 `{colors.background}`。
|
|
202
|
-
- **品牌标** `{components.brandMark}`:颜色固定 `{colors.foreground}`,字重 600;无论是文字标还是 ◐ 符号图标,禁止用 `{colors.primary}` 或任何语义色。
|
|
203
|
-
- **状态胶囊** `{components.pill}`:11px,padding 2px 8px,底 `{colors.background}` + 灰描边;good/bad 变体只改文字色与描边(rgba(47,125,74,0.3) / rgba(181,58,42,0.3)),不填充语义色底。
|
|
204
|
-
- **表格**:th 用 `{typography.microLabel}` 样式且左对齐;单元格 padding `{spacing.tableCellPadding}`;行分隔用 border-top `{colors.border}`;无斑马纹、无外框。
|
|
205
|
-
- **图表** `{components.chartArea}`:高 240px,容器底为陶土色微渐变 `linear-gradient(180deg, rgba(201,100,66,0.06), transparent)`,底缘 1px `{colors.border}`。图表本体一律内联 SVG,禁用任何 JS 图表库。**HARD REQUIREMENT——primary 图表预算**:全页只有*一个*"主图表"(通常是最重要的趋势/GMV/核心指标折线)允许用 `{colors.primary}` 描边(`<polyline>`,stroke-width 2,fill none,`viewBox="0 0 600 240"` + `preserveAspectRatio="none"`);**其余所有柱状图、横向进度条、排行榜条、占比条组件一律用中性色** `{components.chartBar}`——填充部分 `{colors.muted-foreground}`,轨道/背景部分 `{colors.border}`,禁止再用 primary。坐标轴标注从轻(`{colors.muted-foreground}`、更小字号)。数据必须是拟真数值。
|
|
206
|
-
|
|
207
|
-
## Do's and Don'ts
|
|
208
|
-
|
|
209
|
-
- Do:留白疏朗、卡片间距统一走 `{spacing.cardGap}`;层级靠灰度与大小写而非字重。
|
|
210
|
-
- Do:密度随内容气质微调——运营/交易类可收紧行高,常规分析保持现状的疏朗档。
|
|
211
|
-
- Do:给每个实际存在的逻辑区块加 `data-od-id="slug"` 属性。
|
|
212
|
-
- Don't:不给卡片加阴影或第二层底色;不把强调色用于导航激活态、链接、图标或品牌标。
|
|
213
|
-
- Don't:不给非主图表的柱状图/进度条/排行榜上色 primary,一律用中性色。
|
|
214
|
-
- Don't:不引入第三方 CSS/JS;单 HTML 文件内联一个 `<style>` 块交付。
|
|
215
|
-
|
|
216
|
-
## Hard Rules
|
|
217
|
-
|
|
218
|
-
1. 禁止任何 box-shadow;`<style>` 首行必须写 `*,*::before,*::after{box-shadow:none!important}`;深度只允许 1px `{colors.border}` 描边 + 底/表面明度差。
|
|
219
|
-
2. `{colors.primary}` 全页预算固定为两处,且只能是:①主按钮 ②唯一主图表的描边/渐变强调。多图表页面里,非主图表的柱状图/进度条/排行榜/占比条一律用 `{colors.muted-foreground}`(填充)+ `{colors.border}`(轨道)中性配色,不得追加 primary;禁止用于导航激活、文字链接、大面积填充、品牌标/logo。
|
|
220
|
-
3. 颜色只用 frontmatter 色板 token;半透明派生仅限 Exceptions 列出的三处 rgba 值,禁止新造颜色;`{colors.bad}` 与 `{colors.primary}` 是两个不同 token,不得互相替代。
|
|
221
|
-
4. 字体:系统字体栈原样使用,禁止替换 webfont、禁止 `@import`。
|
|
222
|
-
5. 图表只用内联 SVG,禁止 ECharts/Chart.js 等任何图表库与外部脚本。
|
|
223
|
-
6. 数据指标名与数值必须具体拟真,禁止 "Metric A / Metric B" 占位。
|
|
224
|
-
7. 使用与实际内容相符的语义 HTML,不为复刻示例而添加无业务意义的侧栏、顶栏或区块。
|
|
225
|
-
8. 数值 token(字号、间距、圆角)照本文件取值,禁止取整到其他栅格。
|
|
226
|
-
9. 若页面存在导航,当前项只能用底色 `{colors.background}` 或字重 500 标出,品牌标固定 `{colors.foreground}`;两者均禁止使用 primary(含圆点、竖线、图标填充等任何形式)。
|
|
227
|
-
|
|
228
|
-
## Exceptions
|
|
229
|
-
|
|
230
|
-
- 半透明色三处白名单:图表容器渐变 `rgba(201,100,66,0.06)`、good 胶囊描边 `rgba(47,125,74,0.3)`、bad 胶囊描边 `rgba(181,58,42,0.3)`。
|
|
231
|
-
- 响应式:`max-width: 900px` 时允许 KPI 网格 `repeat(4,1fr)` → `repeat(2,1fr)`、panels 行 `2fr 1fr` → `1fr`。
|
|
232
|
-
- 语义色 `{colors.good}` / `{colors.bad}` 仅允许出现在 delta 文字与状态胶囊,不得用于按钮或图表。
|
|
233
|
-
- 侧栏宽度允许在 220–260px 区间内按导航文案长度调整(默认 220px)。
|
|
234
|
-
- 全页允许一个主图表用 `{colors.primary}` 描边/渐变;其余柱状图/进度条/排行榜一律用 `{components.chartBar}`(`{colors.muted-foreground}` 填充 + `{colors.border}` 轨道)中性配色,不占用 primary 预算。
|