@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
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: warm-elegance
|
|
4
|
-
name_zh: 暖调精致
|
|
5
|
-
description: 暖调精致风——暖米/暖灰/暖黄三色渐变页面背景上叠放白色超圆角(32px)卡片,黄色(#FACC15)作为唯一强调色点缀 CTA/活跃态/装饰细节;深色反转区(#2D2D2D)与嵌入深色卡片(#1A1A1A)形成视觉对比层,纤细 pill 型 CSS 柱图/环形进度指示器(border trick)/线性进度条构成数据可视化语言,灰度高对比人物头像(仅内容涉及具体人物时)配渐变遮罩与磨砂玻璃标签点缀。温暖、安心、掌控感。
|
|
6
|
-
colors:
|
|
7
|
-
background: "#FCF4D3"
|
|
8
|
-
page-gradient: "linear-gradient(to bottom right, rgba(228,229,230,0.6), rgba(250,237,182,0.6), rgba(243,232,203,0.6))"
|
|
9
|
-
card: "#FFFFFF"
|
|
10
|
-
surface-dark: "#2D2D2D"
|
|
11
|
-
surface-embed: "#1A1A1A"
|
|
12
|
-
foreground: "#1E293B"
|
|
13
|
-
muted-foreground: "#9CA3AF"
|
|
14
|
-
text-dim: "#64748B"
|
|
15
|
-
text-body: "#6B7280"
|
|
16
|
-
primary: "#FACC15"
|
|
17
|
-
border: "#F3F4F6"
|
|
18
|
-
positive: "rgb(90,173,112)"
|
|
19
|
-
danger: "#EF4444"
|
|
20
|
-
orange: "#F97316"
|
|
21
|
-
typography:
|
|
22
|
-
body:
|
|
23
|
-
fontFamily: 'Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif'
|
|
24
|
-
fontWeight: [300, 400, 500, 600, 700]
|
|
25
|
-
usage: 全局唯一字体,覆盖所有文字层级
|
|
26
|
-
rounded:
|
|
27
|
-
card: "2rem(32px)"
|
|
28
|
-
embed: "1.5rem(24px)"
|
|
29
|
-
icon-lg: "1rem(16px)"
|
|
30
|
-
icon: "0.75rem(12px)"
|
|
31
|
-
pill: 9999px
|
|
32
|
-
spacing:
|
|
33
|
-
content-px: "1rem~2rem(p-4 md:p-8)"
|
|
34
|
-
grid-gap: "1.5rem(24px)"
|
|
35
|
-
section-gap: "2rem~2.5rem(mb-8/mb-10)"
|
|
36
|
-
card-padding: "1.5rem(p-6)"
|
|
37
|
-
goal-gap: "3rem(space-y-12)"
|
|
38
|
-
components:
|
|
39
|
-
primary-card:
|
|
40
|
-
background: "{colors.card}"
|
|
41
|
-
padding: "1.5rem(p-6)"
|
|
42
|
-
borderRadius: "{rounded.card}"
|
|
43
|
-
boxShadow: "shadow-sm,hover=>shadow-md"
|
|
44
|
-
border: "1px solid {colors.border}"
|
|
45
|
-
dark-sidebar:
|
|
46
|
-
background: "{colors.surface-dark}"
|
|
47
|
-
padding: "2rem(p-8)"
|
|
48
|
-
borderRadius: "{rounded.card}"
|
|
49
|
-
boxShadow: shadow-2xl
|
|
50
|
-
decoration: "两处 blur 装饰光晕(左上 80px 白 5%透明/右下 60px 黄 10%透明)"
|
|
51
|
-
embed-card:
|
|
52
|
-
background: "{colors.surface-embed}"
|
|
53
|
-
padding: "1.25rem(p-5)"
|
|
54
|
-
borderRadius: "{rounded.embed}"
|
|
55
|
-
boxShadow: shadow-lg
|
|
56
|
-
hover: "-translate-y-1"
|
|
57
|
-
avatar-card:
|
|
58
|
-
usage: "仅当内容本身涉及具体人物(团队/专访/员工画像)时使用,禁止装饰性占位"
|
|
59
|
-
image: "grayscale contrast-125,group-hover:scale-110 duration-1000"
|
|
60
|
-
mask: "bg-linear-to-t from-black/80 via-transparent to-transparent"
|
|
61
|
-
status-tag: "磨砂玻璃 bg-white/10 backdrop-blur-md border-white/20,配 {colors.positive} 脉冲点"
|
|
62
|
-
value-pill: "border-white/40 bg-white/5 backdrop-blur-xl rounded-2xl"
|
|
63
|
-
progress-bar:
|
|
64
|
-
light: "h-1 bg-slate-50 rounded-full,填充色 {colors.primary}/slate-800/slate-300"
|
|
65
|
-
dark: "h-1.5 bg-white/10 rounded-full,填充色 {colors.primary}/white 40%透明/{colors.positive}/{colors.danger}(风险severity场景)"
|
|
66
|
-
charts:
|
|
67
|
-
palette: "{colors.primary} {colors.foreground} #94A3B8 {colors.positive} {colors.danger}"
|
|
68
|
-
bar: "barWidth 12,pill 全圆角[6,6,6,6],默认 #E2E8F0,emphasis {colors.primary}+黄色光晕阴影 shadowBlur 15"
|
|
69
|
-
pie: "环形 radius 60%~75%,padAngle 3,itemStyle 圆角 4,配色 primary/foreground/#CBD5E1"
|
|
70
|
-
line: "线宽 2px,主序列 {colors.primary},辅助序列 {colors.muted-foreground}/{colors.text-dim},极简 symbol(直径4px)或无 symbol,区域填充可选 {colors.primary} 8%透明渐变"
|
|
71
|
-
radar: "轴线 {colors.border} 细线,填充 {colors.primary}/{colors.positive} 半透明(opacity 0.15~0.2),圆点 symbol 4px,多序列取色顺序同 charts.palette"
|
|
72
|
-
tooltip: "白底,1px {colors.border} 边框,圆角 16px,box-shadow 0 4px 6px -1px rgba(0,0,0,0.1)"
|
|
73
|
-
axis: "隐藏轴线与刻度,标签 {colors.muted-foreground} 9px,网格线虚线 {colors.border} 或全隐藏——此克制原则适用于 bar/pie/line/radar 所有图表类型,禁止 ECharts 默认粗轴线/灰色网格"
|
|
74
|
-
legend: "底部,{colors.muted-foreground} 11px,圆点 icon 8×8"
|
|
75
|
-
anchors:
|
|
76
|
-
- id: warm-gradient-bg
|
|
77
|
-
type: token
|
|
78
|
-
desc: 三色暖调 linear-gradient 页面背景(见 colors.page-gradient),奶油/暖灰/暖黄混合 0.6 透明度叠加
|
|
79
|
-
- id: super-rounded-card
|
|
80
|
-
type: token
|
|
81
|
-
desc: 白色卡片一律超圆角(见 rounded.card),嵌入深色卡片圆角略小一档(见 rounded.embed)
|
|
82
|
-
- id: accent-yellow-single
|
|
83
|
-
type: token
|
|
84
|
-
desc: 黄色(colors.primary)是全局唯一强调色,仅用于 CTA/活跃态/装饰细节,不作大面积底色
|
|
85
|
-
- id: dark-inversion-zone
|
|
86
|
-
type: component
|
|
87
|
-
desc: 深色侧边栏(surface-dark)+嵌入深色卡片(surface-embed)在浅色主体旁形成反转对比层
|
|
88
|
-
- id: pill-bar-progress
|
|
89
|
-
type: pattern
|
|
90
|
-
desc: 纤细 pill 型 CSS 柱图/线性进度条/环形指示器(border trick)构成数据可视化语言,非常规图表外观
|
|
91
|
-
- id: grayscale-avatar
|
|
92
|
-
type: component
|
|
93
|
-
desc: 人物头像灰度高对比处理(grayscale contrast-125)配渐变遮罩与磨砂玻璃标签——仅当内容本身涉及具体人物(团队/专访/员工画像)时使用,禁止装饰性占位
|
|
94
|
-
gaps:
|
|
95
|
-
- "无暗色模式(dark mode)整体主题切换定义,深色区域为固定局部反转区而非可切换主题"
|
|
96
|
-
- "无表单控件(input/select/checkbox 等)规范"
|
|
97
|
-
exceptions:
|
|
98
|
-
- 嵌入式深色卡片圆角用 rounded.embed(24px),不与主卡片 rounded.card(32px)统一
|
|
99
|
-
- 图标容器/列表按钮圆角用 rounded-xl(12px)/rounded-2xl(16px),小于卡片超圆角档位
|
|
100
|
-
- Logo/CTA 按钮/头像/环形指示器一律全圆(rounded.pill),不遵循超圆角档位
|
|
101
|
-
- 内容量较大时可纵向分 section,每段列数与比例按内容关系确定,并保持卡片圆角、深色反转区和强调色语言
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Overview
|
|
105
|
-
|
|
106
|
-
暖调精致风,三色暖调渐变(奶油/暖灰/暖黄各 0.6 透明度)铺满页面背景,承托白色超圆角(32px)卡片构成主内容区,黄色(colors.primary)作为唯一强调色点亮 CTA、活跃态与装饰细节。深色反转区(colors.surface-dark)与嵌入式深色卡片(colors.surface-embed)在浅色主体旁形成层次对比,营造精致感。数据可视化采用纤细 pill 型 CSS 柱图、环形进度指示器(border trick)与线性进度条,替代传统图表语言;人物头像做灰度高对比处理配渐变遮罩,磨砂玻璃标签点缀细节。页面结构由内容决定。情绪基调:温暖、安心、掌控感。
|
|
107
|
-
|
|
108
|
-
## Colors
|
|
109
|
-
|
|
110
|
-
| 角色 | 值 | 用法 |
|
|
111
|
-
|-----|-----|-----|
|
|
112
|
-
| background | {colors.background} | 渐变中段暖黄叠在白底上的单色,作画布底色;页面背景本身用 page-gradient |
|
|
113
|
-
| page-gradient | {colors.page-gradient} | 页面暖调渐变背景 |
|
|
114
|
-
| card | {colors.card} | 白色卡片底 |
|
|
115
|
-
| surface-dark | {colors.surface-dark} | 深色反转侧边栏 |
|
|
116
|
-
| surface-embed | {colors.surface-embed} | 嵌入式深色卡片 |
|
|
117
|
-
| foreground | {colors.foreground} | 主要文字 |
|
|
118
|
-
| muted-foreground | {colors.muted-foreground} | 次要文字、全大写标签 |
|
|
119
|
-
| text-dim | {colors.text-dim} | 辅助标签(如进度条数值说明) |
|
|
120
|
-
| text-body | {colors.text-body} | 正文默认颜色,比 text-dim 更浅 |
|
|
121
|
-
| primary | {colors.primary} | 黄色强调:CTA、活跃态、装饰、图表高亮 |
|
|
122
|
-
| border | {colors.border} | 白色卡片浅边框 |
|
|
123
|
-
| positive | {colors.positive} | 正向/安全状态、脉冲点、深色区进度填充 |
|
|
124
|
-
| danger | {colors.danger} | 紧急/告警标签、图表告警序列色、深色区风险进度填充 |
|
|
125
|
-
| orange | {colors.orange} | 数值高亮变体色(Tailwind orange-500 标准值) |
|
|
126
|
-
|
|
127
|
-
## Typography
|
|
128
|
-
|
|
129
|
-
全局样式首行原样写入(HARD REQUIREMENT,禁止替换):
|
|
130
|
-
|
|
131
|
-
```css
|
|
132
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
133
|
-
body { font-family: 'Inter', sans-serif; }
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
唯一字体:**Inter**(拉丁无衬线体,fontFamily 已追加 CJK 兜底 PingFang SC/Microsoft YaHei/Noto Sans SC,系统字体无需 @import)。
|
|
137
|
-
|
|
138
|
-
| 层级 | 样式(Tailwind) | 颜色 |
|
|
139
|
-
|-----|-----|-----|
|
|
140
|
-
| 页面大标题 | text-4xl font-semibold tracking-tight | foreground |
|
|
141
|
-
| 大数值 KPI | text-4xl font-light tracking-tight | foreground / positive / orange |
|
|
142
|
-
| 卡片标题 | font-bold tracking-tight | foreground |
|
|
143
|
-
| 卡片副标题 | text-xl font-bold | foreground |
|
|
144
|
-
| 全大写标签 | text-[10px] font-bold uppercase tracking-widest | muted-foreground |
|
|
145
|
-
| 斜体标签 | text-[10px] italic uppercase tracking-[0.2em] | muted-foreground |
|
|
146
|
-
| 正文 | text-sm | {colors.text-body} |
|
|
147
|
-
| 数据值 | text-sm font-mono font-bold tracking-tight | foreground |
|
|
148
|
-
| 小标签 | text-[9px]/text-[8px] font-bold uppercase | 按语境变化 |
|
|
149
|
-
| 深色区标题 | text-2xl font-bold italic tracking-tighter | 白 #FFFFFF |
|
|
150
|
-
| 深色区进度 | text-3xl font-light font-mono opacity-50 | 白 #FFFFFF |
|
|
151
|
-
|
|
152
|
-
## Layout
|
|
153
|
-
|
|
154
|
-
- 内容容器:p-4 md:p-8,全宽响应式(无 max-width)。
|
|
155
|
-
- 可选品牌标识区:左上 Logo pill(bg-black text-white px-5 py-2 rounded-full font-bold text-xl tracking-tighter + 黄色图标 + shadow-lg shadow-black/10);右上仅放报告元信息文字(日期/版本/来源),不放搜索/通知/用户头像等应用操作控件。
|
|
156
|
-
- 可用非对称卡片组合制造主次层级,列数、比例、顺序和深色反转区的位置均按内容关系确定。
|
|
157
|
-
- 内容量较大时纵向分 section,深色反转区可作为段内卡片、横向强调区或侧边区域,不要求贯穿全高。
|
|
158
|
-
- Section 间距 mb-8/mb-10(32~40px)。
|
|
159
|
-
- 响应式按内容优先级减少列数,窄屏避免深色区挤压主内容,内容容器从 p-8 收敛至 p-4。
|
|
160
|
-
|
|
161
|
-
## Elevation & Depth
|
|
162
|
-
|
|
163
|
-
| 元素 | 值 |
|
|
164
|
-
|-----|-----|
|
|
165
|
-
| 白色卡片 | shadow-sm,hover => shadow-md |
|
|
166
|
-
| 深色侧边区 | shadow-2xl |
|
|
167
|
-
| Logo | shadow-lg shadow-black/10 |
|
|
168
|
-
| 嵌入深色卡片 | shadow-lg,hover:-translate-y-1 |
|
|
169
|
-
| 活跃柱体黄色光晕 | shadow-[0_0_15px_rgba(250,204,21,0.4)] |
|
|
170
|
-
| 状态脉冲点绿色光晕 | shadow-[0_0_8px_rgba(90,173,112,0.8)] |
|
|
171
|
-
|
|
172
|
-
层次感 = 极轻阴影(浅色区)+ 深色实心反转(深色区)+ 局部发光阴影(强调态),不用硬偏移阴影。Hover 交互:白色卡片阴影增强;嵌入深色卡片上移;图片 group-hover:scale-110(1000ms);图标 group-hover 变黄底黑字(500ms);文字 group-hover 变黄;tracking 展开 group-hover:tracking-[0.25em];按钮 active:scale-95。
|
|
173
|
-
|
|
174
|
-
## Shapes
|
|
175
|
-
|
|
176
|
-
- 圆角档位:主卡片 {rounded.card}(32px)、嵌入卡片 {rounded.embed}(24px)、图标容器 {rounded.icon}(12px)/{rounded.icon-lg}(16px)、Logo/CTA/头像/环形指示器全圆 {rounded.pill}。
|
|
177
|
-
- 边框语言:白色卡片 1px {colors.border}(近乎不可见);深色区域 border-white/10 或 border-dashed border-white/20;列表分隔 border-dashed border-gray-200。
|
|
178
|
-
- 装饰元素:磨砂玻璃标签(backdrop-blur-md border border-white/20 bg-white/10);装饰光晕(blur-[80px] bg-white/5 左上 + blur-[60px] bg-primary/10 右下);灰度头像(grayscale contrast-125);渐变遮罩(bg-linear-to-t from-black/80 via-transparent to-transparent);脉冲动画(animate-pulse 状态点)。
|
|
179
|
-
- 环形进度指示器用边框技巧实现:border-[10px] border-primary border-r-transparent rotate-45。
|
|
180
|
-
|
|
181
|
-
## Components
|
|
182
|
-
|
|
183
|
-
核心组件规格见 frontmatter components(primary-card / dark-sidebar / embed-card / avatar-card / progress-bar / charts)。补充细节:
|
|
184
|
-
|
|
185
|
-
- **品牌标识(可选)**:Logo pill(bg-black text-white px-5 py-2 rounded-full font-bold text-xl tracking-tighter + 黄色图标 + shadow-lg shadow-black/10);右上仅放报告元信息文字(日期/版本/来源),不放搜索/通知/用户头像等应用操作控件。
|
|
186
|
-
- **人物头像卡片(仅内容涉及具体人物时使用,禁装饰性占位)**:图片容器 rounded-2xl aspect-[4/5];状态标签左上(磨砂玻璃+{colors.positive} 脉冲点);底部信息 flex justify-between(白色名称 text-2xl + 标签 opacity-70 + 数值 pill 磨砂玻璃 rounded-2xl)。
|
|
187
|
-
- **列表卡片**:标题 italic underline decoration-primary;告警标签 bg-red-50 text-red-500 rounded-full;列表项图标 bg-slate-50 rounded-xl(group-hover:bg-yellow-50);分隔线 hr border-dashed;底部按钮 rounded-2xl border border-slate-100。
|
|
188
|
-
- **柱状图卡片(CSS)**:标题行圆点(w-2 h-2 bg-primary rounded-full)+ ArrowUpRight 图标;柱体区 flex items-end h-32;柱体 max-w-[12px] rounded-full,默认 bg-slate-100,活跃 bg-primary + 黄色光晕 + scale-x-110。
|
|
189
|
-
- **日历卡片**:星期头 grid-cols-7 text-slate-300;日期格 w-10 h-10 rounded-xl,活跃日 bg-black text-white ring-4 ring-black/5 scale-110;标记点 absolute -bottom-1(活跃=primary,默认=slate-300)。
|
|
190
|
-
- **深色侧边栏目标项**:图标 bg-white/10 rounded-xl(group-hover:bg-white/20);百分比 >50%=primary,<=50%=white/40,风险severity场景改用 danger 填充(如"高危"红色进度条);进度条填充 primary/white-40%/positive/danger;间距 space-y-12;底部 CTA 图标 group-hover:rotate-12,文字 group-hover:tracking-[0.25em]。
|
|
191
|
-
- **图表(ECharts)**:序列色按 charts.palette 顺序;bar 为纤细 pill 型(barWidth 12,全圆角);pie 为环形(60%~75%);line/radar 规格见 frontmatter components.charts,一律去除默认粗轴线与灰色网格,风格与 bar/pie 保持一致克制;tooltip/axis/legend 规格见 frontmatter components.charts。
|
|
192
|
-
|
|
193
|
-
## Do's and Don'ts
|
|
194
|
-
|
|
195
|
-
- 优先使用设计系统定义的配色变量({colors.primary}/{colors.surface-dark}/{colors.positive} 等),通过透明度与渐变产生层次,保持整体暖色调统一感。
|
|
196
|
-
- 数据可视化统一用 ECharts 配合 charts 主题配置,让图表在色彩与圆角上与卡片、进度条等 CSS 组件保持一致,包括 line/radar 等非 bar/pie 图表。
|
|
197
|
-
- 保持浅色暖底与深色反转区的对比节奏,用超圆角(32px/24px)与极轻阴影营造柔和、精致的卡片层次。
|
|
198
|
-
- 响应式断点内间距可微调;卡片内条目数量可增减;日历月份、进度条/百分比数值均可动态化。
|
|
199
|
-
- 不要让黄色强调色覆盖大面积底色,仅用于点状/线状/CTA 场景。
|
|
200
|
-
|
|
201
|
-
## Hard Rules
|
|
202
|
-
|
|
203
|
-
- 页面背景必须为三色暖调 linear-gradient({colors.page-gradient}),禁止替换为纯色或其他色系渐变。
|
|
204
|
-
- 主卡片圆角必须为 {rounded.card}(32px),禁止使用常规 rounded-lg/rounded-xl 等更小圆角(Exceptions 列明的除外)。
|
|
205
|
-
- 强调色必须为 {colors.primary}(#FACC15),且为全局唯一强调色,不得引入第二强调色。
|
|
206
|
-
- 页面应保留至少一处深色反转区({colors.surface-dark})或嵌入深色卡片({colors.surface-embed})作为对比锚点;形态和位置按内容决定。
|
|
207
|
-
- 字体必须为 Inter,@import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
|
|
208
|
-
- 任何图表(bar/pie/line/radar)必须遵循 charts 规格去除 ECharts 默认粗轴线与灰色网格,禁止使用未经处理的默认样式。
|
|
209
|
-
|
|
210
|
-
## Exceptions
|
|
211
|
-
|
|
212
|
-
- 嵌入式深色卡片圆角用 {rounded.embed}(24px),不与主卡片 {rounded.card}(32px)统一。
|
|
213
|
-
- 图标容器/列表按钮圆角用 {rounded.icon}(12px)/{rounded.icon-lg}(16px),小于卡片超圆角档位。
|
|
214
|
-
- Logo/CTA 按钮/头像/环形指示器一律全圆({rounded.pill}),不遵循超圆角档位。
|
|
215
|
-
- 透明胶带式磨砂玻璃标签自带 backdrop-blur,是允许的模糊效果(不属于阴影)。
|
|
216
|
-
- 长内容允许纵向分 section,每段内部按内容关系自适应排列,并保持卡片圆角、深色反转区和强调色语言。
|
|
217
|
-
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
version: alpha
|
|
3
|
-
name: wild-orange
|
|
4
|
-
name_zh: 橙色野性
|
|
5
|
-
description: 野性主义(Brutalist)×包豪斯几何×杂志编辑排版。纯白画布上黑色粗边框(2-4px)构建骨架,硬偏移阴影(4px/8px,零模糊)强化层次,橙色作为唯一暖色强调锚点,严格黑白橙三色配色。零圆角方形卡片(完全圆形徽章/头像除外),标题无衬线粗体大写,斜体衬线(Playfair Display)点缀装饰文字与数值,几何装饰圆呼应包豪斯语言。情绪基调:自信、大胆、现代。
|
|
6
|
-
colors:
|
|
7
|
-
background: "#ffffff"
|
|
8
|
-
card: "#ffffff"
|
|
9
|
-
header: "#ff6600"
|
|
10
|
-
foreground: "#000000"
|
|
11
|
-
muted-foreground: "#666666"
|
|
12
|
-
primary: "#ff6600"
|
|
13
|
-
accent: "#ffd1b3"
|
|
14
|
-
border: "#000000"
|
|
15
|
-
gray-state: "#999999"
|
|
16
|
-
typography:
|
|
17
|
-
heading-body:
|
|
18
|
-
fontFamily: 'Space Grotesk, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif'
|
|
19
|
-
fontWeight: 500
|
|
20
|
-
usage: 全局无衬线字体(标题/正文/标签/图表文字),标题额外 font-bold(700)+uppercase
|
|
21
|
-
decorative:
|
|
22
|
-
fontFamily: '"Playfair Display", serif'
|
|
23
|
-
fontStyle: italic
|
|
24
|
-
usage: 装饰性文字/副标题/信息卡片(小)数值,斜体点缀,不用于长正文
|
|
25
|
-
rounded:
|
|
26
|
-
card: 0px
|
|
27
|
-
full: 9999px
|
|
28
|
-
spacing:
|
|
29
|
-
page-px: "16px~32px(px-4 sm:px-6 lg:px-8)"
|
|
30
|
-
section-gap: 48px
|
|
31
|
-
card-padding: 24px
|
|
32
|
-
header-padding: "32px~64px(p-8 lg:p-16)"
|
|
33
|
-
component-gap: "16px/32px(gap-4/gap-8)"
|
|
34
|
-
components:
|
|
35
|
-
brutal-card:
|
|
36
|
-
background: "{colors.card}"
|
|
37
|
-
border: "2px solid {colors.border}"
|
|
38
|
-
borderRadius: "{rounded.card}"
|
|
39
|
-
boxShadow: "4px 4px 0px 0px {colors.border}"
|
|
40
|
-
padding: "{spacing.card-padding}"
|
|
41
|
-
hover: "transform translate(2px,2px);boxShadow 收缩至 2px 2px 0px 0px {colors.border};transition all 0.2s ease"
|
|
42
|
-
header-banner:
|
|
43
|
-
background: "{colors.primary}"
|
|
44
|
-
border: "4px solid {colors.border}"
|
|
45
|
-
boxShadow: "8px 8px 0px 0px {colors.border}"
|
|
46
|
-
padding: "{spacing.header-padding}"
|
|
47
|
-
decoration: "几何装饰圆(absolute rounded-full border-2 border-black opacity-20,大圆/小圆两档)+黑底状态卡片"
|
|
48
|
-
navigation:
|
|
49
|
-
background: "{colors.card}"
|
|
50
|
-
borderBottom: "2px solid {colors.border}"
|
|
51
|
-
height: 64px
|
|
52
|
-
logo: "{colors.border}底,32×32,白字加粗"
|
|
53
|
-
versionBadge: "{rounded.full},{colors.primary}底,border 1px {colors.border},文字加粗"
|
|
54
|
-
badge:
|
|
55
|
-
borderRadius: "{rounded.full}"
|
|
56
|
-
border: "1px solid {colors.border}"
|
|
57
|
-
background: "{colors.card}或{colors.primary}"
|
|
58
|
-
padding: "4px 16px"
|
|
59
|
-
fontWeight: 700
|
|
60
|
-
info-card-small:
|
|
61
|
-
background: "{colors.card}"
|
|
62
|
-
border: "2px solid {colors.border}"
|
|
63
|
-
padding: 12px
|
|
64
|
-
valueFont: "{typography.decorative}"
|
|
65
|
-
charts:
|
|
66
|
-
palette: "{colors.primary} {colors.foreground} {colors.muted-foreground} {colors.accent} {colors.gray-state}"
|
|
67
|
-
container: "{colors.card}底+2px {colors.border}边框+4px 偏移阴影(即 brutal-card 样式)"
|
|
68
|
-
axis: "轴线/刻度 2px {colors.border},标签 11px 加粗(600),字体见 {typography.heading-body}"
|
|
69
|
-
tooltip: "{colors.card}底,2px {colors.border}边框,{rounded.card}(直角),硬阴影 4px 4px 0 {colors.border}"
|
|
70
|
-
legend: "icon=rect 16×16,itemGap 16,文字加粗(600)"
|
|
71
|
-
anchors:
|
|
72
|
-
- id: brutal-border-shadow
|
|
73
|
-
type: pattern
|
|
74
|
-
desc: 全局粗黑边框叠加硬偏移阴影(见 components.brutal-card 的 boxShadow),零模糊,是品牌核心签名
|
|
75
|
-
- id: tri-color-strict
|
|
76
|
-
type: pattern
|
|
77
|
-
desc: 严格黑白橙三色系统(见 colors 各角色),不引入其他色相干扰纯粹性
|
|
78
|
-
- id: zero-radius-shape
|
|
79
|
-
type: pattern
|
|
80
|
-
desc: 卡片一律零圆角方形,唯一例外是完全圆形的徽章与头像(见 Exceptions)
|
|
81
|
-
- id: header-banner
|
|
82
|
-
type: component
|
|
83
|
-
desc: 橙色强调横幅+粗边框+几何装饰圆,可在最重要的内容区域作为视觉锚点
|
|
84
|
-
- id: playfair-italic-accent
|
|
85
|
-
type: token
|
|
86
|
-
desc: 衬线斜体(Playfair Display)专用于装饰性文字与信息卡数值,与无衬线正文对比
|
|
87
|
-
- id: hover-press-shift
|
|
88
|
-
type: pattern
|
|
89
|
-
desc: 卡片 hover 位移配合阴影收缩,模拟物理按压反馈
|
|
90
|
-
- id: geometric-circle-decor
|
|
91
|
-
type: component
|
|
92
|
-
desc: 低透明度描边几何圆装饰散布 Header 与卡片背景,呼应包豪斯几何语言
|
|
93
|
-
gaps:
|
|
94
|
-
- 无暗色模式定义
|
|
95
|
-
- 无表单控件(input/select 等)规范
|
|
96
|
-
- 补充项:本文件 colors 全部 hex 值由源 HSL 值换算得出(源全部以 HSL 给出,无 hex),按标准 HSL→RGB→hex 公式精确换算,非凑整/非取默认值,可能有 ≤1 的舍入误差,不改变色相/饱和度/明度语义
|
|
97
|
-
- 补充项:字体加载语法由源 `<link>` 标签按 DSM 规范转换为等效 `@import`(URL/字重参数原样保留,仅切换加载语法)
|
|
98
|
-
exceptions:
|
|
99
|
-
- 完全圆形的徽章/头像/滚动条滑块使用 {rounded.full},是零圆角规则唯一例外
|
|
100
|
-
- gray-state(灰色状态色)仅用于图表次级序列与灰色圆点标记,不用于正文/边框/主要强调
|
|
101
|
-
- Playfair Display 只承载拉丁装饰文字;中文装饰文字回退到 Songti SC / Noto Serif SC
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Overview
|
|
105
|
-
|
|
106
|
-
野性主义(Brutalist)× 包豪斯几何 × 杂志编辑排版。极简主义与强对比结合:纯白画布上黑色粗边框(2-4px)构建骨架,硬偏移阴影(4px/8px,零模糊)强化层次,橙色作为唯一暖色强调锚点。严格黑白橙三色配色,几何装饰圆与椭圆徽章点缀,零圆角方形卡片(完全圆形徽章/头像除外),标题无衬线粗体大写,斜体衬线(Playfair Display)点缀装饰文字与数值。情绪基调:自信、大胆、现代。
|
|
107
|
-
|
|
108
|
-
## Colors
|
|
109
|
-
|
|
110
|
-
| 角色 | 值 | 用法 |
|
|
111
|
-
|-----|-----|-----|
|
|
112
|
-
| background | {colors.background} | 页面背景(纯白) |
|
|
113
|
-
| card | {colors.card} | 卡片背景(纯白) |
|
|
114
|
-
| header | {colors.header} | Header 橙色横幅背景(与 primary 同值) |
|
|
115
|
-
| foreground | {colors.foreground} | 正文(纯黑) |
|
|
116
|
-
| muted-foreground | {colors.muted-foreground} | 次要文字(深灰) |
|
|
117
|
-
| primary | {colors.primary} | 主交互色:橙色强调、CTA、状态激活、图表主色,权重最高 |
|
|
118
|
-
| accent | {colors.accent} | 弱强调色:浅橙背景、头像底色、hover 轻底,权重低于 primary |
|
|
119
|
-
| border | {colors.border} | 边框(纯黑粗线),承担结构角色;与 foreground 同值 |
|
|
120
|
-
| gray-state | {colors.gray-state} | 中灰状态色、图表次级序列色 |
|
|
121
|
-
|
|
122
|
-
三色原则:页面仅使用黑/白/橙三色(card/background 白,foreground/border 黑,primary/header 橙);accent 由 primary 提亮得到(H/S 不变,L 50%→85%);gray-state 为独立辅助状态色,不计入三色主色板。成功/激活语义色复用 primary;浅橙背景语义色复用 accent。选区样式:`::selection { background: {colors.primary}; color: white }`。
|
|
123
|
-
|
|
124
|
-
换算说明:源色值为 HSL,本文件按标准 HSL→RGB→hex 公式换算为等值 hex(无信息损失,可能有 ≤1 舍入),详见 frontmatter gaps。
|
|
125
|
-
|
|
126
|
-
## Typography
|
|
127
|
-
|
|
128
|
-
全局样式首行原样写入(HARD REQUIREMENT,禁止替换):
|
|
129
|
-
|
|
130
|
-
```css
|
|
131
|
-
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;1,400;1,600&display=swap');
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Space Grotesk 的 fontFamily 已含 CJK 兜底(PingFang SC/Microsoft YaHei/Noto Sans SC,系统字体无需 @import)。Playfair Display 仅用于拉丁装饰文字;中文装饰文字回退到 Songti SC / Noto Serif SC。
|
|
135
|
-
|
|
136
|
-
| 层级 | 样式(Tailwind) | 颜色 |
|
|
137
|
-
|-----|-----|-----|
|
|
138
|
-
| H1 超大标题 | text-5xl lg:text-7xl font-bold uppercase tracking-tighter leading-[0.9] | foreground |
|
|
139
|
-
| H2 章节标题 | text-3xl font-bold uppercase | foreground |
|
|
140
|
-
| 装饰性文字 | font-serif italic text-lg({typography.decorative}) | foreground |
|
|
141
|
-
| 正文 | text-sm font-normal | foreground |
|
|
142
|
-
| 次要文字 | text-xs | muted-foreground |
|
|
143
|
-
| 标签文字 | text-xs font-bold uppercase tracking-wider | foreground |
|
|
144
|
-
|
|
145
|
-
## Layout
|
|
146
|
-
|
|
147
|
-
- 导航若存在,可用 Logo 黑方块、粗体大写标题和橙色徽章延续视觉语言;位置和是否固定由应用信息架构决定。
|
|
148
|
-
- 橙色强调横幅可用于主标题、关键结论或主要行动区域,使用 4px 黑边、brutal-shadow-lg 和几何装饰圆;不要求位于首屏。
|
|
149
|
-
- 章节标题、内容卡片和其他模块按任务关系组合,不固定页面顺序。
|
|
150
|
-
- 间距:页面边距 {spacing.page-px};区块间距 {spacing.section-gap};卡片内边距 {spacing.card-padding};组件间距 {spacing.component-gap}。
|
|
151
|
-
- 响应式断点按信息关系减少列数和内边距;窄屏保证粗边框、硬阴影与文本之间有足够空间。
|
|
152
|
-
|
|
153
|
-
## Elevation & Depth
|
|
154
|
-
|
|
155
|
-
硬偏移阴影两档,全部零模糊,颜色一律 {colors.border}(黑):
|
|
156
|
-
|
|
157
|
-
| 档位 | 值 |
|
|
158
|
-
|-----|-----|
|
|
159
|
-
| brutal-shadow | 4px 4px 0px 0px {colors.border} |
|
|
160
|
-
| brutal-shadow-lg | 8px 8px 0px 0px {colors.border} |
|
|
161
|
-
|
|
162
|
-
层次感 = 粗黑边框 + 硬偏移阴影,不用模糊阴影/渐变。Hover 交互:卡片位移 translate(2px,2px)+阴影收缩至 2px 2px 0px 0px {colors.border},transition all 0.2s ease。
|
|
163
|
-
|
|
164
|
-
## Shapes
|
|
165
|
-
|
|
166
|
-
- 圆角:卡片一律零圆角方形({rounded.card});完全圆形徽章/头像/滚动条滑块用 {rounded.full}(见 Exceptions)。
|
|
167
|
-
- 边框语言:全局卡片 2px 实线 {colors.border};Header Banner 4px 实线;导航底边 2px;信息卡片(小)2px;装饰性描述文字左侧 4px 竖线({colors.border})。
|
|
168
|
-
- 装饰元素:几何装饰圆(absolute rounded-full border-2 border-black opacity-20,大圆/小圆两档),散布 Header 与卡片背景;SVG 线性图标装饰(absolute top-0 right-0 p-12 opacity-10 {colors.foreground} stroke-width-1.5)。
|
|
169
|
-
- 滚动条:轨道 #f1f1f1,滑块 {colors.border},宽 8px(源特定 UI 细节,未纳入 colors 命名色板)。
|
|
170
|
-
- 动画:transition-all duration-200(卡片 hover 位移+阴影收缩)。
|
|
171
|
-
|
|
172
|
-
## Components
|
|
173
|
-
|
|
174
|
-
核心组件规格见 frontmatter components(brutal-card / header-banner / navigation / badge / info-card-small / charts)。补充细节:
|
|
175
|
-
|
|
176
|
-
- **BrutalCard**:所有内容卡片的基座,头部 border-b-2 border-black pb-4 mb-6。
|
|
177
|
-
- **HeaderBanner**:含标签(rounded-full border border-black bg-white px-4 py-1 text-sm font-bold)+描述(border-l-4 border-black pl-4 text-lg font-medium)。
|
|
178
|
-
- **章节标题**:编号圆 w-10 h-10 border-2 border-black bg-primary rounded-full text-lg font-bold;标题 text-3xl font-bold uppercase;副标题 font-serif italic text-lg。
|
|
179
|
-
- **野性主义卡片(内容卡)**:头像 w-12 h-12 rounded-full border-2 border-black bg-accent;橙色三角标记 text-primary "->" / 灰色圆点 w-2 h-2 rounded-full border border-black bg-gray-200(对应 colors.gray-state)。
|
|
180
|
-
- **信息卡片(小)**:bg-white border-2 border-black p-3,标签 text-xs uppercase font-bold,值 font-serif italic text-lg(见 {typography.decorative})。
|
|
181
|
-
- **图表(ECharts)**:序列色按 components.charts.palette 顺序;line/area smooth:false(硬朗折线)+symbol:'rect'(方形标记)+面积透明度 0.15;bar barWidth '50%'+borderRadius 0+2px 黑描边+硬阴影偏移 3px;pie 环形 50%~75%+padAngle 0+2px 黑描边;外部 label 加粗。图表容器高度与排列按数据量和可用空间确定。
|
|
182
|
-
|
|
183
|
-
## Do's and Don'ts
|
|
184
|
-
|
|
185
|
-
- Primary/Accent 分工:primary(橙)用于核心强调与交互,accent(浅橙)用于次级装饰与底色,权重不互换。
|
|
186
|
-
- 大胆字重对比:标题用 font-bold(700)+装饰性文字用 Playfair 斜体,避免整段常规字重独立展示为标题。
|
|
187
|
-
- Grid 优先布局:卡片网格严格对齐,图表边框/标记/阴影风格与整体统一,不单独设计。
|
|
188
|
-
- 装饰圆/SVG 线性图标是低透明度点缀,避免高对比度喧宾夺主。
|
|
189
|
-
|
|
190
|
-
## Hard Rules
|
|
191
|
-
|
|
192
|
-
- 仅使用黑/白/橙三色(见 colors),禁止引入其他色相干扰画面纯粹性(gray-state 为独立辅助状态色,不计入三色主色板)。
|
|
193
|
-
- 卡片圆角必须为 {rounded.card}(零圆角方形),完全圆形徽章/头像/滚动条滑块除外(见 Exceptions)。
|
|
194
|
-
- 阴影必须是纯偏移硬阴影(0 模糊,{colors.border} 色),禁止使用模糊(blur)阴影或渐变阴影。
|
|
195
|
-
- 卡片必须带 2px 实线 {colors.border} 边框(Header Banner 用 4px),禁止无边框卡片。
|
|
196
|
-
- 字体 @import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
|
|
197
|
-
- 标题一律 uppercase + font-bold,禁止小写标题或常规字重独立展示为标题。
|
|
198
|
-
|
|
199
|
-
## Exceptions
|
|
200
|
-
|
|
201
|
-
- 完全圆形的徽章/头像/滚动条滑块使用 {rounded.full},是零圆角规则唯一例外。
|
|
202
|
-
- gray-state(灰色状态色)仅用于图表次级序列与灰色圆点标记,不用于正文/边框/主要强调。
|
|
203
|
-
- Playfair Display 仅用于拉丁装饰文字;中文装饰文字使用 Songti SC / Noto Serif SC。
|