@lark-apaas/coding-steering 0.1.70 → 0.1.72
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 +4 -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 +7 -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/claude-editorial-research.md
DELETED
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: claude-editorial-research
|
|
4
|
-
name_zh: 陶色书卷
|
|
5
|
-
description: 暖奶油画布 + 珊瑚强调 + 深藏青产品面的社论式 AI 界面。以带暖调的奶油底色(非纯白、非冷灰)为默认地板,板衬线展示标题走 400 字重 + 负字距(Copernicus / Tiempos,替代 Cormorant Garamond),配人文无衬线正文(StyreneB / Inter)。品牌电压只来自「奶油 + 珊瑚」这对暖色,珊瑚仅点在主 CTA 与整幅召唤卡上。三种表面模式(奶油画布 / 奶油卡 / 深藏青产品面)逐屏交替形成节奏,深色面承载真实代码窗、终端、模型对比等产品 chrome,而非抽象营销插画。整体读感是长文杂志专栏而非 SaaS 落地页。
|
|
6
|
-
anchors:
|
|
7
|
-
- id: canvas
|
|
8
|
-
type: token
|
|
9
|
-
desc: 暖调奶油底色,全站默认地板,刻意不用纯白/冷灰,见 colors.background
|
|
10
|
-
- id: primary
|
|
11
|
-
type: token
|
|
12
|
-
desc: 品牌珊瑚色,稀用于主 CTA、慷慨用于整幅召唤卡,从不作第三强调色
|
|
13
|
-
- id: display-serif
|
|
14
|
-
type: pattern
|
|
15
|
-
desc: 板衬线展示标题配负字距,文学社论气质,绝不加粗、绝不换无衬线
|
|
16
|
-
- id: surface-dark
|
|
17
|
-
type: token
|
|
18
|
-
desc: 深藏青产品面,承载代码窗、终端、模型对比卡等真实产品 chrome
|
|
19
|
-
- id: callout-card-coral
|
|
20
|
-
type: component
|
|
21
|
-
desc: 整幅珊瑚召唤卡,珊瑚面本身即品牌电压,内部按钮反相为奶油
|
|
22
|
-
- id: code-window-card
|
|
23
|
-
type: component
|
|
24
|
-
desc: 深色代码窗卡片,带行号与语法高亮,开发页面的招牌视觉元素
|
|
25
|
-
- id: three-surface-rhythm
|
|
26
|
-
type: pattern
|
|
27
|
-
desc: 奶油画布 / 奶油卡 / 深藏青三种表面按内容需要穿插,构成页面的节奏与呼吸
|
|
28
|
-
colors:
|
|
29
|
-
primary: "#cc785c"
|
|
30
|
-
primary-active: "#a9583e"
|
|
31
|
-
foreground: "#141413"
|
|
32
|
-
body: "#3d3d3a"
|
|
33
|
-
muted-foreground: "#6c6a64"
|
|
34
|
-
border: "#e6dfd8"
|
|
35
|
-
background: "#faf9f5"
|
|
36
|
-
card: "#efe9de"
|
|
37
|
-
surface-cream-strong: "#e8e0d2"
|
|
38
|
-
surface-dark: "#181715"
|
|
39
|
-
surface-dark-elevated: "#252320"
|
|
40
|
-
surface-dark-soft: "#1f1e1b"
|
|
41
|
-
primary-foreground: "#ffffff"
|
|
42
|
-
on-dark: "#faf9f5"
|
|
43
|
-
on-dark-soft: "#a09d96"
|
|
44
|
-
accent-teal: "#5db8a6"
|
|
45
|
-
success: "#5db872"
|
|
46
|
-
error: "#c64545"
|
|
47
|
-
|
|
48
|
-
typography:
|
|
49
|
-
display-xl:
|
|
50
|
-
fontFamily: "Copernicus, Tiempos Headline, Cormorant Garamond, Noto Serif SC, serif"
|
|
51
|
-
fontSize: 64px
|
|
52
|
-
fontWeight: 400
|
|
53
|
-
lineHeight: 1.05
|
|
54
|
-
letterSpacing: -1.5px
|
|
55
|
-
display-lg:
|
|
56
|
-
fontFamily: "Copernicus, Tiempos Headline, Cormorant Garamond, Noto Serif SC, serif"
|
|
57
|
-
fontSize: 48px
|
|
58
|
-
fontWeight: 400
|
|
59
|
-
lineHeight: 1.1
|
|
60
|
-
letterSpacing: -1px
|
|
61
|
-
display-md:
|
|
62
|
-
fontFamily: "Copernicus, Tiempos Headline, Cormorant Garamond, Noto Serif SC, serif"
|
|
63
|
-
fontSize: 36px
|
|
64
|
-
fontWeight: 400
|
|
65
|
-
lineHeight: 1.15
|
|
66
|
-
letterSpacing: -0.5px
|
|
67
|
-
display-sm:
|
|
68
|
-
fontFamily: "Copernicus, Tiempos Headline, Cormorant Garamond, Noto Serif SC, serif"
|
|
69
|
-
fontSize: 28px
|
|
70
|
-
fontWeight: 400
|
|
71
|
-
lineHeight: 1.2
|
|
72
|
-
letterSpacing: -0.3px
|
|
73
|
-
title-lg:
|
|
74
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
75
|
-
fontSize: 22px
|
|
76
|
-
fontWeight: 500
|
|
77
|
-
lineHeight: 1.3
|
|
78
|
-
letterSpacing: 0
|
|
79
|
-
title-md:
|
|
80
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
81
|
-
fontSize: 18px
|
|
82
|
-
fontWeight: 500
|
|
83
|
-
lineHeight: 1.4
|
|
84
|
-
letterSpacing: 0
|
|
85
|
-
body-md:
|
|
86
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
87
|
-
fontSize: 16px
|
|
88
|
-
fontWeight: 400
|
|
89
|
-
lineHeight: 1.55
|
|
90
|
-
letterSpacing: 0
|
|
91
|
-
body-sm:
|
|
92
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
93
|
-
fontSize: 14px
|
|
94
|
-
fontWeight: 400
|
|
95
|
-
lineHeight: 1.55
|
|
96
|
-
letterSpacing: 0
|
|
97
|
-
caption-uppercase:
|
|
98
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
99
|
-
fontSize: 12px
|
|
100
|
-
fontWeight: 500
|
|
101
|
-
lineHeight: 1.4
|
|
102
|
-
letterSpacing: 1.5px
|
|
103
|
-
code:
|
|
104
|
-
fontFamily: "JetBrains Mono, ui-monospace, monospace"
|
|
105
|
-
fontSize: 14px
|
|
106
|
-
fontWeight: 400
|
|
107
|
-
lineHeight: 1.6
|
|
108
|
-
letterSpacing: 0
|
|
109
|
-
button:
|
|
110
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
111
|
-
fontSize: 14px
|
|
112
|
-
fontWeight: 500
|
|
113
|
-
lineHeight: 1
|
|
114
|
-
letterSpacing: 0
|
|
115
|
-
nav-link:
|
|
116
|
-
fontFamily: "StyreneB, Inter, PingFang SC, sans-serif"
|
|
117
|
-
fontSize: 14px
|
|
118
|
-
fontWeight: 500
|
|
119
|
-
lineHeight: 1.4
|
|
120
|
-
letterSpacing: 0
|
|
121
|
-
|
|
122
|
-
rounded:
|
|
123
|
-
md: 8px
|
|
124
|
-
lg: 12px
|
|
125
|
-
xl: 16px
|
|
126
|
-
pill: 9999px
|
|
127
|
-
|
|
128
|
-
spacing:
|
|
129
|
-
lg: 24px
|
|
130
|
-
xl: 32px
|
|
131
|
-
xxl: 48px
|
|
132
|
-
section: 96px
|
|
133
|
-
|
|
134
|
-
components:
|
|
135
|
-
button-primary:
|
|
136
|
-
background: "{colors.primary}"
|
|
137
|
-
color: "{colors.primary-foreground}"
|
|
138
|
-
typography: "{typography.button}"
|
|
139
|
-
rounded: "{rounded.md}"
|
|
140
|
-
padding: 12px 20px
|
|
141
|
-
height: 40px
|
|
142
|
-
description: 招牌珊瑚 CTA;按下态转 primary-active,不设其它 hover
|
|
143
|
-
button-secondary-on-dark:
|
|
144
|
-
background: "{colors.surface-dark-elevated}"
|
|
145
|
-
color: "{colors.on-dark}"
|
|
146
|
-
typography: "{typography.button}"
|
|
147
|
-
rounded: "{rounded.md}"
|
|
148
|
-
padding: 12px 20px
|
|
149
|
-
description: 深色面上的次级按钮,保持深色,从不反相为浅色
|
|
150
|
-
text-link:
|
|
151
|
-
background: transparent
|
|
152
|
-
color: "{colors.primary}"
|
|
153
|
-
typography: "{typography.body-md}"
|
|
154
|
-
description: 正文内联链接用珊瑚色,是系统最有辨识度的小细节
|
|
155
|
-
top-nav:
|
|
156
|
-
background: "{colors.background}"
|
|
157
|
-
color: "{colors.foreground}"
|
|
158
|
-
typography: "{typography.nav-link}"
|
|
159
|
-
height: 64px
|
|
160
|
-
description: 奶油顶栏,左侧 Anthropic 星芒标 + Claude 字标,右侧珊瑚主按钮
|
|
161
|
-
hero-band:
|
|
162
|
-
background: "{colors.background}"
|
|
163
|
-
color: "{colors.foreground}"
|
|
164
|
-
typography: "{typography.display-xl}"
|
|
165
|
-
padding: 96px
|
|
166
|
-
description: 奶油画布英雄区,6/6 栅格:左标题右插画或产品 mockup
|
|
167
|
-
feature-card:
|
|
168
|
-
background: "{colors.card}"
|
|
169
|
-
color: "{colors.foreground}"
|
|
170
|
-
typography: "{typography.title-md}"
|
|
171
|
-
rounded: "{rounded.lg}"
|
|
172
|
-
padding: 32px
|
|
173
|
-
description: 比画布深一档的奶油特性卡,3-up 栅格,无阴影
|
|
174
|
-
product-mockup-card-dark:
|
|
175
|
-
background: "{colors.surface-dark}"
|
|
176
|
-
color: "{colors.on-dark}"
|
|
177
|
-
typography: "{typography.title-md}"
|
|
178
|
-
rounded: "{rounded.lg}"
|
|
179
|
-
padding: 32px
|
|
180
|
-
description: 深藏青产品卡,展示真实 Claude 产品界面片段
|
|
181
|
-
code-window-card:
|
|
182
|
-
background: "{colors.surface-dark}"
|
|
183
|
-
color: "{colors.on-dark}"
|
|
184
|
-
typography: "{typography.code}"
|
|
185
|
-
rounded: "{rounded.lg}"
|
|
186
|
-
padding: 24px
|
|
187
|
-
innerBlock: "{colors.surface-dark-soft}"
|
|
188
|
-
description: 深色代码窗,带行号与语法高亮,内嵌块用 surface-dark-soft
|
|
189
|
-
pricing-tier-card-featured:
|
|
190
|
-
background: "{colors.surface-dark}"
|
|
191
|
-
color: "{colors.on-dark}"
|
|
192
|
-
typography: "{typography.title-lg}"
|
|
193
|
-
rounded: "{rounded.lg}"
|
|
194
|
-
padding: 32px
|
|
195
|
-
description: 主推档位卡,深色面本身即「featured」信号,其余档位为奶油描边
|
|
196
|
-
callout-card-coral:
|
|
197
|
-
background: "{colors.primary}"
|
|
198
|
-
color: "{colors.primary-foreground}"
|
|
199
|
-
typography: "{typography.title-md}"
|
|
200
|
-
rounded: "{rounded.lg}"
|
|
201
|
-
padding: 48px
|
|
202
|
-
description: 整幅珊瑚召唤卡,内部 CTA 反相为奶油按钮
|
|
203
|
-
cta-band-coral:
|
|
204
|
-
background: "{colors.primary}"
|
|
205
|
-
color: "{colors.primary-foreground}"
|
|
206
|
-
typography: "{typography.display-sm}"
|
|
207
|
-
rounded: "{rounded.lg}"
|
|
208
|
-
padding: 64px
|
|
209
|
-
description: 页脚前珊瑚 CTA 带,标题仍是衬线
|
|
210
|
-
badge-coral:
|
|
211
|
-
background: "{colors.primary}"
|
|
212
|
-
color: "{colors.primary-foreground}"
|
|
213
|
-
typography: "{typography.caption-uppercase}"
|
|
214
|
-
rounded: "{rounded.pill}"
|
|
215
|
-
padding: 4px 12px
|
|
216
|
-
description: NEW / BETA 珊瑚胶囊徽章
|
|
217
|
-
text-input-focused:
|
|
218
|
-
background: "{colors.background}"
|
|
219
|
-
color: "{colors.foreground}"
|
|
220
|
-
typography: "{typography.body-md}"
|
|
221
|
-
rounded: "{rounded.md}"
|
|
222
|
-
border: 1px {colors.primary}
|
|
223
|
-
description: 聚焦态输入框,边框转珊瑚 + 3px 珊瑚 15% 透明外环
|
|
224
|
-
footer:
|
|
225
|
-
background: "{colors.surface-dark}"
|
|
226
|
-
color: "{colors.on-dark-soft}"
|
|
227
|
-
typography: "{typography.body-sm}"
|
|
228
|
-
padding: 64px
|
|
229
|
-
description: 深藏青页脚收束每页,4 列链接,星芒标 + Anthropic 字标,从不反相
|
|
230
|
-
gaps:
|
|
231
|
-
- "Copernicus / StyreneB / Tiempos Headline 是 Anthropic 授权字体、无公开 web font;本档用 Cormorant Garamond / Inter / Noto Serif SC 作替代项(源推荐字体无可用镜像源),气质近似但非精确。"
|
|
232
|
-
- "Anthropic 星芒标(四芒放射)为品牌 glyph,作 logo 资产处理,未形式化为系统 token(未取到完整 SVG path,落 gap 不凭二手重绘)。"
|
|
233
|
-
- "动画与转场时序(消息揭示、代码打字机、agentic-flow 图动画)不在抽取范围。"
|
|
234
|
-
- "text-input-focused 之外的表单校验态(error / success 输入态)未抽取。"
|
|
235
|
-
- "claude.ai 产品面的对话气泡、消息工具、文件上传芯片、会话侧栏等产品专属组件不在本营销面文档范围。"
|
|
236
|
-
- "primary-disabled、body-strong、muted-soft、surface-soft、hairline-soft、accent-amber、warning 等源中次要 token 与 title-sm / caption / xs / sm 半径为收敛体量已删减,需要时回查 raw-source。"
|
|
237
|
-
---
|
|
238
|
-
|
|
239
|
-
## Overview
|
|
240
|
-
|
|
241
|
-
Claude 是 AI 产品品类里最暖、最社论化的界面。基底气质是一层**带暖调的奶油画布**(`{colors.background}`)——刻意不用其它 AI 品牌惯用的冷灰白或纯白。标题走**板衬线展示体**(Copernicus / Tiempos Headline,替代 Cormorant Garamond)400 字重 + 负字距,配 **StyreneB / Inter** 人文无衬线正文,读感是文学出版物而非 SaaS 营销页。
|
|
242
|
-
|
|
243
|
-
品牌电压只来自**奶油 + 珊瑚**这对暖色:珊瑚(`{colors.primary}`)是 Anthropic 招牌强调色,稀用于每个主 CTA 与品牌字标,慷慨用于整幅召唤卡,从不作第三强调色。珊瑚偏暖略哑,绝不偏青蓝——是对冷色调 AI 品牌的刻意反位。
|
|
244
|
-
|
|
245
|
-
三种表面模式逐屏交替:
|
|
246
|
-
1. **奶油画布** `{colors.background}` —— 默认正文地板
|
|
247
|
-
2. **奶油特性卡** `{colors.card}` —— 比画布深一档
|
|
248
|
-
3. **深藏青产品面** `{colors.surface-dark}` —— 代码窗、模型卡、页脚前 CTA、页脚本身
|
|
249
|
-
|
|
250
|
-
深色面是 Claude 展示真实产品 chrome(代码块、终端、模型对比表)之处,而非抽象营销插画;奶油到深色的对比即页面节奏。层级半径:`{rounded.md}` 用于按钮与输入框,`{rounded.lg}` 用于内容与产品卡,`{rounded.xl}` 用于英雄插画容器,`{rounded.pill}` 用于徽章。段落节奏 `{spacing.section}` 恒定,卡内留白慷慨 `{spacing.xl}`。
|
|
251
|
-
|
|
252
|
-
## Colors
|
|
253
|
-
|
|
254
|
-
### 品牌与强调
|
|
255
|
-
- **珊瑚 / 主色** `{colors.primary}`:招牌暖珊瑚,用于每个主 CTA 背景、整幅珊瑚召唤卡、品牌字标强调。
|
|
256
|
-
- **珊瑚按下态** `{colors.primary-active}`:按下 / hover 变深。
|
|
257
|
-
- **强调青** `{colors.accent-teal}`:极少量用于次级产品面(终端状态点、连接器「活跃」指示)。
|
|
258
|
-
|
|
259
|
-
### 表面
|
|
260
|
-
- **画布** `{colors.background}`:默认地板,暖奶油,非纯白。
|
|
261
|
-
- **奶油卡** `{colors.card}`:特性卡、内容卡,比画布深一档。
|
|
262
|
-
- **强奶油** `{colors.surface-cream-strong}`:选中态分类标签、强调段落带。
|
|
263
|
-
- **深藏青** `{colors.surface-dark}`:代码窗、模型卡、页脚,主导深色面。
|
|
264
|
-
- **深藏青抬升** `{colors.surface-dark-elevated}`:深色带内的抬升卡与次级按钮。
|
|
265
|
-
- **深藏青柔** `{colors.surface-dark-soft}`:大深色卡内代码块背景。
|
|
266
|
-
- **发丝线** `{colors.border}`:奶油面上的 1px 边框色,边界像一档抬升而非墨线。
|
|
267
|
-
|
|
268
|
-
### 文本
|
|
269
|
-
- **墨** `{colors.foreground}`:所有标题与主文本,暖深、略偏离纯黑。
|
|
270
|
-
- **正文** `{colors.body}`:默认行文色。
|
|
271
|
-
- **弱化** `{colors.muted-foreground}`:子标题、面包屑、次要文本。
|
|
272
|
-
- **珊瑚上白字** `{colors.primary-foreground}`:珊瑚按钮上文字。
|
|
273
|
-
- **深面上字** `{colors.on-dark}`:深色面上的奶油调白(呼应画布)。
|
|
274
|
-
- **深面弱字** `{colors.on-dark-soft}`:页脚正文、深 mockup 内次级标签。
|
|
275
|
-
|
|
276
|
-
### 语义
|
|
277
|
-
- **成功** `{colors.success}`:绿色状态点、「可用」指示。
|
|
278
|
-
- **错误** `{colors.error}`:校验错误。
|
|
279
|
-
|
|
280
|
-
## Typography
|
|
281
|
-
|
|
282
|
-
字体加载(`@import` 原样写入全局样式首行,**HARD REQUIREMENT:域名一律走自有镜像,禁止替换为 fonts.googleapis.com 直连**):
|
|
283
|
-
|
|
284
|
-
```css
|
|
285
|
-
@import url('https://miaoda.feishu.cn/fonts/css2?family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Noto+Serif+SC:wght@400;600&display=swap');
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
Copernicus / Tiempos Headline / StyreneB 是 Anthropic 授权字体、无公开 web font;本档以 **Cormorant Garamond**(weight 500、`-0.02em` 字距)作衬线展示体最近开源替代,**Inter** 作 StyreneB 替代,**JetBrains Mono** 处理代码。
|
|
289
|
-
|
|
290
|
-
- 展示(`{typography.display-xl}` / `{typography.display-lg}` / `{typography.display-md}` / `{typography.display-sm}`)→ 板衬线,400 字重 + 负字距,用于 h1–h3 与英雄标题。负字距(-0.3 至 -1.5px)不可省——去掉后衬线读感偏离品牌。**绝不加粗**:加重靠更大字号而非更粗字重。
|
|
291
|
-
- 标签 / 正文(`{typography.title-lg}` / `{typography.title-md}` / `{typography.body-md}` / `{typography.body-sm}` / `{typography.caption-uppercase}` / `{typography.button}` / `{typography.nav-link}`)→ 人文无衬线,正文 400、标签 500。
|
|
292
|
-
- 代码(`{typography.code}`)→ JetBrains Mono。
|
|
293
|
-
|
|
294
|
-
**中文兜底与行高转译**:本风格仅有拉丁展示体,无源推荐 CJK 字体;展示体末位补 **Noto Serif SC**(气质最近的优雅简中衬线),正文补 PingFang SC 系统兜底。中文标题回退时**清零负字距**、`line-height` 保持 ≥1.05(当前 1.05–1.2 已达标),中文正文 `line-height` ≥1.5(当前 1.55 达标),避免中文字形占满 em 盒后重叠。
|
|
295
|
-
|
|
296
|
-
## Layout
|
|
297
|
-
|
|
298
|
-
- **间距刻度**:`{spacing.lg}` 24px · `{spacing.xl}` 32px · `{spacing.xxl}` 48px · `{spacing.section}` 96px。
|
|
299
|
-
- **段落节奏**:主内容组之间可参考 `{spacing.section}`(96px),信息紧凑时允许缩减。
|
|
300
|
-
- **卡内留白**:特性 / 定价 / 模型卡 `{spacing.xl}`(32px);代码窗卡 `{spacing.lg}`(24px);珊瑚召唤卡 `{spacing.xxl}`(48px);深色 CTA 带 64px。
|
|
301
|
-
- **容器**:最大内容宽可参考 ~1200px 居中;分栏比例和卡片列数按内容关系与可用宽度决定。
|
|
302
|
-
- **留白哲学**:奶油画布 + 衬线展示 + 慷慨卡内留白共同营造社论节奏,读感是长文杂志专栏而非营销模板。
|
|
303
|
-
|
|
304
|
-
## Elevation & Depth
|
|
305
|
-
|
|
306
|
-
深度以**色块优先、阴影稀有**:大部分层次来自奶油 vs 深藏青的表面对比,而非投影。
|
|
307
|
-
|
|
308
|
-
| 层级 | 处理 | 用途 |
|
|
309
|
-
|---|---|---|
|
|
310
|
-
| 平 | 无阴影无边框 | 正文段、顶栏、英雄带 |
|
|
311
|
-
| 发丝线 | 1px `{colors.border}` 边框 | 输入框、次级导航、偶尔卡片 |
|
|
312
|
-
| 奶油卡 | `{colors.card}` 背景、无阴影 | 特性卡、内容卡 |
|
|
313
|
-
| 深面卡 | `{colors.surface-dark}` 背景、无阴影 | 代码窗、模型卡 |
|
|
314
|
-
| 微投影 | `0 1px 3px rgba(20,20,19,0.08)`(稀用) | 仅 hover 抬升态 |
|
|
315
|
-
|
|
316
|
-
深色 mockup 自带内部产品 chrome(编辑器滚动条、行号、语法高亮),无需外部阴影即有细节。Anthropic 星芒标(四芒放射星号)作为小黑标出现在字标前缀与内联内容标记处。
|
|
317
|
-
|
|
318
|
-
## Shapes
|
|
319
|
-
|
|
320
|
-
| Token | 值 | 用途 |
|
|
321
|
-
|---|---|---|
|
|
322
|
-
| `{rounded.md}` | 8px | 标准 CTA 按钮、文本输入、分类标签 |
|
|
323
|
-
| `{rounded.lg}` | 12px | 内容卡(特性 / 定价 / 代码窗 / 模型对比)|
|
|
324
|
-
| `{rounded.xl}` | 16px | 英雄插画容器、大幅陈列组件 |
|
|
325
|
-
| `{rounded.pill}` | 9999px | 徽章胶囊、NEW 标 |
|
|
326
|
-
|
|
327
|
-
英雄区极少用照片;主流做法是珊瑚 + 深藏青线描插画、代码窗 mockup、终端输出 mockup、模型对比卡(Opus / Sonnet / Haiku 抽象几何缩略图)。测评头像裁为 40px 正圆。
|
|
328
|
-
|
|
329
|
-
## Components
|
|
330
|
-
|
|
331
|
-
- **`button-primary`** —— 招牌珊瑚 CTA,`{colors.primary}` 底 + `{colors.primary-foreground}` 字,`{typography.button}`,`{rounded.md}`,按下态转 `{colors.primary-active}`。
|
|
332
|
-
- **`button-secondary-on-dark`** —— 深色面上次级按钮,`{colors.surface-dark-elevated}` 底,保持深色不反相。
|
|
333
|
-
- **`text-link`** —— 正文珊瑚内联链接,系统最有辨识度的小细节。
|
|
334
|
-
- **`top-nav`** —— 64px 奶油顶栏,星芒标 + Claude 字标 + 珊瑚主按钮。
|
|
335
|
-
- **`hero-band`** —— 奶油英雄区,6/6 分栏,纵向 `{spacing.section}` 留白。
|
|
336
|
-
- **`feature-card`** —— 奶油特性卡(`{colors.card}`),3-up 栅格,`{rounded.lg}`,`{spacing.xl}` 内边距。
|
|
337
|
-
- **`product-mockup-card-dark`** —— 深藏青产品卡,展示真实 Claude 界面片段。
|
|
338
|
-
- **`code-window-card`** —— 深色代码窗,行号 + 语法高亮,内嵌块用 `{colors.surface-dark-soft}`,开发页面招牌视觉。
|
|
339
|
-
- **`pricing-tier-card-featured`** —— 主推档位卡翻为 `{colors.surface-dark}`,深色面本身即 featured 信号。
|
|
340
|
-
- **`callout-card-coral`** —— 整幅珊瑚召唤卡,`{colors.primary}` 面即电压,内部按钮反相为奶油。
|
|
341
|
-
- **`cta-band-coral`** —— 页脚前珊瑚 CTA 带,标题仍走 `{typography.display-sm}` 衬线。
|
|
342
|
-
- **`badge-coral`** —— NEW / BETA 珊瑚胶囊徽章,`{typography.caption-uppercase}`。
|
|
343
|
-
- **`text-input-focused`** —— 聚焦态输入框,边框转珊瑚 + 3px 珊瑚 15% 透明外环。
|
|
344
|
-
- **`footer`** —— 深藏青页脚,4 列链接,星芒标 + Anthropic 字标,从不反相。
|
|
345
|
-
|
|
346
|
-
### 图表与产品面色序
|
|
347
|
-
报表 / 数据可视化容器落在深色面上时,序列色从 `{colors.accent-teal}`、`{colors.primary}`、`{colors.on-dark-soft}` 中取,容器背景 `{colors.surface-dark}`,网格线用 `{colors.surface-dark-elevated}`;语义状态点用 `{colors.success}` / `{colors.error}`。
|
|
348
|
-
|
|
349
|
-
## Hard Rules
|
|
350
|
-
|
|
351
|
-
- 每页必须锚定 `{colors.background}` 奶油画布,**禁止用纯白或冷灰作画布**——暖调即品牌差异。
|
|
352
|
-
- 展示标题必须用板衬线(Copernicus / Cormorant Garamond)400 字重 + 负字距,**禁止加粗、禁止换无衬线做展示**;加重用更大字号。
|
|
353
|
-
- `{colors.primary}` 珊瑚**仅**用于主 CTA 与整幅 `callout-card-coral` / `cta-band-coral`,**禁止**作第三强调色四处点缀。
|
|
354
|
-
- **禁止**在相邻两个带用同一表面模式;节奏须交替:奶油 → 奶油卡 → 深藏青 → 奶油 → 珊瑚召唤 → 深藏青页脚。
|
|
355
|
-
- `@import` 字体加载域名**禁止替换**为 `fonts.googleapis.com`,一律走自有镜像。
|
|
356
|
-
- 只定义默认态与按下 / 聚焦态,**禁止**新增其它 hover 样式。
|
|
357
|
-
- **禁止**引入第四种表面色调(无紫卡、无绿区块):奶油 + 珊瑚 + 深藏青是唯一三元组。
|
|
358
|
-
|
|
359
|
-
## Exceptions
|
|
360
|
-
|
|
361
|
-
- 微投影 `0 1px 3px rgba(20,20,19,0.08)` 仅允许出现在 hover 抬升态,是「阴影稀有」规则下的明确例外。
|
|
362
|
-
- `button-icon-circular` 类图标按钮触达尺寸 36×36px,略低于 WCAG 44 但视觉居中,允许。
|
|
363
|
-
- 页脚与深色 CTA 带内边距用 64px(不在 spacing 刻度上),是深色带专属留白,允许。
|
|
364
|
-
|
|
365
|
-
## Do's and Don'ts
|
|
366
|
-
|
|
367
|
-
### Do
|
|
368
|
-
- 用 `feature-card`(奶油)与 `product-mockup-card-dark`(深藏青)交替成带,节奏即品牌机制。
|
|
369
|
-
- 用 `code-window-card` / `product-mockup-card-dark` 展示真实产品 chrome,而非画营销代码插画。
|
|
370
|
-
- 用星芒标作字标前缀;定价主推档用深色面而非彩色描边。
|
|
371
|
-
|
|
372
|
-
### Don't
|
|
373
|
-
- 别用 Inter 做展示标题——衬线气质才是品牌声音。
|
|
374
|
-
- 别把珊瑚铺满:它在单个元素上稀缺、只在整幅召唤卡上慷慨。
|
|
375
|
-
- 别在字标内把星芒标反相为深底白色。
|
package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: crimson-frosted-glass
|
|
4
|
-
name_zh: 暗黑毛玻璃
|
|
5
|
-
description: 毛玻璃暗色界面风——纯黑底 + 固定模糊背景图 + 三段渐变遮罩,浮层为半透明白毛玻璃卡片(细边框+24px 大圆角+无阴影),红色强调色(#FF4D4D)点缀主数据系列/图标/趋势标记;超大粗体标题(text-5xl~text-7xl,extrabold/black,tracking-tighter);内容采用杂志式层级与错落节奏。高端、沉浸、数据自信。
|
|
6
|
-
colors:
|
|
7
|
-
background: "#000000"
|
|
8
|
-
card: "rgba(255,255,255,0.05)"
|
|
9
|
-
surface-hover: "rgba(255,255,255,0.10)"
|
|
10
|
-
header-from: "rgba(0,0,0,0.60)"
|
|
11
|
-
header-via: "rgba(0,0,0,0.80)"
|
|
12
|
-
header-to: "#000000"
|
|
13
|
-
foreground: "#FFFFFF"
|
|
14
|
-
muted-foreground: "rgba(255,255,255,0.60)"
|
|
15
|
-
text-50: "rgba(255,255,255,0.50)"
|
|
16
|
-
text-40: "rgba(255,255,255,0.40)"
|
|
17
|
-
text-30: "rgba(255,255,255,0.30)"
|
|
18
|
-
primary: "#FF4D4D"
|
|
19
|
-
border: "rgba(255,255,255,0.10)"
|
|
20
|
-
icon-bg: "rgba(255,255,255,0.05)"
|
|
21
|
-
button-active-bg: "#FFFFFF"
|
|
22
|
-
button-active-text: "#000000"
|
|
23
|
-
primary-area-top: "rgba(255,77,77,0.30)"
|
|
24
|
-
primary-area-bottom: "rgba(255,77,77,0)"
|
|
25
|
-
inactive-bar: "rgba(255,255,255,0.10)"
|
|
26
|
-
positive: "#4ADE80"
|
|
27
|
-
positive-bg: "rgba(34,197,94,0.20)"
|
|
28
|
-
negative: "#EF4444"
|
|
29
|
-
icon-orange: "#FB923C"
|
|
30
|
-
icon-blue: "#60A5FA"
|
|
31
|
-
typography:
|
|
32
|
-
sans:
|
|
33
|
-
fontFamily: 'Inter, sans-serif'
|
|
34
|
-
fontWeight: 400
|
|
35
|
-
usage: 全局唯一字体(Tailwind font-sans),标题字重上探至 800(extrabold)/900(black)
|
|
36
|
-
rounded:
|
|
37
|
-
card: 24px
|
|
38
|
-
button-group: 16px
|
|
39
|
-
button: 12px
|
|
40
|
-
icon: 12px
|
|
41
|
-
nav-item: 16px
|
|
42
|
-
trend-tag: 8px
|
|
43
|
-
avatar: 9999px
|
|
44
|
-
tooltip: 12px
|
|
45
|
-
bar-end: "0px 10px 10px 0px"
|
|
46
|
-
spacing:
|
|
47
|
-
content-padding-mobile: 16px
|
|
48
|
-
content-padding-desktop: 48px
|
|
49
|
-
section-gap: 32px
|
|
50
|
-
section-gap-lg: 48px
|
|
51
|
-
card-gap: 24px
|
|
52
|
-
header-gap: 32px
|
|
53
|
-
card-padding: 24px
|
|
54
|
-
card-padding-lg: 32px
|
|
55
|
-
components:
|
|
56
|
-
glass-card:
|
|
57
|
-
background: "{colors.card}"
|
|
58
|
-
backdropFilter: "blur(12px)"
|
|
59
|
-
border: "1px solid {colors.border}"
|
|
60
|
-
borderRadius: "{rounded.card}"
|
|
61
|
-
hover: "background→{colors.surface-hover},transition-all duration-300"
|
|
62
|
-
stat-card:
|
|
63
|
-
base: "glass-card p-6 flex flex-col justify-between h-full group"
|
|
64
|
-
top: "标签 text-sm {colors.muted-foreground} tracking-wider uppercase(左)+ 图标容器 p-2 {colors.icon-bg} rounded-xl group-hover:scale-110(右)"
|
|
65
|
-
value: "text-3xl font-extrabold {colors.foreground}"
|
|
66
|
-
subtitle: "text-sm {colors.text-40}"
|
|
67
|
-
icon: "lucide-react,语义色(icon-orange/icon-blue/negative 等)"
|
|
68
|
-
hero-card:
|
|
69
|
-
base: "glass-card overflow-hidden relative;尺寸按内容和可用空间确定"
|
|
70
|
-
header: "小标签 text-sm {colors.text-40} uppercase tracking-widest + 大数值 text-6xl font-black + 趋势标签({colors.positive}/{colors.positive-bg}/{rounded.trend-tag}) + 时间戳 {colors.text-30}"
|
|
71
|
-
avatars: "flex -space-x-2,头像 w-8 h-8 rounded-full border-2 border-black {colors.surface-hover},计数块 bg-white text-black text-[10px] font-bold"
|
|
72
|
-
chart-layer: "absolute inset-0 top-32,面积图铺满剩余空间"
|
|
73
|
-
navigation:
|
|
74
|
-
base: "使用 {colors.card} 毛玻璃表面与 {colors.border} 分隔,位置和形态由应用信息架构决定"
|
|
75
|
-
logo: "w-12 h-12 rounded-full border-2 border-white/20,hover:border-white"
|
|
76
|
-
nav-item: "p-4 {rounded.nav-item},激活=bg-white text-black shadow-lg shadow-white/20;非激活={colors.text-40} hover:text-white hover:{colors.icon-bg}"
|
|
77
|
-
time-toggle:
|
|
78
|
-
base: "flex items-center space-x-4 {colors.surface-hover} p-2 {rounded.button-group} backdrop-blur-md"
|
|
79
|
-
active: "px-6 py-2 {rounded.button} {colors.button-active-bg} {colors.button-active-text} font-bold text-sm"
|
|
80
|
-
inactive: "px-6 py-2 {rounded.button} {colors.muted-foreground} font-bold text-sm hover:text-white"
|
|
81
|
-
charts:
|
|
82
|
-
palette: "{colors.primary} {colors.foreground} #FFA366 #4DFF88(红/白/橙/绿,序列固定顺序)"
|
|
83
|
-
container: "glass-card,{rounded.card},无阴影,p-6(标准)/p-8(大图表)"
|
|
84
|
-
tooltip: "背景 rgba(0,0,0,0.80),{rounded.tooltip},backdrop-blur(8px),文字 {colors.foreground}"
|
|
85
|
-
axis: "yAxis 默认隐藏标签,xAxis 标签 {colors.text-30},网格线 rgba(255,255,255,0.05)"
|
|
86
|
-
area-fill: "折线区域渐变 {colors.primary-area-top} → {colors.primary-area-bottom}"
|
|
87
|
-
bar: "水平条形,首项(最大值) {colors.primary},其余 {colors.inactive-bar},borderRadius {rounded.bar-end}"
|
|
88
|
-
anchors:
|
|
89
|
-
- id: black-glass-base
|
|
90
|
-
type: pattern
|
|
91
|
-
desc: 纯黑背景(colors.background)+固定模糊背景图+三段渐变遮罩(colors.header-from/via/to)作全页底层,毛玻璃卡片浮于其上
|
|
92
|
-
- id: glass-card-signature
|
|
93
|
-
type: component
|
|
94
|
-
desc: 毛玻璃卡片(components.glass-card)半透明白底+backdrop-blur+细白边框+大圆角(rounded.card),是全页核心识别单元
|
|
95
|
-
- id: crimson-accent
|
|
96
|
-
type: token
|
|
97
|
-
desc: 强调色(colors.primary)专用于主数据系列/图标/趋势标记,点缀式使用不铺大面积
|
|
98
|
-
- id: oversized-heading
|
|
99
|
-
type: pattern
|
|
100
|
-
desc: 页面主标题超大字重(font-extrabold~font-black)搭配 tracking-tighter,弱化词用 text-40 斜体细体
|
|
101
|
-
- id: no-shadow-depth
|
|
102
|
-
type: pattern
|
|
103
|
-
desc: 层次感几乎不依赖阴影,靠毛玻璃透明度分级(card/surface-hover/border)营造深度
|
|
104
|
-
- id: four-color-chart-sequence
|
|
105
|
-
type: token
|
|
106
|
-
desc: 图表统一序列色(components.charts.palette 红/白/橙/绿固定顺序),不随意扩展色数
|
|
107
|
-
gaps:
|
|
108
|
-
- 无表单控件(input/select/checkbox 等)规范
|
|
109
|
-
- 无 Empty/Loading/Error 状态定义
|
|
110
|
-
- 单一暗色主题,无 light mode 定义
|
|
111
|
-
- Sidebar 具体图标集未列出,仅注明限定 lucide-react 图标库
|
|
112
|
-
- 头像图片/背景模糊图片来源未定义,仅注明 URL 可替换
|
|
113
|
-
exceptions:
|
|
114
|
-
- 圆形头像/Logo/进度环使用全圆 rounded.avatar,不套用卡片 24px 大圆角体系
|
|
115
|
-
- 导航激活态/移动浮动按钮/滚动条滑块允许有阴影(shadow-lg/shadow-2xl),不受"整体无阴影"规则约束
|
|
116
|
-
- 断点适配下的字号/间距/网格列数、图表高度、Section 子网格列数、背景模糊图片 URL、头像图片 URL、切换按钮数量与文案允许按需微调
|
|
117
|
-
- 图标限定 lucide-react 图标库,可按需更换具体图标
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Overview
|
|
121
|
-
|
|
122
|
-
毛玻璃暗色界面风格。纯黑背景 + 固定模糊背景图 + 三段渐变遮罩打底,浮层为半透明白毛玻璃卡片(细边框+大圆角+无阴影),红色强调色专用于主数据系列/图标/趋势标记的点缀式强调。内容区使用杂志式大小对比和错落节奏,具体导航与模块结构服从任务。情绪基调:高端、沉浸、数据自信。
|
|
123
|
-
|
|
124
|
-
## Colors
|
|
125
|
-
|
|
126
|
-
| 角色 | 值 | 用法 |
|
|
127
|
-
|-----|-----|------|
|
|
128
|
-
| background | {colors.background} | 页面背景,纯黑 |
|
|
129
|
-
| card | {colors.card} | 毛玻璃卡片/Sidebar/图标容器背景 |
|
|
130
|
-
| surface-hover | {colors.surface-hover} | 卡片/按钮组 hover 背景 |
|
|
131
|
-
| header-from/via/to | {colors.header-from} → {colors.header-via} → {colors.header-to} | 固定背景层三段渐变遮罩 |
|
|
132
|
-
| foreground | {colors.foreground} | 主要文字 |
|
|
133
|
-
| muted-foreground/text-50/40/30 | {colors.muted-foreground}/{colors.text-50}/{colors.text-40}/{colors.text-30} | 四档次要文字:标签/描述/辅助/极小字 |
|
|
134
|
-
| primary | {colors.primary} | 主强调色:数据系列、图标、趋势标记、按钮激活强调 |
|
|
135
|
-
| border | {colors.border} | 卡片边框、Sidebar 分隔线 |
|
|
136
|
-
| icon-bg | {colors.icon-bg} | 图标容器背景(值同 card) |
|
|
137
|
-
| button-active-bg/text | {colors.button-active-bg}/{colors.button-active-text} | 激活态按钮/浮动按钮反色底 |
|
|
138
|
-
| primary-area-top/bottom | {colors.primary-area-top} → {colors.primary-area-bottom} | 面积图渐变填充 |
|
|
139
|
-
| inactive-bar | {colors.inactive-bar} | 条形图非强调条 |
|
|
140
|
-
| positive/positive-bg | {colors.positive}/{colors.positive-bg} | 趋势正向文字/标签底 |
|
|
141
|
-
| negative | {colors.negative} | 趋势负向文字、图标-红色(复用同值) |
|
|
142
|
-
| icon-orange/icon-blue | {colors.icon-orange}/{colors.icon-blue} | 辅助图标色 |
|
|
143
|
-
|
|
144
|
-
## Typography
|
|
145
|
-
|
|
146
|
-
全局样式首行原样写入(HARD REQUIREMENT,禁止替换):
|
|
147
|
-
|
|
148
|
-
```css
|
|
149
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
| 层级 | 样式 | 颜色 |
|
|
153
|
-
|-----|-----|-----|
|
|
154
|
-
| 页面主标题 | text-5xl md:text-7xl font-extrabold tracking-tighter leading-none | {colors.foreground},弱化部分 {colors.text-40} italic font-light |
|
|
155
|
-
| Hero KPI 数值 | text-6xl font-black | {colors.foreground} |
|
|
156
|
-
| Section 标题 | text-2xl font-black italic | {colors.foreground} |
|
|
157
|
-
| 卡片内标题 | text-xl font-bold | {colors.foreground} |
|
|
158
|
-
| KPI 数值(卡片) | text-3xl font-extrabold | {colors.foreground} |
|
|
159
|
-
| 标签/分类 | text-sm font-medium tracking-wider uppercase | {colors.muted-foreground} |
|
|
160
|
-
| 小标签 | text-sm font-bold uppercase tracking-widest | {colors.text-40} |
|
|
161
|
-
| 趋势标签 | text-xs font-bold | {colors.positive},bg {colors.positive-bg},{rounded.trend-tag} |
|
|
162
|
-
| 描述文字 | text-lg leading-relaxed | {colors.text-50} |
|
|
163
|
-
| 辅助小字 | text-sm | {colors.text-40} |
|
|
164
|
-
| 极小字 | text-[10px] uppercase tracking-tighter | {colors.text-30} |
|
|
165
|
-
| 按钮文字 | text-sm font-bold | 激活 {colors.button-active-text};非激活 {colors.muted-foreground} |
|
|
166
|
-
| 突出标题 | text-4xl font-black uppercase | {colors.foreground} |
|
|
167
|
-
|
|
168
|
-
## Layout
|
|
169
|
-
|
|
170
|
-
- 固定背景层(最底层,均 fixed inset-0 pointer-events-none):模糊图片 opacity-40 + 渐变遮罩 linear-gradient(to bottom, {colors.header-from}, {colors.header-via}, {colors.header-to})。
|
|
171
|
-
- 页面模块按业务内容自由组织,可用大小悬殊的毛玻璃卡片形成杂志式焦点;不得固定导航位置、3/4+1/4 分栏、洞察列数或区块顺序。
|
|
172
|
-
- 间距:主内容 padding {spacing.content-padding-mobile} → md:{spacing.content-padding-desktop};Section 间 {spacing.section-gap}~{spacing.section-gap-lg};卡片间 {spacing.card-gap};Header 内 gap {spacing.header-gap};卡片内边距 {spacing.card-padding}(标准)/{spacing.card-padding-lg}(大图表)。
|
|
173
|
-
- 响应式:宽屏可强化错落层级;窄屏按阅读和操作优先级重排,标题缩放、图例简化,导航采用适合当前应用的移动形态。
|
|
174
|
-
- 滚动条:宽 6px,轨道 {colors.background},滑块 #333,圆角 10px。
|
|
175
|
-
|
|
176
|
-
## Elevation & Depth
|
|
177
|
-
|
|
178
|
-
- 整体不依赖阴影分层,靠毛玻璃透明度梯度({colors.card} → {colors.surface-hover})+ 1px 边框({colors.border})营造深度。
|
|
179
|
-
- 例外阴影:导航激活态 shadow-lg shadow-white/20;移动浮动按钮 shadow-2xl;其余元素无阴影。
|
|
180
|
-
- Hover:卡片背景微亮(card→surface-hover),图标 group-hover:scale-110,按钮/导航文字色反转或加深,浮动按钮 hover:rotate-45,过渡统一 transition-all duration-300。
|
|
181
|
-
|
|
182
|
-
## Shapes
|
|
183
|
-
|
|
184
|
-
- 圆角体系(全部见 frontmatter rounded):卡片 {rounded.card},按钮组 {rounded.button-group},按钮/图标 {rounded.button}/{rounded.icon},导航项 {rounded.nav-item},趋势标签 {rounded.trend-tag},头像/Logo/进度环 {rounded.avatar}(全圆,例外见 Exceptions),Tooltip {rounded.tooltip},条形图右端 {rounded.bar-end}。
|
|
185
|
-
- 边框:卡片 1px solid {colors.border};Sidebar 右边框同色;Logo border-2 border-white/20(hover→border-white);头像堆叠 border-2 border-black;Sidebar 头像 border border-white/20。
|
|
186
|
-
- 无手绘/有机形态语言,全部规则矩形/圆形几何。
|
|
187
|
-
|
|
188
|
-
## Components
|
|
189
|
-
|
|
190
|
-
frontmatter components 已含核心规格,补充细节:
|
|
191
|
-
|
|
192
|
-
- **glass-card**:所有卡片基座,毛玻璃背景+细边框+大圆角,无阴影。
|
|
193
|
-
- **stat-card**:紧凑数据卡,顶部标签+图标,底部数值+副标题,可按信息关系独立使用。
|
|
194
|
-
- **hero-card**:用于主数据焦点的较大卡片,包含面积图背景层和顶部信息层;尺寸和位置按内容决定。
|
|
195
|
-
- **navigation**:若业务需要导航,沿用毛玻璃表面、图标容器和反色激活态,不限制侧栏或顶栏。
|
|
196
|
-
- **time-toggle**:时间段切换按钮组,激活态反色(白底黑字)。
|
|
197
|
-
- **图例**:自定义 HTML/CSS 实现(非 ECharts 内置 legend),水平图例 flex + 圆点色块 + 大写标签;垂直图例 space-y-3 + 圆点+名称+数值。
|
|
198
|
-
- **SVG 圆环进度**:relative w-24 h-24,背景环 stroke white/5,进度环 stroke {colors.negative} strokeWidth 3 strokeLinecap round,中心数字 font-bold text-xl。
|
|
199
|
-
- **图表(ECharts)**:序列色/容器/Tooltip/坐标轴规则见 frontmatter components.charts;折线默认 smooth+区域渐变,阶梯折线用于辅助系列;饼图环形 55%~73% padAngle 5 无描边;水平条形首项高亮其余灰。
|
|
200
|
-
|
|
201
|
-
## Do's and Don'ts
|
|
202
|
-
|
|
203
|
-
- 图表配色优先使用 charts.palette 四色顺序,不随意扩展或调换顺序。
|
|
204
|
-
- Hover 交互统一 transition-all duration-300,避免不同组件使用不一致的过渡时长。
|
|
205
|
-
- 弱化文字用透明度阶梯(muted-foreground/text-50/40/30)表达层级,不引入新的灰度色板。
|
|
206
|
-
- 大圆角(rounded.card)与强调色(primary)是核心识别特征,新增卡片类组件应延用而非另起圆角值。
|
|
207
|
-
|
|
208
|
-
## Hard Rules
|
|
209
|
-
|
|
210
|
-
- 背景必须为纯黑({colors.background})+固定模糊背景图+三段渐变遮罩,禁止改为浅色或纯色背景。
|
|
211
|
-
- 卡片类容器必须使用毛玻璃(components.glass-card):半透明白底+backdrop-blur+细边框+{rounded.card},禁止实色不透明卡片。
|
|
212
|
-
- 强调色 {colors.primary} 仅用于主数据系列/图标/趋势标记的点缀式强调,禁止大面积铺色。
|
|
213
|
-
- 字体 @import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
|
|
214
|
-
- 图表序列色必须使用 charts.palette 固定顺序(红/白/橙/绿),禁止引入额外颜色。
|
|
215
|
-
|
|
216
|
-
## Exceptions
|
|
217
|
-
|
|
218
|
-
- 圆形头像/Logo/进度环使用全圆 {rounded.avatar},不套用卡片 {rounded.card} 大圆角体系。
|
|
219
|
-
- 导航激活态、移动浮动按钮、滚动条滑块允许有阴影(shadow-lg/shadow-2xl),不受"整体无阴影"规则约束。
|
|
220
|
-
- 断点适配下的字号/间距/网格列数、图表高度、Section 子网格列数、背景模糊图片 URL、头像图片 URL、切换按钮数量与文案允许按需微调。
|
|
221
|
-
- 图标限定 lucide-react 图标库,可按需更换具体图标。
|