@lark-apaas/coding-steering 0.1.63 → 0.1.65
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/coding-guide/SKILL.md +1 -1
- package/steering/nestjs-react-fullstack/skills/design-guide/SKILL.md +3 -1
- package/steering/nestjs-react-fullstack/skills/design-guide/references/broadsheet.md +35 -33
- package/steering/nestjs-react-fullstack/skills/design-guide/references/claude-editorial-research.md +33 -33
- package/steering/nestjs-react-fullstack/skills/design-guide/references/crimson-frosted-glass.md +41 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/cybernetic-vault-terminal.md +8 -8
- package/steering/nestjs-react-fullstack/skills/design-guide/references/dashboard.md +43 -42
- package/steering/nestjs-react-fullstack/skills/design-guide/references/digital-e-guide.md +98 -98
- package/steering/nestjs-react-fullstack/skills/design-guide/references/finance-report.md +24 -24
- package/steering/nestjs-react-fullstack/skills/design-guide/references/flowbite.md +16 -16
- package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md +56 -52
- package/steering/nestjs-react-fullstack/skills/design-guide/references/industry.md +40 -38
- package/steering/nestjs-react-fullstack/skills/design-guide/references/metabase.md +47 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/minimal-jade.md +48 -48
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nebula-crimson.md +23 -23
- package/steering/nestjs-react-fullstack/skills/design-guide/references/nexuscore-analytics.md +7 -7
- package/steering/nestjs-react-fullstack/skills/design-guide/references/organic-minimalism.md +43 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pm-spec.md +54 -53
- package/steering/nestjs-react-fullstack/skills/design-guide/references/pop-art.md +51 -43
- package/steering/nestjs-react-fullstack/skills/design-guide/references/sap-fiori-horizon.md +33 -31
- package/steering/nestjs-react-fullstack/skills/design-guide/references/token-mapping.md +17 -17
- package/steering/nestjs-react-fullstack/skills/design-guide/references/warm-elegance.md +43 -41
- package/steering/nestjs-react-fullstack/skills/design-guide/references/wild-orange.md +24 -24
|
@@ -6,15 +6,16 @@ description: >-
|
|
|
6
6
|
冷白画布、浅灰分组面与深蓝文字,企业蓝仅标记主操作、链接、选中态和焦点。
|
|
7
7
|
使用 6–8px 圆角、1px 边框、无阴影普通卡片、紧凑表格和表单,并在窄屏重排内容。
|
|
8
8
|
colors:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
muted: "#556B82"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
background: "#FFFFFF"
|
|
10
|
+
muted: "#F5F6F7"
|
|
11
|
+
card: "#FFFFFF"
|
|
12
|
+
foreground: "#1D2D3E"
|
|
13
|
+
muted-foreground: "#556B82"
|
|
14
|
+
border: "#D9D9D9"
|
|
15
|
+
primary: "#0A6ED1"
|
|
16
|
+
primary-foreground: "#FFFFFF"
|
|
17
|
+
accent: "rgba(10, 110, 209, 0.10)"
|
|
18
|
+
ring: "#0A6ED1"
|
|
18
19
|
typography:
|
|
19
20
|
heading:
|
|
20
21
|
fontFamily: '"Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
@@ -44,30 +45,30 @@ spacing:
|
|
|
44
45
|
card-padding: 16px
|
|
45
46
|
components:
|
|
46
47
|
primaryButton:
|
|
47
|
-
background: "{colors.
|
|
48
|
-
color: "{colors.
|
|
49
|
-
border: "1px solid {colors.
|
|
48
|
+
background: "{colors.primary}"
|
|
49
|
+
color: "{colors.primary-foreground}"
|
|
50
|
+
border: "1px solid {colors.primary}"
|
|
50
51
|
borderRadius: "{rounded.control}"
|
|
51
52
|
description: 每个操作组只设一个蓝色主操作
|
|
52
53
|
secondaryButton:
|
|
53
|
-
background: "{colors.
|
|
54
|
-
color: "{colors.
|
|
55
|
-
border: "1px solid {colors.
|
|
54
|
+
background: "{colors.background}"
|
|
55
|
+
color: "{colors.primary}"
|
|
56
|
+
border: "1px solid {colors.border}"
|
|
56
57
|
borderRadius: "{rounded.control}"
|
|
57
58
|
card:
|
|
58
|
-
background: "{colors.
|
|
59
|
-
border: "1px solid {colors.
|
|
59
|
+
background: "{colors.card}"
|
|
60
|
+
border: "1px solid {colors.border}"
|
|
60
61
|
borderRadius: "{rounded.card}"
|
|
61
62
|
description: 使用明度差和边框分层,不使用常驻阴影
|
|
62
63
|
field:
|
|
63
|
-
background: "{colors.
|
|
64
|
-
color: "{colors.
|
|
65
|
-
border: "1px solid {colors.
|
|
64
|
+
background: "{colors.background}"
|
|
65
|
+
color: "{colors.foreground}"
|
|
66
|
+
border: "1px solid {colors.border}"
|
|
66
67
|
borderRadius: "{rounded.control}"
|
|
67
|
-
focus: "2px solid {colors.
|
|
68
|
+
focus: "2px solid {colors.ring}"
|
|
68
69
|
table:
|
|
69
|
-
headerBackground: "{colors.
|
|
70
|
-
rowBorder: "1px solid {colors.
|
|
70
|
+
headerBackground: "{colors.muted}"
|
|
71
|
+
rowBorder: "1px solid {colors.border}"
|
|
71
72
|
description: 浅灰表头、紧凑行高、稳定列对齐和等宽数字
|
|
72
73
|
status:
|
|
73
74
|
borderRadius: "{rounded.pill}"
|
|
@@ -95,14 +96,15 @@ anchors:
|
|
|
95
96
|
|
|
96
97
|
| 角色 | Token | 用法 |
|
|
97
98
|
|------|-------|------|
|
|
98
|
-
| 画布 | `{colors.
|
|
99
|
-
| 次级表面 | `{colors.
|
|
100
|
-
| 独立表面 | `{colors.
|
|
101
|
-
| 主文字 | `{colors.
|
|
102
|
-
| 次文字 | `{colors.muted}` | 说明和元信息 |
|
|
103
|
-
| 分隔线 | `{colors.
|
|
104
|
-
| 企业蓝 | `{colors.
|
|
105
|
-
|
|
|
99
|
+
| 画布 | `{colors.background}` | 页面与输入区域 |
|
|
100
|
+
| 次级表面 | `{colors.muted}` | 表头、分组、弱选中态 |
|
|
101
|
+
| 独立表面 | `{colors.card}` | 卡片与浮层 |
|
|
102
|
+
| 主文字 | `{colors.foreground}` | 标题、正文、数字、图标 |
|
|
103
|
+
| 次文字 | `{colors.muted-foreground}` | 说明和元信息 |
|
|
104
|
+
| 分隔线 | `{colors.border}` | 控件、表格和分组边界 |
|
|
105
|
+
| 企业蓝 | `{colors.primary}` | 主操作、链接、选中态和焦点 |
|
|
106
|
+
| 主色上文字 | `{colors.primary-foreground}` | 主按钮文字 |
|
|
107
|
+
| 弱强调 | `{colors.accent}` | 当前行、轻提示和弱选中背景 |
|
|
106
108
|
|
|
107
109
|
企业蓝不用于普通正文、卡片底色或大面积背景。信息层级优先使用字重、间距、表面和边框。
|
|
108
110
|
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
# 风格 token → 全栈主题槽位的语义映射规则
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 往 `client/src/tailwind-theme.css` 写颜色前读本文。预置风格、用户指定方向和 frontend-design 自定义方向都适用。
|
|
4
4
|
|
|
5
|
-
## 0.
|
|
5
|
+
## 0. 先判明暗
|
|
6
6
|
|
|
7
|
-
看风格的画布色(`
|
|
7
|
+
看风格的画布色(`background`,即最底层那个面)。画布是渐变时按渐变的主要色判断明暗,`--background` 也只填这个单一主要色,渐变本身按 §3 另加变量。亮度低于 50% 视为**深色风格**,深色时必须改下面这些模板默认值,后果见表下说明:
|
|
8
8
|
|
|
9
9
|
| 变量 | 浅色(模板默认) | 深色必须改成 |
|
|
10
10
|
|---|---|---|
|
|
11
11
|
| `--elevate-1` / `--elevate-2` | `rgba(0,0,0,.03)` / `.08` | `rgba(255,255,255,.04)` / `.10` |
|
|
12
12
|
| `--button-outline` / `--badge-outline` | `rgba(0,0,0,.10)` / `.05` | `rgba(255,255,255,.12)` / `.06` |
|
|
13
13
|
| `--opaque-button-border-intensity` | `-8`(压暗) | `+8`(提亮) |
|
|
14
|
+
| `--muted` / `--secondary` / `--accent`(风格未给时) | `hsl(220 14% 96%)` 浅灰 | 比 `--card`、`--popover` 中较亮者再亮一档的中性深色(见 §1) |
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
前三行是 hover / active / 按钮描边的唯一来源,模板里写死了黑色,深色底上不改 = 悬停无反馈、按钮无边;最后一行不改 = 骨架屏和菜单悬停在深色底上变成刺眼的浅色块。
|
|
16
17
|
|
|
17
|
-
## 1.
|
|
18
|
+
## 1. 同名即同义
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
预置风格的 `colors` 已按 shadcn 槽位命名:key 与槽位同名(`primary`、`background`、`muted`、`accent` 等),就直接写进同名变量,含义与 shadcn 一致。不是槽位名的 key 按下表看角色:状态色(`danger`、`error`、`positive` 这类)落到 `--destructive` / `--success` / `--warning`,导航与顶栏色落到 `--sidebar*`;找不到对应角色的才是风格专有色,按 §3 处理。
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
应用里较早生成的 `design.md` 可能还是旧命名:没有 `primary`,签名色叫 `accent`。遇到这种文件不按名字落槽,按下表看角色,签名色进 `--primary`。
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
用户指定或自定义方向由你自己给颜色命名时,遵守同一约定:用了槽位名就必须承担槽位含义,签名色叫 `primary`。各槽位的角色:
|
|
25
|
+
|
|
26
|
+
| 角色 | 槽位 |
|
|
24
27
|
|---|---|
|
|
25
28
|
| 最底层页面画布 | `--background` |
|
|
26
|
-
| 卡片 / 内容块的面 | `--card`、`--popover` |
|
|
29
|
+
| 卡片 / 内容块的面 | `--card`、`--popover`(`--popover` 承载下拉与弹层,必须不透明;风格卡片是半透明玻璃时,`--popover` 取不透明的表面色) |
|
|
27
30
|
| 比画布略深或略浅的次级面、区块底 | `--muted`、`--secondary` |
|
|
28
31
|
| 正文主文字 | `--foreground`、`--card-foreground`、`--popover-foreground` |
|
|
29
32
|
| 次要 / 弱化文字 | `--muted-foreground` |
|
|
30
33
|
| 分隔线、描边 | `--border`、`--input` |
|
|
31
34
|
| **唯一那个高亮色**(CTA、激活态、数值点睛所用) | `--primary` + `--ring`;其上的文字给 `--primary-foreground` |
|
|
32
|
-
|
|
|
35
|
+
| 悬停、选中、加载占位这类**弱强调面** | `--accent` + `--accent-foreground` |
|
|
33
36
|
| 导航栏 / 侧边栏 / 顶栏专用色 | `--sidebar*` 那 8 个(见 §4) |
|
|
34
37
|
|
|
35
|
-
`--
|
|
36
|
-
|
|
37
|
-
三条同名不同义的坑,一律以角色为准:
|
|
38
|
+
`--accent`、`--muted`、`--secondary` 都是贴近画布的浅色面(深色风格则是贴近画布的深色面):模板的骨架屏、下拉菜单与选择器的悬停行、日历和切换按钮的选中底都直接用它们铺色。高饱和色放进这三个槽位,这些区域会整块被染色。风格没给 `accent` 时,`--accent` 直接取 `--muted` 的值。`--muted`、`--secondary` 缺失时取中性面,并与 `--card`、`--popover` 拉开一档,否则卡片和菜单里的悬停行、骨架屏看不出来:浅色风格默认用模板浅灰,它和 `--card` 或 `--popover` 太近时取比两者中较深者再深一档的中性浅色;深色风格取比 `--card`、`--popover` 中较亮者再亮一档的中性深色。不要从 `--primary` 派生——那会让菜单悬停和骨架屏都带上主色调。
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
- **风格里叫 `secondary` 的通常是第二数据色**(图表第二序列),不是 shadcn 的次级面。`--secondary` 该由「比画布深/浅一档的面」来填。
|
|
41
|
-
- **风格里叫 `accent` 的可能是任何东西**——品牌主色、细线或点睛色。看值和用法,别看名。
|
|
40
|
+
**`--x-foreground` 是「压在 x 上的文字色」**,不是 x 的浅色底。徽章底色(如 `success-soft`)按 §3 另加变量。
|
|
42
41
|
|
|
43
42
|
## 2. 缺源怎么办(这是多数情况,不是例外)
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
预置风格通常只给出部分槽位,状态色和图表色缺得最多。照抄模板默认的蓝/红/绿/橙会把风格外的色相直接注进去。按下面推:
|
|
46
45
|
|
|
47
46
|
- **缺 `primary`**:风格若明确宣称无强调色(暗夜鎏金、夜航灯塔那类),`--primary` 填最高对比的中性色(深色风格填最亮的 ink,浅色风格填最深的 ink),`--primary-foreground` 填画布色。**不要自己发明一个强调色。**
|
|
48
47
|
- **缺 `success` / `danger` / `warning`**:保留语义可辨的最低要求,但把饱和度和明度拉到风格的水位——取模板默认的色相,饱和度与明度对齐风格里已有的彩色 token。**风格一个彩色 token 都没有时(暗夜鎏金那类),饱和度取 35% 为下限**,不要跟着中性色降到 7%——那样红绿橙互相分不出来。这种情况下状态色只用于 badge 与文字,不做面。风格明确禁止某类色(克莱因蓝的双色绝对主义、暗夜鎏金的严格中性)时,只在状态标记这一个位置破例,其余不用。
|
|
48
|
+
- **缺 `primary-foreground`**:在画布色与最深的正文色里选与 `--primary` 对比度更高的那个,不要沿用模板默认白字——亮黄、亮绿主色上白字看不清。
|
|
49
49
|
- **缺 chart-1..5**:从 `--primary` 的色相出发生成 5 档单色阶(改明度与饱和度,不引入新色相),不要直接套模板默认图表色。
|
|
50
50
|
|
|
51
51
|
## 3. 风格专有 token 不塞进槽位
|
|
@@ -4,15 +4,16 @@ name: warm-elegance
|
|
|
4
4
|
name_zh: 暖调精致
|
|
5
5
|
description: 暖调精致风——暖米/暖灰/暖黄三色渐变页面背景上叠放白色超圆角(32px)卡片,黄色(#FACC15)作为唯一强调色点缀 CTA/活跃态/装饰细节;深色反转区(#2D2D2D)与嵌入深色卡片(#1A1A1A)形成视觉对比层,纤细 pill 型 CSS 柱图/环形进度指示器(border trick)/线性进度条构成数据可视化语言,灰度高对比人物头像(仅内容涉及具体人物时)配渐变遮罩与磨砂玻璃标签点缀。温暖、安心、掌控感。
|
|
6
6
|
colors:
|
|
7
|
-
|
|
8
|
-
|
|
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"
|
|
9
10
|
surface-dark: "#2D2D2D"
|
|
10
11
|
surface-embed: "#1A1A1A"
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
foreground: "#1E293B"
|
|
13
|
+
muted-foreground: "#9CA3AF"
|
|
13
14
|
text-dim: "#64748B"
|
|
14
15
|
text-body: "#6B7280"
|
|
15
|
-
|
|
16
|
+
primary: "#FACC15"
|
|
16
17
|
border: "#F3F4F6"
|
|
17
18
|
positive: "rgb(90,173,112)"
|
|
18
19
|
danger: "#EF4444"
|
|
@@ -36,7 +37,7 @@ spacing:
|
|
|
36
37
|
goal-gap: "3rem(space-y-12)"
|
|
37
38
|
components:
|
|
38
39
|
primary-card:
|
|
39
|
-
background: "{colors.
|
|
40
|
+
background: "{colors.card}"
|
|
40
41
|
padding: "1.5rem(p-6)"
|
|
41
42
|
borderRadius: "{rounded.card}"
|
|
42
43
|
boxShadow: "shadow-sm,hover=>shadow-md"
|
|
@@ -60,27 +61,27 @@ components:
|
|
|
60
61
|
status-tag: "磨砂玻璃 bg-white/10 backdrop-blur-md border-white/20,配 {colors.positive} 脉冲点"
|
|
61
62
|
value-pill: "border-white/40 bg-white/5 backdrop-blur-xl rounded-2xl"
|
|
62
63
|
progress-bar:
|
|
63
|
-
light: "h-1 bg-slate-50 rounded-full,填充色 {colors.
|
|
64
|
-
dark: "h-1.5 bg-white/10 rounded-full,填充色 {colors.
|
|
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场景)"
|
|
65
66
|
charts:
|
|
66
|
-
palette: "{colors.
|
|
67
|
-
bar: "barWidth 12,pill 全圆角[6,6,6,6],默认 #E2E8F0,emphasis {colors.
|
|
68
|
-
pie: "环形 radius 60%~75%,padAngle 3,itemStyle 圆角 4,配色
|
|
69
|
-
line: "线宽 2px,主序列 {colors.
|
|
70
|
-
radar: "轴线 {colors.border} 细线,填充 {colors.
|
|
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"
|
|
71
72
|
tooltip: "白底,1px {colors.border} 边框,圆角 16px,box-shadow 0 4px 6px -1px rgba(0,0,0,0.1)"
|
|
72
|
-
axis: "隐藏轴线与刻度,标签 {colors.
|
|
73
|
-
legend: "底部,{colors.
|
|
73
|
+
axis: "隐藏轴线与刻度,标签 {colors.muted-foreground} 9px,网格线虚线 {colors.border} 或全隐藏——此克制原则适用于 bar/pie/line/radar 所有图表类型,禁止 ECharts 默认粗轴线/灰色网格"
|
|
74
|
+
legend: "底部,{colors.muted-foreground} 11px,圆点 icon 8×8"
|
|
74
75
|
anchors:
|
|
75
76
|
- id: warm-gradient-bg
|
|
76
77
|
type: token
|
|
77
|
-
desc: 三色暖调 linear-gradient 页面背景(见 colors.
|
|
78
|
+
desc: 三色暖调 linear-gradient 页面背景(见 colors.page-gradient),奶油/暖灰/暖黄混合 0.6 透明度叠加
|
|
78
79
|
- id: super-rounded-card
|
|
79
80
|
type: token
|
|
80
81
|
desc: 白色卡片一律超圆角(见 rounded.card),嵌入深色卡片圆角略小一档(见 rounded.embed)
|
|
81
82
|
- id: accent-yellow-single
|
|
82
83
|
type: token
|
|
83
|
-
desc: 黄色(colors.
|
|
84
|
+
desc: 黄色(colors.primary)是全局唯一强调色,仅用于 CTA/活跃态/装饰细节,不作大面积底色
|
|
84
85
|
- id: dark-inversion-zone
|
|
85
86
|
type: component
|
|
86
87
|
desc: 深色侧边栏(surface-dark)+嵌入深色卡片(surface-embed)在浅色主体旁形成反转对比层
|
|
@@ -102,21 +103,22 @@ exceptions:
|
|
|
102
103
|
|
|
103
104
|
## Overview
|
|
104
105
|
|
|
105
|
-
暖调精致风,三色暖调渐变(奶油/暖灰/暖黄各 0.6 透明度)铺满页面背景,承托白色超圆角(32px)卡片构成主内容区,黄色(colors.
|
|
106
|
+
暖调精致风,三色暖调渐变(奶油/暖灰/暖黄各 0.6 透明度)铺满页面背景,承托白色超圆角(32px)卡片构成主内容区,黄色(colors.primary)作为唯一强调色点亮 CTA、活跃态与装饰细节。深色反转区(colors.surface-dark)与嵌入式深色卡片(colors.surface-embed)在浅色主体旁形成层次对比,营造精致感。数据可视化采用纤细 pill 型 CSS 柱图、环形进度指示器(border trick)与线性进度条,替代传统图表语言;人物头像做灰度高对比处理配渐变遮罩,磨砂玻璃标签点缀细节。页面结构由内容决定。情绪基调:温暖、安心、掌控感。
|
|
106
107
|
|
|
107
108
|
## Colors
|
|
108
109
|
|
|
109
110
|
| 角色 | 值 | 用法 |
|
|
110
111
|
|-----|-----|-----|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
112
|
+
| background | {colors.background} | 渐变中段暖黄叠在白底上的单色,作画布底色;页面背景本身用 page-gradient |
|
|
113
|
+
| page-gradient | {colors.page-gradient} | 页面暖调渐变背景 |
|
|
114
|
+
| card | {colors.card} | 白色卡片底 |
|
|
113
115
|
| surface-dark | {colors.surface-dark} | 深色反转侧边栏 |
|
|
114
116
|
| surface-embed | {colors.surface-embed} | 嵌入式深色卡片 |
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
+
| foreground | {colors.foreground} | 主要文字 |
|
|
118
|
+
| muted-foreground | {colors.muted-foreground} | 次要文字、全大写标签 |
|
|
117
119
|
| text-dim | {colors.text-dim} | 辅助标签(如进度条数值说明) |
|
|
118
120
|
| text-body | {colors.text-body} | 正文默认颜色,比 text-dim 更浅 |
|
|
119
|
-
|
|
|
121
|
+
| primary | {colors.primary} | 黄色强调:CTA、活跃态、装饰、图表高亮 |
|
|
120
122
|
| border | {colors.border} | 白色卡片浅边框 |
|
|
121
123
|
| positive | {colors.positive} | 正向/安全状态、脉冲点、深色区进度填充 |
|
|
122
124
|
| danger | {colors.danger} | 紧急/告警标签、图表告警序列色、深色区风险进度填充 |
|
|
@@ -135,17 +137,17 @@ body { font-family: 'Inter', sans-serif; }
|
|
|
135
137
|
|
|
136
138
|
| 层级 | 样式(Tailwind) | 颜色 |
|
|
137
139
|
|-----|-----|-----|
|
|
138
|
-
| 页面大标题 | text-4xl font-semibold tracking-tight |
|
|
139
|
-
| 大数值 KPI | text-4xl font-light tracking-tight |
|
|
140
|
-
| 卡片标题 | font-bold tracking-tight |
|
|
141
|
-
| 卡片副标题 | text-xl font-bold |
|
|
142
|
-
| 全大写标签 | text-[10px] font-bold uppercase tracking-widest |
|
|
143
|
-
| 斜体标签 | text-[10px] italic uppercase tracking-[0.2em] |
|
|
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 |
|
|
144
146
|
| 正文 | text-sm | {colors.text-body} |
|
|
145
|
-
| 数据值 | text-sm font-mono font-bold tracking-tight |
|
|
147
|
+
| 数据值 | text-sm font-mono font-bold tracking-tight | foreground |
|
|
146
148
|
| 小标签 | text-[9px]/text-[8px] font-bold uppercase | 按语境变化 |
|
|
147
|
-
| 深色区标题 | text-2xl font-bold italic tracking-tighter |
|
|
148
|
-
| 深色区进度 | text-3xl font-light font-mono opacity-50 |
|
|
149
|
+
| 深色区标题 | text-2xl font-bold italic tracking-tighter | 白 #FFFFFF |
|
|
150
|
+
| 深色区进度 | text-3xl font-light font-mono opacity-50 | 白 #FFFFFF |
|
|
149
151
|
|
|
150
152
|
## Layout
|
|
151
153
|
|
|
@@ -173,8 +175,8 @@ body { font-family: 'Inter', sans-serif; }
|
|
|
173
175
|
|
|
174
176
|
- 圆角档位:主卡片 {rounded.card}(32px)、嵌入卡片 {rounded.embed}(24px)、图标容器 {rounded.icon}(12px)/{rounded.icon-lg}(16px)、Logo/CTA/头像/环形指示器全圆 {rounded.pill}。
|
|
175
177
|
- 边框语言:白色卡片 1px {colors.border}(近乎不可见);深色区域 border-white/10 或 border-dashed border-white/20;列表分隔 border-dashed border-gray-200。
|
|
176
|
-
- 装饰元素:磨砂玻璃标签(backdrop-blur-md border border-white/20 bg-white/10);装饰光晕(blur-[80px] bg-white/5 左上 + blur-[60px] bg-
|
|
177
|
-
- 环形进度指示器用边框技巧实现:border-[10px] border-
|
|
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-gradient-to-t from-black/80 via-transparent to-transparent);脉冲动画(animate-pulse 状态点)。
|
|
179
|
+
- 环形进度指示器用边框技巧实现:border-[10px] border-primary border-r-transparent rotate-45。
|
|
178
180
|
|
|
179
181
|
## Components
|
|
180
182
|
|
|
@@ -182,15 +184,15 @@ body { font-family: 'Inter', sans-serif; }
|
|
|
182
184
|
|
|
183
185
|
- **品牌标识(可选)**:Logo pill(bg-black text-white px-5 py-2 rounded-full font-bold text-xl tracking-tighter + 黄色图标 + shadow-lg shadow-black/10);右上仅放报告元信息文字(日期/版本/来源),不放搜索/通知/用户头像等应用操作控件。
|
|
184
186
|
- **人物头像卡片(仅内容涉及具体人物时使用,禁装饰性占位)**:图片容器 rounded-2xl aspect-[4/5];状态标签左上(磨砂玻璃+{colors.positive} 脉冲点);底部信息 flex justify-between(白色名称 text-2xl + 标签 opacity-70 + 数值 pill 磨砂玻璃 rounded-2xl)。
|
|
185
|
-
- **列表卡片**:标题 italic underline decoration-
|
|
186
|
-
- **柱状图卡片(CSS)**:标题行圆点(w-2 h-2 bg-
|
|
187
|
-
- **日历卡片**:星期头 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(活跃=
|
|
188
|
-
- **深色侧边栏目标项**:图标 bg-white/10 rounded-xl(group-hover:bg-white/20);百分比 >50%=
|
|
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]。
|
|
189
191
|
- **图表(ECharts)**:序列色按 charts.palette 顺序;bar 为纤细 pill 型(barWidth 12,全圆角);pie 为环形(60%~75%);line/radar 规格见 frontmatter components.charts,一律去除默认粗轴线与灰色网格,风格与 bar/pie 保持一致克制;tooltip/axis/legend 规格见 frontmatter components.charts。
|
|
190
192
|
|
|
191
193
|
## Do's and Don'ts
|
|
192
194
|
|
|
193
|
-
- 优先使用设计系统定义的配色变量({colors.
|
|
195
|
+
- 优先使用设计系统定义的配色变量({colors.primary}/{colors.surface-dark}/{colors.positive} 等),通过透明度与渐变产生层次,保持整体暖色调统一感。
|
|
194
196
|
- 数据可视化统一用 ECharts 配合 charts 主题配置,让图表在色彩与圆角上与卡片、进度条等 CSS 组件保持一致,包括 line/radar 等非 bar/pie 图表。
|
|
195
197
|
- 保持浅色暖底与深色反转区的对比节奏,用超圆角(32px/24px)与极轻阴影营造柔和、精致的卡片层次。
|
|
196
198
|
- 响应式断点内间距可微调;卡片内条目数量可增减;日历月份、进度条/百分比数值均可动态化。
|
|
@@ -198,9 +200,9 @@ body { font-family: 'Inter', sans-serif; }
|
|
|
198
200
|
|
|
199
201
|
## Hard Rules
|
|
200
202
|
|
|
201
|
-
- 页面背景必须为三色暖调 linear-gradient({colors.
|
|
203
|
+
- 页面背景必须为三色暖调 linear-gradient({colors.page-gradient}),禁止替换为纯色或其他色系渐变。
|
|
202
204
|
- 主卡片圆角必须为 {rounded.card}(32px),禁止使用常规 rounded-lg/rounded-xl 等更小圆角(Exceptions 列明的除外)。
|
|
203
|
-
- 强调色必须为 {colors.
|
|
205
|
+
- 强调色必须为 {colors.primary}(#FACC15),且为全局唯一强调色,不得引入第二强调色。
|
|
204
206
|
- 页面应保留至少一处深色反转区({colors.surface-dark})或嵌入深色卡片({colors.surface-embed})作为对比锚点;形态和位置按内容决定。
|
|
205
207
|
- 字体必须为 Inter,@import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
|
|
206
208
|
- 任何图表(bar/pie/line/radar)必须遵循 charts 规格去除 ECharts 默认粗轴线与灰色网格,禁止使用未经处理的默认样式。
|
|
@@ -4,11 +4,11 @@ name: wild-orange
|
|
|
4
4
|
name_zh: 橙色野性
|
|
5
5
|
description: 野性主义(Brutalist)×包豪斯几何×杂志编辑排版。纯白画布上黑色粗边框(2-4px)构建骨架,硬偏移阴影(4px/8px,零模糊)强化层次,橙色作为唯一暖色强调锚点,严格黑白橙三色配色。零圆角方形卡片(完全圆形徽章/头像除外),标题无衬线粗体大写,斜体衬线(Playfair Display)点缀装饰文字与数值,几何装饰圆呼应包豪斯语言。情绪基调:自信、大胆、现代。
|
|
6
6
|
colors:
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
background: "#ffffff"
|
|
8
|
+
card: "#ffffff"
|
|
9
9
|
header: "#ff6600"
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
foreground: "#000000"
|
|
11
|
+
muted-foreground: "#666666"
|
|
12
12
|
primary: "#ff6600"
|
|
13
13
|
accent: "#ffd1b3"
|
|
14
14
|
border: "#000000"
|
|
@@ -33,7 +33,7 @@ spacing:
|
|
|
33
33
|
component-gap: "16px/32px(gap-4/gap-8)"
|
|
34
34
|
components:
|
|
35
35
|
brutal-card:
|
|
36
|
-
background: "{colors.
|
|
36
|
+
background: "{colors.card}"
|
|
37
37
|
border: "2px solid {colors.border}"
|
|
38
38
|
borderRadius: "{rounded.card}"
|
|
39
39
|
boxShadow: "4px 4px 0px 0px {colors.border}"
|
|
@@ -46,7 +46,7 @@ components:
|
|
|
46
46
|
padding: "{spacing.header-padding}"
|
|
47
47
|
decoration: "几何装饰圆(absolute rounded-full border-2 border-black opacity-20,大圆/小圆两档)+黑底状态卡片"
|
|
48
48
|
navigation:
|
|
49
|
-
background: "{colors.
|
|
49
|
+
background: "{colors.card}"
|
|
50
50
|
borderBottom: "2px solid {colors.border}"
|
|
51
51
|
height: 64px
|
|
52
52
|
logo: "{colors.border}底,32×32,白字加粗"
|
|
@@ -54,19 +54,19 @@ components:
|
|
|
54
54
|
badge:
|
|
55
55
|
borderRadius: "{rounded.full}"
|
|
56
56
|
border: "1px solid {colors.border}"
|
|
57
|
-
background: "{colors.
|
|
57
|
+
background: "{colors.card}或{colors.primary}"
|
|
58
58
|
padding: "4px 16px"
|
|
59
59
|
fontWeight: 700
|
|
60
60
|
info-card-small:
|
|
61
|
-
background: "{colors.
|
|
61
|
+
background: "{colors.card}"
|
|
62
62
|
border: "2px solid {colors.border}"
|
|
63
63
|
padding: 12px
|
|
64
64
|
valueFont: "{typography.decorative}"
|
|
65
65
|
charts:
|
|
66
|
-
palette: "{colors.primary} {colors.
|
|
67
|
-
container: "{colors.
|
|
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
68
|
axis: "轴线/刻度 2px {colors.border},标签 11px 加粗(600),字体见 {typography.heading-body}"
|
|
69
|
-
tooltip: "{colors.
|
|
69
|
+
tooltip: "{colors.card}底,2px {colors.border}边框,{rounded.card}(直角),硬阴影 4px 4px 0 {colors.border}"
|
|
70
70
|
legend: "icon=rect 16×16,itemGap 16,文字加粗(600)"
|
|
71
71
|
anchors:
|
|
72
72
|
- id: brutal-border-shadow
|
|
@@ -109,17 +109,17 @@ exceptions:
|
|
|
109
109
|
|
|
110
110
|
| 角色 | 值 | 用法 |
|
|
111
111
|
|-----|-----|-----|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
112
|
+
| background | {colors.background} | 页面背景(纯白) |
|
|
113
|
+
| card | {colors.card} | 卡片背景(纯白) |
|
|
114
114
|
| header | {colors.header} | Header 橙色横幅背景(与 primary 同值) |
|
|
115
|
-
|
|
|
116
|
-
|
|
|
115
|
+
| foreground | {colors.foreground} | 正文(纯黑) |
|
|
116
|
+
| muted-foreground | {colors.muted-foreground} | 次要文字(深灰) |
|
|
117
117
|
| primary | {colors.primary} | 主交互色:橙色强调、CTA、状态激活、图表主色,权重最高 |
|
|
118
118
|
| accent | {colors.accent} | 弱强调色:浅橙背景、头像底色、hover 轻底,权重低于 primary |
|
|
119
|
-
| border | {colors.border} | 边框(纯黑粗线),承担结构角色;与
|
|
119
|
+
| border | {colors.border} | 边框(纯黑粗线),承担结构角色;与 foreground 同值 |
|
|
120
120
|
| gray-state | {colors.gray-state} | 中灰状态色、图表次级序列色 |
|
|
121
121
|
|
|
122
|
-
三色原则:页面仅使用黑/白/橙三色(
|
|
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
123
|
|
|
124
124
|
换算说明:源色值为 HSL,本文件按标准 HSL→RGB→hex 公式换算为等值 hex(无信息损失,可能有 ≤1 舍入),详见 frontmatter gaps。
|
|
125
125
|
|
|
@@ -135,12 +135,12 @@ Space Grotesk 的 fontFamily 已含 CJK 兜底(PingFang SC/Microsoft YaHei/Noto
|
|
|
135
135
|
|
|
136
136
|
| 层级 | 样式(Tailwind) | 颜色 |
|
|
137
137
|
|-----|-----|-----|
|
|
138
|
-
| H1 超大标题 | text-5xl lg:text-7xl font-bold uppercase tracking-tighter leading-[0.9] |
|
|
139
|
-
| H2 章节标题 | text-3xl font-bold uppercase |
|
|
140
|
-
| 装饰性文字 | font-serif italic text-lg({typography.decorative}) |
|
|
141
|
-
| 正文 | text-sm font-normal |
|
|
142
|
-
| 次要文字 | text-xs |
|
|
143
|
-
| 标签文字 | text-xs font-bold uppercase tracking-wider |
|
|
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
144
|
|
|
145
145
|
## Layout
|
|
146
146
|
|
|
@@ -165,7 +165,7 @@ Space Grotesk 的 fontFamily 已含 CJK 兜底(PingFang SC/Microsoft YaHei/Noto
|
|
|
165
165
|
|
|
166
166
|
- 圆角:卡片一律零圆角方形({rounded.card});完全圆形徽章/头像/滚动条滑块用 {rounded.full}(见 Exceptions)。
|
|
167
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.
|
|
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
169
|
- 滚动条:轨道 #f1f1f1,滑块 {colors.border},宽 8px(源特定 UI 细节,未纳入 colors 命名色板)。
|
|
170
170
|
- 动画:transition-all duration-200(卡片 hover 位移+阴影收缩)。
|
|
171
171
|
|