@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.
Files changed (36) hide show
  1. package/package.json +6 -6
  2. package/steering/nestjs-react-fullstack/skills/app-init-feasibility-guide/SKILL.md +1 -2
  3. package/steering/nestjs-react-fullstack/skills/client-builtins-file-storage-service/SKILL.md +0 -1
  4. package/steering/nestjs-react-fullstack/skills/client-builtins-user-service/SKILL.md +0 -2
  5. package/steering/nestjs-react-fullstack/skills/coding-guide/SKILL.md +14 -61
  6. package/steering/nestjs-react-fullstack/skills/plugin-guide/SKILL.md +1 -4
  7. package/steering/nestjs-react-fullstack/skills/plugin-guide/references/plugin-coding-guide.md +5 -37
  8. package/steering/nestjs-react-fullstack/skills_common/mcp-guide/SKILL.md +376 -0
  9. package/steering/nestjs-react-fullstack/skills_local/client-builtins-user-service/SKILL.md +0 -2
  10. package/steering/nestjs-react-fullstack/skills_local/coding-guide/SKILL.md +13 -44
  11. package/steering/nestjs-react-fullstack/skills_local/plugin-guide/SKILL.md +1 -1
  12. package/steering/nestjs-react-fullstack/skills_local/plugin-guide/references/plugin-coding-guide.md +5 -37
  13. package/steering/vite-react/skills/plugin-guide/SKILL.md +5 -2
  14. package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +0 -188
  15. package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +0 -311
  16. package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +0 -375
  17. package/steering/nestjs-react-fullstack/skills/design-guide/references/corporate-blueprint.md +0 -252
  18. package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md +0 -221
  19. package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md +0 -74
  20. package/steering/nestjs-react-fullstack/skills/design-guide/references/dashboard.md +0 -233
  21. package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +0 -349
  22. package/steering/nestjs-react-fullstack/skills/design-guide/references/flowbite.md +0 -179
  23. package/steering/nestjs-react-fullstack/skills/design-guide/references/frontend-design.md +0 -66
  24. package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md +0 -211
  25. package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +0 -346
  26. package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +0 -220
  27. package/steering/nestjs-react-fullstack/skills/design-guide/references/minimal-jade.md +0 -205
  28. package/steering/nestjs-react-fullstack/skills/design-guide/references/nebula-crimson.md +0 -306
  29. package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md +0 -74
  30. package/steering/nestjs-react-fullstack/skills/design-guide/references/organic-minimalism.md +0 -251
  31. package/steering/nestjs-react-fullstack/skills/design-guide/references/phosphor-hud.md +0 -214
  32. package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +0 -233
  33. package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +0 -264
  34. package/steering/nestjs-react-fullstack/skills/design-guide/references/token-mapping.md +0 -68
  35. package/steering/nestjs-react-fullstack/skills/design-guide/references/warm-elegance.md +0 -215
  36. package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +0 -203
@@ -1,211 +0,0 @@
1
- ---
2
- version: alpha
3
- name: handwritten-sketch
4
- name_zh: 手绘草稿
5
- description: 手绘白板笔记风——米黄纸张底(圆点网格纹理)上散落白色卡片,卡片一律有机不规则 wobbly 圆角+3px 墨黑粗边框+纯偏移硬阴影(无模糊),配 Kalam(标题)/Patrick Hand(正文)手写体、透明胶带/图钉/别针物理装饰与卡片微旋转(±0.5~2deg 奇偶交替);标记笔红/钢笔蓝/便利贴黄点缀,黑板反色区块作全页唯一对比锚点。亲和、创意、手工感。
6
- colors:
7
- bg: "#fdfbf7"
8
- surface: "#ffffff"
9
- muted: "#e5e0d8"
10
- ink: "#2d2d2d"
11
- text-muted: "rgba(45,45,45,0.6)"
12
- marker-red: "#ff4d4d"
13
- pen-blue: "#2d5da1"
14
- postit-yellow: "#fff9c4"
15
- highlight-bg: "#fef9c3"
16
- success: "#16a34a"
17
- typography:
18
- marker:
19
- fontFamily: 'Kalam, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", cursive'
20
- fontWeight: 700
21
- usage: 标题/强调标记(Tailwind font-marker)
22
- hand:
23
- fontFamily: '"Patrick Hand", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", cursive'
24
- usage: 正文/描述/列表(Tailwind font-hand)
25
- rounded:
26
- wobbly-1: "255px 15px 225px 15px / 15px 225px 15px 255px"
27
- wobbly-2: "20px 225px 15px 255px / 255px 15px 225px 15px"
28
- wobbly-3: "15px 225px 15px 255px / 255px 15px 225px 15px"
29
- wobbly-4: "225px 15px 225px 15px / 15px 225px 15px 255px"
30
- badge: 9999px
31
- postit: 8px
32
- spacing:
33
- section-gap: 80px
34
- grid-gap: 24px~32px
35
- grid-gap-lg: 48px
36
- container-max: 1024px
37
- container-px: 24px
38
- card-padding: 24px~48px
39
- page-bottom: 80px
40
- components:
41
- wobbly-card:
42
- border: "3px solid {colors.ink}"
43
- borderRadius: "{rounded.wobbly-1}(四组预设按 index 轮换)"
44
- boxShadow: "4px 4px 0px 0px {colors.ink}"
45
- transform: rotate(±0.5~2deg,index 奇偶交替)
46
- variants: "white={colors.surface}底 | yellow={colors.postit-yellow}底 | black={colors.ink}底白字 | blue={colors.pen-blue}底白字"
47
- decoration: tape(透明胶带)/tack(红图钉)/none
48
- section-header:
49
- layout: flex items-center gap-3 mb-8
50
- badge: "accent 底白字图标,border-2 {colors.ink},rounded-full,shadow 2px 2px 0 {colors.ink},rotate(±1~3deg)"
51
- title: "text-4xl font-marker,波浪下划线 decoration-wavy decoration-2 underline-offset-4,交替 accent 色"
52
- kpi-card:
53
- base: "wobbly-card p-6,hover:-translate-y-1 hover:shadow(8px 8px 0 {colors.ink})"
54
- value: "text-5xl font-marker {colors.marker-red}"
55
- old-value: "text-lg font-hand line-through,ink 40% 透明度"
56
- mini-chart: "底部迷你水平条形图,border-t-2 dashed 分隔,h-24"
57
- feature-card:
58
- header: "muted/30 底 p-4,border-b-2 dashed {colors.ink},圆形图标徽章"
59
- keyword-highlight: "{colors.highlight-bg} px-1"
60
- tag: "bg-white border-2 {colors.ink} wobbly 圆角,hover:-rotate-2"
61
- roadmap-card:
62
- connector: "阶段间垂直连接线 w-1 {colors.ink}"
63
- priority: "P0={colors.marker-red}底白字 | P1={colors.postit-yellow}底墨字,rounded-full rotate-2"
64
- deadline: "font-hand {colors.pen-blue},bg-white border-2 {colors.ink} -rotate-1"
65
- chalkboard-block:
66
- base: "wobbly-card variant=black,p-8~12,rotate(1deg),圆点 SVG 纹理 opacity 0.10 叠加"
67
- keyword: "{colors.postit-yellow} 波浪下划线"
68
- note: 每页最多一处
69
- charts:
70
- palette: "{colors.marker-red} {colors.muted} {colors.pen-blue} {colors.postit-yellow}"
71
- container: "透明背景继承卡片底色,border-t-2 dashed 分隔,迷你内嵌 h-24(96px)"
72
- tooltip: "{colors.postit-yellow}底,2px {colors.ink}边框,硬阴影 4px 4px 0 {colors.ink},圆角 10px"
73
- axis: "轴标签 Patrick Hand 14px {colors.text-muted},网格线 {colors.muted} 虚线,轴刻度隐藏"
74
- legend: "Patrick Hand 14px {colors.ink},icon=roundRect 14×10,itemGap 16"
75
- anchors:
76
- - id: wobbly-radius
77
- type: pattern
78
- desc: 全部卡片有机不规则圆角(rounded 四组 wobbly 预设按 index 轮换),每张卡片形态各异如手撕纸片
79
- - id: hard-shadow-ink-border
80
- type: token
81
- desc: 纯偏移无模糊硬阴影(见 components.wobbly-card.boxShadow)配粗墨线边框(colors.ink),平面插画式深度
82
- - id: handwriting-type
83
- type: token
84
- desc: 标题 Kalam+正文 Patrick Hand 全页手写体(见 typography),无任何无衬线体
85
- - id: physical-decorations
86
- type: component
87
- desc: 透明胶带/红图钉/别针装饰散布卡片顶部,每 Section 一至两处
88
- - id: micro-rotation
89
- type: pattern
90
- desc: 所有卡片微旋转,index 奇偶交替正负方向,白板随意粘贴感
91
- - id: dot-grid-paper
92
- type: pattern
93
- desc: 米黄纸张底色(colors.bg)叠加圆点网格纹理(radial-gradient,间距见正文),整页如牛皮纸白板
94
- - id: chalkboard-contrast
95
- type: component
96
- desc: 深色黑板反色区块(components.chalkboard-block)作全页唯一视觉对比锚点
97
- gaps:
98
- - 无 deck 画布/幻灯片专属排版规格(源为单页纵向滚动白板布局,幻灯片场景沿用同一体系)
99
- - 无暗色模式定义
100
- - 无表单控件(input/select 等)规范
101
- exceptions:
102
- - 痛点便签用常规 8px 圆角(rounded.postit)与虚线边框,是唯一非 wobbly 圆角的卡片
103
- - 圆形徽章/优先级标签用全圆(rounded.badge)
104
- - 语义色 colors.success 仅用于成功状态图标,不入主色板
105
- ---
106
-
107
- ## Overview
108
-
109
- 手绘白板笔记 × 便利贴质感 × 有机不规则形态。模拟在大白板/牛皮纸上自由排列的笔记卡片,各内容组可用「图标徽章+波浪下划线大字标题」划分,并以宽松间距营造自然散落的节奏。情绪基调:亲和、创意、手工感、轻松自由。
110
-
111
- ## Colors
112
-
113
- | 角色 | 值 | 用法 |
114
- |-----|-----|-----|
115
- | bg | {colors.bg} | 页面纸张背景,叠加圆点网格纹理 |
116
- | surface | {colors.surface} | 卡片白色底;黑板区块上作粉笔白文字色 |
117
- | muted | {colors.muted} | 次级背景、网格点、分隔区域、灰底标签 |
118
- | ink | {colors.ink} | 墨水黑:主要文字、全部粗边框、硬阴影;黑板区块反转为底色 |
119
- | text-muted | {colors.text-muted} | 次要文字、描述、坐标轴标签 |
120
- | marker-red | {colors.marker-red} | 标记笔红:强调数值、重点标记、图钉;每屏 1-2 处 |
121
- | pen-blue | {colors.pen-blue} | 钢笔蓝:链接、标签、辅助强调、工时数值 |
122
- | postit-yellow | {colors.postit-yellow} | 便利贴黄:高亮卡片背景、Tooltip 背景 |
123
- | highlight-bg | {colors.highlight-bg} | 行内关键词底色标记 |
124
- | success | {colors.success} | 成功状态图标(仅此用途) |
125
-
126
- 文字选中色:`selection:bg-marker-red selection:text-white`。
127
-
128
- ## Typography
129
-
130
- 全局样式首行原样写入(HARD REQUIREMENT,禁止替换):
131
-
132
- ```css
133
- @import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Patrick+Hand&display=swap');
134
- ```
135
-
136
- Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜底(PingFang SC/Microsoft YaHei/Noto Sans SC,系统字体无需 @import)。
137
-
138
- | 层级 | 样式(Tailwind) | 颜色 |
139
- |-----|-----|-----|
140
- | 页面主标题 | text-3xl font-marker font-bold tracking-wide | ink |
141
- | Section 标题 | text-4xl font-marker font-bold + 波浪下划线(decoration-wavy decoration-2 underline-offset-4,accent 色交替) | ink |
142
- | 卡片标题 | text-2xl font-marker font-bold | ink |
143
- | 列表项标题 | text-xl font-marker font-bold | ink |
144
- | KPI 数值 | text-5xl font-marker font-bold | marker-red |
145
- | KPI 旧值 | text-lg font-hand line-through decoration-2 | ink 40% |
146
- | 正文描述 | text-lg font-hand leading-relaxed | ink 70% |
147
- | 标签/分类 | text-sm font-bold uppercase tracking-widest | ink 50% |
148
- | 副标题 | text-lg font-hand | ink 60% |
149
- | 辅助小字 | text-sm font-hand | ink 50% |
150
-
151
- ## Layout
152
-
153
- - 内容容器:max-w-5xl(1024px),px-6;Section 间 space-y-20(80px);页底 pb-20。
154
- - 网格 gap-6~gap-8(24~32px),大组件 gap-12(48px);卡片内边距 p-6 或 p-8 md:p-12。
155
- - 标题、导航或状态区若存在,可使用白色 wobbly 卡片、胶带装饰和轻微旋转;是否固定以及放置位置由实际交互决定。
156
- - 痛点便签、指标卡、功能卡、路线图和黑板区块均是可选视觉组件,不构成固定页面顺序,也不要求为无关内容补齐。
157
- - 响应式按卡片内容和任务优先级减少列数;窄屏避免装饰遮挡文字,并适当缩小内边距。
158
- - 滚动条:宽 12px,轨道 bg 色,滑块 ink 色+3px bg 色边框+20px 圆角。
159
-
160
- ## Elevation & Depth
161
-
162
- 硬阴影三档,全部纯偏移 0 模糊,颜色一律 ink:
163
-
164
- | 档位 | 值 |
165
- |-----|-----|
166
- | small | 2px 2px 0px 0px |
167
- | 标准(hard) | 4px 4px 0px 0px |
168
- | extra-large | 8px 8px 0px 0px |
169
-
170
- 层次感 = 粗墨线边框 + 硬阴影 + 微旋转,不用模糊阴影/渐变。Hover 交互:KPI 卡片上浮(-translate-y-1 → xl 阴影,300ms);列表项右移(translate-x-1,阴影消失,边框变 marker-red);标签 hover:-rotate-2;图标 group-hover rotate-12 或 scale-110;分组标题 hover 变 pen-blue 或 marker-red。
171
-
172
- ## Shapes
173
-
174
- - 卡片圆角一律 wobbly 四组预设轮换(见 frontmatter rounded);标签/tag 同 wobbly-1;圆形徽章全圆;痛点便签 8px(唯一例外)。
175
- - 边框语言:全局卡片 3px 实线 ink;卡片内分区 2px 虚线;列表项 2px 实线;表格行分隔 1px 浅虚线(ink 20%);页脚 4px 粗虚线;痛点便签 2px 虚线(marker-red 或 ink)。
176
- - 装饰元素:透明胶带(absolute -top-3 居中,w-24 h-6,灰 30% 透明+backdrop-blur,rotate-1)、图钉(w-4 h-4 圆点,marker-red 底+2px ink 边)、别针(lucide Pin 图标,fill marker-red,rotate-12,卡片右上角)、圆点背景纹理(radial-gradient,muted 色 1px 点,24px 间距)、黑板纹理(SVG 圆点 pattern,opacity 0.10)、波浪下划线(Section 标题)。
177
- - 动画:transition-all duration-300(卡片)/transition-transform(标签、图标),无入场动画定义。
178
-
179
- ## Components
180
-
181
- 核心组件规格见 frontmatter components(wobbly-card / section-header / kpi-card / feature-card / roadmap-card / chalkboard-block / charts)。补充细节:
182
-
183
- - **WobblyCard**:所有卡片的基座。variant=black 时阴影升级为 extra-large 档。
184
- - **KPI 卡片**:顶部标题(左)+归属标签(右,-rotate-2 白底小标签),中部大数值+单位+删除线旧值+描述,底部虚线分隔迷你条形图。
185
- - **功能卡片**:卡片头 muted 30% 底+虚线下边框,卡片体 p-6 space-y-6,小标题带左侧 accent 圆点标记,列表项左侧 ArrowRight 图标(marker-red,strokeWidth=3)。
186
- - **路线图表格**:表头 font-marker ink 60% 下边框 2px;行 font-hand text-lg,hover 淡黄底;复选框 w-5 h-5 2px ink 边框;负责人标签 muted 30% 底;工时 pen-blue 加粗右对齐。
187
- - **图表(ECharts)**:序列色按 charts.palette 顺序;水平条形用 yAxis category+xAxis value(符合手绘阅读习惯);折线 smooth+areaStyle opacity 0.08;柱状 barWidth 32+不对称圆角(4/10/10/4)+2px ink 描边;饼图环形 40%~65%+2px ink 描边;雷达/散点同样 muted 网格+ink 描边。
188
- - **页脚**:4px 粗虚线上边框,居中引言(font-marker text-3xl,hover:rotate-2),marker-red 20% 圆条下划线装饰,副文字 hand 体 ink 50%。
189
-
190
- ## Do's and Don'ts
191
-
192
- - 微旋转通过 index 奇偶切换正负方向,保持视觉韵律;幅度 ±0.5~2deg,不要超过 3deg。
193
- - 装饰元素(胶带/图钉/别针)是点睛之笔:每个 Section 1~2 处,过度堆砌会削弱自然随意感。
194
- - 扩展新组件时延续 wobbly 圆角预设轮换模式。
195
- - 大面积暖白底中插入黑板反色区块可打断视觉疲劳,建议作对比锚点使用。
196
-
197
- ## Hard Rules
198
-
199
- - 全部文字使用 Kalam(标题)/Patrick Hand(正文)手写体,禁止混入其他无衬线/衬线体(CJK 兜底字体除外)。
200
- - 字体 @import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
201
- - 所有阴影必须纯偏移硬阴影(0 模糊,ink 色),禁止 blur 阴影。
202
- - 卡片圆角必须使用 wobbly 四组预设(rounded.wobbly-1~4)轮换,禁止常规 rounded-* 类(Exceptions 列明的除外)。
203
- - 黑板反色区块每页最多一处。
204
- - 卡片必须带 3px ink 实线边框,禁止无边框卡片。
205
-
206
- ## Exceptions
207
-
208
- - 痛点便签:常规 8px 圆角+2px 虚线边框(marker-red 或 ink),是唯一非 wobbly 圆角卡片。
209
- - 圆形图标徽章/优先级标签/滚动条滑块:全圆或 20px 常规圆角。
210
- - success 绿仅限成功状态图标,不得用于装饰或强调。
211
- - 透明胶带装饰自带 backdrop-blur,是唯一允许的模糊效果(不属于阴影)。
@@ -1,346 +0,0 @@
1
- ---
2
- version: alpha
3
- name: industry
4
- name_zh: 工业图纸
5
- description: 工程图纸风格:冷灰白技术底配单一钢蓝,Barlow Condensed 标题与 Barlow 正文形成压缩对比;卡片、图框和按钮采用直角发丝边框与四角套准标,内容照片双色化为钢蓝。
6
- colors:
7
- bg: "#f2f2f3"
8
- surface: "#e9e9ea"
9
- text: "#1d1f20"
10
- accent: "#5980a6"
11
- accent-dark: "#416180"
12
- accent-deep: "#1d2d3d"
13
- accent-2: "#728fab"
14
- neutral-dark: "#2b2b2d"
15
- typography:
16
- heading:
17
- fontFamily: "'Barlow Condensed', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif"
18
- fontWeight: "600"
19
- lineHeight: "1.12"
20
- body:
21
- fontFamily: "'Barlow', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif"
22
- fontSize: "15px"
23
- lineHeight: "1.55"
24
- h1:
25
- fontSize: "42px"
26
- h2:
27
- fontSize: "32px"
28
- h3:
29
- fontSize: "25px"
30
- spacing:
31
- space-1: "3.4px"
32
- space-2: "6.8px"
33
- space-3: "10.2px"
34
- space-4: "13.6px"
35
- space-6: "20.4px"
36
- space-8: "27.2px"
37
- rounded:
38
- sm: "2px"
39
- md: "4px"
40
- lg: "7px"
41
- components:
42
- blueprint-frame:
43
- border: "1px solid color-mix(in srgb, {colors.text} 16%, transparent)"
44
- borderRadius: "0"
45
- background: "transparent"
46
- description: "四角各带一个由两条 1px 线构成的套准十字标"
47
- primary-button:
48
- background: "{colors.accent}"
49
- color: "{colors.bg}"
50
- border: "1px solid {colors.accent}"
51
- borderRadius: "0"
52
- duotone-image:
53
- description: "图片去饱和后覆盖钢蓝混合层,并与 blueprint-frame 组合"
54
- anchors:
55
- - id: drawing-paper
56
- type: token
57
- desc: 冷灰白图纸底与钢蓝构成单色技术基调
58
- - id: condensed-heading
59
- type: token
60
- desc: 压缩标题与常规宽度正文形成明确对比
61
- - id: blueprint-frame
62
- type: component
63
- desc: 透明直角线框配四角套准十字标
64
- - id: solid-primary-only
65
- type: component
66
- desc: 主按钮是图板上主要的实体钢蓝区域
67
- - id: modular-grid
68
- type: pattern
69
- desc: 内容沿等宽模块网格形成可见的横纵节奏
70
- - id: steel-blue-duotone
71
- type: pattern
72
- desc: 内容照片统一进行钢蓝双色化处理
73
- gaps:
74
- - 原始 styles.css、_ds_bundle.js 与模板资产未随 markdown 提供;接入时需使用来源资产。
75
- - 暗色模式未定义。
76
- exceptions:
77
- - 对话框是带 surface 填充的容器例外。
78
- - 单选按钮保留圆形;主按钮允许实心钢蓝。
79
- - accent-deep 仅可在演示分节页使用大面积色场。
80
- ---
81
-
82
- ## Overview
83
-
84
- 一张工程图纸:冷灰白技术底、钢蓝、压缩标题、模块网格与带四角套准标的透明线框构成主体。
85
-
86
- ## Colors
87
-
88
- 页面使用 {colors.bg} 技术底、{colors.text} 正文和 {colors.accent} 钢蓝;段落级钢蓝文字使用 {colors.accent-dark},大面积 {colors.accent-deep} 仅用于演示分节色场。
89
-
90
- ## Typography
91
-
92
- @import url('https://miaoda.feishu.cn/fonts/css2?family=Barlow:wght@400;500;700&family=Barlow+Condensed:wght@400;600&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
93
-
94
- HARD REQUIREMENT:字体加载与字体族分工禁止替换。标题使用 {typography.heading.fontFamily},正文使用 {typography.body.fontFamily};中文多行标题行高不低于 1.05,正文不低于 1.5,中文负字距归零。
95
-
96
- ## Layout
97
-
98
- 内容沿模块化等宽网格组织,保持清晰的横向与纵向节奏;网格列数与模块顺序根据内容和容器宽度自适应。
99
-
100
- ## Elevation & Depth
101
-
102
- 线稿卡片和图框通常不使用投影;需要层级时仅采用源规格的墨色调柔投影,不自造阴影。
103
-
104
- ## Shapes
105
-
106
- 组件采用直角、发丝边框和完整的四角套准标;图片使用钢蓝双色化包装器,图标统一 1.5 描边。
107
-
108
- ## Components
109
-
110
- 按钮、标签、原生表单、透明卡片、表格、对话框、blueprint 框架与 duotone 图像的精确规格见下方“来源规格”。
111
-
112
- ## Hard Rules
113
-
114
- - 卡片、图框与按钮保持直角;透明卡片和图框保留完整四角套准标。
115
- - 卡片与图框保持透明线稿,主按钮是主要的实体钢蓝区域。
116
- - 标题使用压缩字族,正文使用常规宽度字族。
117
- - 内容照片使用 blueprint + duotone 包装器,图标描边为 1.5。
118
-
119
- ## Exceptions
120
-
121
- - 对话框可使用 surface 填充;单选按钮保留圆形。
122
- - 演示分节页可使用 {colors.accent-deep} 整幅色场。
123
-
124
- ## Source Specification
125
-
126
- 以下内容从用户提供的原始 design.md 原样保留,仅将标题层级下调以纳入 DSM v1 单文件结构。
127
-
128
- ### 一句话定位
129
-
130
- 一张工程图纸。浅色技术底上的钢蓝,Barlow Condensed 标题配 Barlow 正文,模块化网格;卡片、图框、按钮都是**蓝图对象**——直角、发丝边框、四角带 `+` 套准标记。卡片和图框永远保持**透明线稿**;主按钮是图板上唯一的实体——实心钢蓝填充,但直角和角标一样不丢。照片双色化为钢蓝,图标细线。
131
-
132
- ---
133
-
134
- ### 1. 颜色
135
-
136
- #### 基础角色
137
-
138
- | Token | 值 | 用途 |
139
- | --- | --- | --- |
140
- | `--color-bg` | `#f2f2f3` | 图纸底(冷灰白) |
141
- | `--color-surface` | `#e9e9ea` | 仅 `.input` / `.dialog` 用(卡片**不用**它) |
142
- | `--color-text` | `#1d1f20` | 正文墨色 |
143
- | `--color-accent` | `#5980a6` | 钢蓝,唯一强调色 |
144
- | `--color-accent-2` | `#728fab` | 机器派生占位,视作与 accent 同一角色 |
145
- | `--color-divider` | `text` 16% 混合 | 所有发丝边框和分隔 |
146
-
147
- **单色方案**:没有第二强调色。`accent-2` 的整条色阶存在只为让两组变量都能解析——`.tag-accent-2` 看起来和 `.tag-accent` 基本一样。
148
-
149
- #### 色阶(OKLCH 同一感知明度轴,同 step 视觉重量一致)
150
-
151
- **Neutral** `#f5f5f8` · `#e7e7ea` · `#d4d4d7` · `#b7b7ba` · `#98989b` · `#7a7a7d` · `#5d5d60` · `#424244` · `#2b2b2d`
152
-
153
- **Accent** `#eef6ff` · `#d6ebff` · `#b5d9fd` · `#94bce3` · `#749dc4` · `#597ea3` · `#416180` · `#2c455d` · `#1d2d3d`
154
-
155
- **Accent-2(占位)** `#eef6ff` · `#d6ebff` · `#bdd8f2` · `#9ebbd8` · `#7e9cb8` · `#627d98` · `#486077` · `#314457` · `#1f2d3a`
156
-
157
- 用法规则:
158
- - 100–300 → 浅色填充、hover 底、细边框
159
- - 500 → 该角色基准
160
- - 700–900 → 浅色填充上的文字、按下态
161
- - 优先取色阶 step,不要临时 `color-mix()`
162
-
163
- #### `--color-accent-900` 的特权
164
-
165
- `#1d2d3d` 可以铺**整幅色场**——deck 的分节页就用它:钢蓝作地,文字反白成纸色。这是唯一允许大面积上色的地方。(landing 的数字改走「画出来的规格牌」,落在纸底上,是另一套语法,不是色场。)
166
-
167
- #### 对比度红线
168
-
169
- accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**不够正文**。段落级钢蓝文字必须用 `--color-accent-700`(`#416180`)。
170
-
171
- ---
172
-
173
- ### 2. 字体
174
-
175
- | Token | 值 |
176
- | --- | --- |
177
- | `--font-heading` | `"Barlow Condensed", system-ui, sans-serif` |
178
- | `--font-heading-weight` | `600` |
179
- | `--font-body` | `"Barlow", system-ui, sans-serif` |
180
-
181
- 从 Google Fonts 载入:`Barlow:wght@400;500;700` + `Barlow+Condensed:wght@400;600`
182
-
183
- **标题压缩、正文不压缩** —— 这是本系统最容易被做错的一条:全篇都用 Condensed 就毁了对比。
184
-
185
- #### 字号阶梯
186
-
187
- | 元素 | 字号 | 备注 |
188
- | --- | --- | --- |
189
- | h1 | 42px | line-height 1.12,letter-spacing −0.015em |
190
- | h2 | 32px | 同上 |
191
- | h3 | 25px | 同上 |
192
- | h4 | 20px | 同上 |
193
- | h5 | 16px | 同上 |
194
- | h6 | 13px | **全大写**,letter-spacing 0.08em |
195
- | body | 15px | line-height 1.55,weight 400 |
196
- | figcaption | 11px | text 55% |
197
- | `.card-title` | 17px | heading 族 600 |
198
- | `.card-kicker` | 10px | 大写,ls 0.1em,钢蓝 |
199
- | `.btn` / `.input` | 14px | 刻意同字号——注册行里两者并排 |
200
- | `.tag` | 11px | |
201
- | `.table th` | 11px | 大写,ls 0.08em,text 60% |
202
- | `.dialog-title` | 20px | |
203
-
204
- ---
205
-
206
- ### 3. 间距与圆角
207
-
208
- 密度 **0.85×**(偏紧,已烘进变量):
209
-
210
- ```
211
- --space-1: 3.4px --space-2: 6.8px --space-3: 10.2px
212
- --space-4: 13.6px --space-6: 20.4px --space-8: 27.2px
213
- ```
214
-
215
- 圆角 token:`--radius-sm: 2px` / `--radius-md: 4px` / `--radius-lg: 7px`
216
-
217
- **但组件层把它们全部覆盖掉了** —— 样式表末尾:
218
-
219
- ```css
220
- .card, .btn, .input, .tag, .seg, .dialog { border-radius: 0; }
221
- .card, .dialog { background: transparent; border: 1px solid var(--color-divider); }
222
- .btn { border: 1px solid var(--color-divider); }
223
- .btn-primary { border-color: var(--color-accent); }
224
- ```
225
-
226
- 所以实际渲染出来**全部是直角**。radius 变量只对你自己写的元素有意义,组件一律方角。
227
-
228
- ### 4. 阴影
229
-
230
- ```
231
- --shadow-sm: 0 1px 2px (#2b2b2d 14%)
232
- --shadow-md: 0 3px 10px (#2b2b2d 16%)
233
- --shadow-lg: 0 12px 32px (#2b2b2d 22%)
234
- ```
235
-
236
- 工具类 `.elev-sm / -md / -lg`。但线稿系统里阴影用得极少——透明卡片配投影是矛盾的,谨慎使用。不要自造 box-shadow。
237
-
238
- ---
239
-
240
- ### 5. 蓝图框架(本系统的核心标识)
241
-
242
- ```html
243
- <div class="card blueprint">
244
- <i class="corner tl"></i><i class="corner tr"></i>
245
- <i class="corner bl"></i><i class="corner br"></i>
246
- …
247
- </div>
248
- ```
249
-
250
- `.blueprint` = `position: relative` + 1px `--color-divider` 边 + `border-radius: 0`。
251
-
252
- 四个 `.corner` 是 11×11px 的十字标,用 `::before`(1px 竖线)+ `::after`(1px 横线)画出,颜色是 `text` 55%,定位在框外 −6px 处。
253
-
254
- **注意**:`.blueprint` 与图像处理类(`.halftone` / `.plate` / `.duotone`)共用一个包装器时,样式表强制 `overflow: visible`——因为角标画在盒子外面,框必须赢过图像裁剪。
255
-
256
- **绝不许从已加框元素上去掉套准标记。** 四个都要,少一个就破了语法。
257
-
258
- ### 6. 图像处理
259
-
260
- ```html
261
- <figure class="blueprint duotone">
262
- <i class="corner tl"></i>…
263
- <img src="…">
264
- </figure>
265
- ```
266
-
267
- `.duotone` = `position: relative; overflow: hidden` + 一层 `::after` 铺满 `--color-accent`,`mix-blend-mode: color`。效果是照片去饱和后被钢蓝洗过一遍,像跟着主题重新上色的丝网印。
268
-
269
- **所有内容照片都必须过这个包装器。** 图和图框跟卡片同样待遇:方角、发丝边、带角标,永不圆角、永不裁切成异形。
270
-
271
- ### 7. 组件
272
-
273
- | 类名 | 说明 |
274
- | --- | --- |
275
- | `.btn` + `.btn-primary / -secondary / -ghost / -icon / -block` | 全部方角带边。primary 是实心钢蓝 + 钢蓝边 + 纸色字(图板上唯一实体);ghost 边框透明;`.btn-icon` 36×36;字体 heading 族 600 / 14px |
276
- | `.tag` + `.tag-accent / -accent-2 / -neutral / -outline` | 方角小标签(100 底 + 800 字)。单色调色板下 accent-2 与 accent 观感相同 |
277
- | `.field` + `label` / `.input` / `.radio` + `.dot` / `.seg` + `.seg-opt` | 原生元素表单,无脚本。`.input` 36px 高、surface 底、方角、caret 钢蓝 |
278
- | `.card` + `.card-kicker / -title / -body / -meta` | **透明**、发丝边、方角;配 `.blueprint` + 四角标使用。`.elev-sm/md/lg` 可选高度 |
279
- | `.nav` + `.nav-brand` | 顶栏,`border-bottom: none` |
280
- | `.table` | 大写细字表头 + 8% 墨行线,hover 行底 4% |
281
- | `.dialog-backdrop` + `.dialog`(`-title / -body / -actions`) | 背景 `neutral-900` 50%;对话框 `min(440px, 100%)`、方角、**surface 填充 + 发丝边**(唯一带填充的容器例外) |
282
- | `.hr` | 1px 细线,存在但本系统偏好留白——**避免使用** |
283
- | `.blueprint` + 四个 `.corner` | 上面第 5 节 |
284
- | `.duotone` | 上面第 6 节 |
285
- | `.text-muted` | text 55% |
286
-
287
- #### 交互态(已内建,不要逐页重写)
288
-
289
- - `.btn-primary` hover → `--color-accent-600`;active → `--color-accent-700`
290
- - `.btn-secondary` hover → text 7%;active → 14%
291
- - `.btn-ghost` hover → 钢蓝 10%;active → 18%
292
- - `.input:hover` → 边框 text 45%;`:focus-visible` → 钢蓝边框,`outline-offset: 0`
293
- - `.radio input:checked + .dot` → 钢蓝填充 + `inset 0 0 0 4px var(--color-bg)` 做内圈(这里是圆的——radio 保留 `border-radius: 50%`)
294
- - `.seg-opt:has(input:checked)` → 钢蓝底 + 纸色字
295
- - 键盘焦点:`:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px }`
296
- - `::selection` → 钢蓝 30%
297
- - disabled → `opacity: 0.45` + `cursor: not-allowed`
298
- - `a` → 钢蓝,`text-underline-offset: 3px`;`.nav a:hover` / `[aria-current=page]` → 钢蓝
299
-
300
- ### 8. 图标
301
-
302
- Lucide(lucide.dev),**统一 stroke-width 1.5**。不许用粗描边。
303
-
304
- ### 9. 布局方向
305
-
306
- 模块化网格:内容放进**等宽单元格**,强横向与纵向节奏,结构可见。别把它做成流动的、居中的、卡片浮起的常规网页——它是图板。
307
-
308
- ---
309
-
310
- ### 禁止清单
311
-
312
- 1. 给卡片、图框、按钮加圆角
313
- 2. 给卡片或图框加填充底(它们是线稿;实心 accent 主按钮是唯一刻意的例外)
314
- 3. 从已加框元素上去掉套准标记
315
- 4. 粗描边图标(Lucide 固定 1.5)
316
- 5. 钢蓝之外的装饰色(唯一放行:`--color-accent-900` 在 deck 分节页铺整幅)
317
- 6. 正文用 `--color-accent` 本值(要用 `-700`)
318
- 7. 正文也用 Barlow Condensed
319
- 8. `.hr` 当主要分隔手段
320
- 9. 硬编码 hex / 字体名 / px(token 里已有的)
321
-
322
- ### 接入方式
323
-
324
- ```html
325
- <helmet>
326
- <link rel="stylesheet" href="_ds/industry-7eb0c315-f7e5-4fe7-9873-401826ed322b/styles.css">
327
- <script src="_ds/industry-7eb0c315-f7e5-4fe7-9873-401826ed322b/_ds_bundle.js"></script>
328
- </helmet>
329
- ```
330
-
331
- 组件直接在模板里挂载:
332
-
333
- ```html
334
- <x-import component-from-global-scope="Industry_indust.Button" hint-size="auto,40px">Label</x-import>
335
- ```
336
-
337
- ### 可用模板
338
-
339
- - `templates/deck/` —— 21 页演示起点:封面、目录、分节页、分栏、四宫格、数据表、SVG 图表与时间轴、出血图、引言、结尾
340
- - `templates/landing/` —— 单页产品落地页(虚构产品 Holdfast,紧固件目录):压缩字 hero、编号规格牌、线框单元格、双色照片
341
- - `assets/photo.jpg` —— 图像处理页用的参考照片
342
-
343
- ## Do's and Don'ts
344
-
345
- - Do:按上述 token 与签名组件实现视觉语言,并根据用户内容组织信息。
346
- - Don't:不要为套用示例而改变用户内容的业务语义。