@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,15 @@ description: >-
|
|
|
6
6
|
米白画布、白色内容面与近黑文字,青蓝仅标记图表主序列、进度和关键结论。
|
|
7
7
|
衬线标题和关键数字、等宽标签和右对齐数字列、无阴影数据块、粗表头线和墨线合计行构成报告层级。
|
|
8
8
|
colors:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
muted: "#5F6573"
|
|
13
|
-
|
|
9
|
+
background: "#F7F6F2"
|
|
10
|
+
card: "#FFFFFF"
|
|
11
|
+
foreground: "#11141A"
|
|
12
|
+
muted-foreground: "#5F6573"
|
|
13
|
+
border: "#E6E3DD"
|
|
14
14
|
lineStrong: "#C8C2B6"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
primary: "#1F6E8C"
|
|
16
|
+
primary-2: "#2C98C5"
|
|
17
|
+
accent: "#E7F0F4"
|
|
18
18
|
positive: "#1F8C5C"
|
|
19
19
|
negative: "#B13B3B"
|
|
20
20
|
warning: "#8A6912"
|
|
@@ -58,24 +58,24 @@ spacing:
|
|
|
58
58
|
page-padding: "clamp(20px, 5vw, 56px)"
|
|
59
59
|
components:
|
|
60
60
|
paper:
|
|
61
|
-
background: "{colors.
|
|
62
|
-
border: "1px solid {colors.
|
|
61
|
+
background: "{colors.card}"
|
|
62
|
+
border: "1px solid {colors.border}"
|
|
63
63
|
borderRadius: "{rounded.paper}"
|
|
64
64
|
boxShadow: "0 16px 40px rgba(28, 27, 26, 0.06)"
|
|
65
65
|
reportHeader:
|
|
66
|
-
borderBottom: "2px solid {colors.
|
|
66
|
+
borderBottom: "2px solid {colors.foreground}"
|
|
67
67
|
description: 衬线标题配等宽期间或版本信息
|
|
68
68
|
metric:
|
|
69
|
-
background: "{colors.
|
|
70
|
-
border: "1px solid {colors.
|
|
69
|
+
background: "{colors.card}"
|
|
70
|
+
border: "1px solid {colors.border}"
|
|
71
71
|
borderRadius: "{rounded.card}"
|
|
72
72
|
description: 等宽标签、衬线数值和等宽变化量
|
|
73
73
|
ledgerTable:
|
|
74
|
-
rowBorder: "1px solid {colors.
|
|
74
|
+
rowBorder: "1px solid {colors.border}"
|
|
75
75
|
description: 等宽数字右对齐;表头使用强分隔线,合计行使用 2px 墨线上边界
|
|
76
76
|
callout:
|
|
77
|
-
background: "{colors.
|
|
78
|
-
borderLeft: "3px solid {colors.
|
|
77
|
+
background: "{colors.accent}"
|
|
78
|
+
borderLeft: "3px solid {colors.primary}"
|
|
79
79
|
borderRadius: "{rounded.callout}"
|
|
80
80
|
description: 每个视图最多一个,用于关键结论
|
|
81
81
|
status:
|
|
@@ -107,14 +107,14 @@ anchors:
|
|
|
107
107
|
|
|
108
108
|
| 角色 | Token | 用法 |
|
|
109
109
|
|------|-------|------|
|
|
110
|
-
| 画布 | `{colors.
|
|
111
|
-
| 内容面 | `{colors.
|
|
112
|
-
| 主文字 | `{colors.
|
|
113
|
-
| 次文字 | `{colors.muted}` | 标签、说明和元信息 |
|
|
114
|
-
| 细线 | `{colors.
|
|
110
|
+
| 画布 | `{colors.background}` | 内容面外部背景 |
|
|
111
|
+
| 内容面 | `{colors.card}` | 正文、表格和数据块背景 |
|
|
112
|
+
| 主文字 | `{colors.foreground}` | 标题、正文、关键数字和粗分隔线 |
|
|
113
|
+
| 次文字 | `{colors.muted-foreground}` | 标签、说明和元信息 |
|
|
114
|
+
| 细线 | `{colors.border}` | 普通边框和行分隔 |
|
|
115
115
|
| 强线 | `{colors.lineStrong}` | 表头和主要分组边界 |
|
|
116
|
-
| 青蓝 | `{colors.
|
|
117
|
-
| 淡蓝 | `{colors.
|
|
116
|
+
| 青蓝 | `{colors.primary}` | 图表主序列、进度和关键结论 |
|
|
117
|
+
| 淡蓝 | `{colors.accent}` | 结论框和进度底槽 |
|
|
118
118
|
| 语义色 | `{colors.positive}` / `{colors.negative}` / `{colors.warning}` | 涨跌、风险和状态 |
|
|
119
119
|
|
|
120
120
|
除语义状态外,图表优先使用青蓝同色阶;不增加无语义的高饱和色。
|
|
@@ -142,7 +142,7 @@ anchors:
|
|
|
142
142
|
|
|
143
143
|
- 最外层纸面可使用 `{components.paper}` 的单层柔影。
|
|
144
144
|
- 内部数据块、指标和表格不使用阴影,以 1px 细线和留白分层。
|
|
145
|
-
- 报告标题分隔和表格合计行可使用 2px `{colors.
|
|
145
|
+
- 报告标题分隔和表格合计行可使用 2px `{colors.foreground}` 墨线。
|
|
146
146
|
|
|
147
147
|
## Shapes
|
|
148
148
|
|
|
@@ -5,14 +5,14 @@ name_zh: Flowbite
|
|
|
5
5
|
description: "教科书式 Tailwind 营销/应用风 DSM:蓝色 CTA(blue-700,hover 800) + gray-900 大标题 + 规整 8px 圆角 + Inter 字体;组件用 Flowbite canonical class 组合书写,交互一律 data-attributes 声明式(不手写 JS);暗色模式全程 dark: 前缀成对;务实、快速、可深浅切换。"
|
|
6
6
|
|
|
7
7
|
colors:
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
primary: "#1d4ed8"
|
|
9
|
+
primary-hover: "#1e40af"
|
|
10
10
|
heading: "#111827"
|
|
11
|
-
|
|
11
|
+
foreground: "#4b5563"
|
|
12
12
|
surface-50: "#f9fafb"
|
|
13
13
|
surface-100: "#f3f4f6"
|
|
14
14
|
border: "#e5e7eb"
|
|
15
|
-
input
|
|
15
|
+
input: "#d1d5db"
|
|
16
16
|
success: "#047857"
|
|
17
17
|
danger: "#be123c"
|
|
18
18
|
warning: "#f97316"
|
|
@@ -43,13 +43,13 @@ spacing:
|
|
|
43
43
|
|
|
44
44
|
components:
|
|
45
45
|
button:
|
|
46
|
-
background: "{colors.
|
|
47
|
-
description: "主按钮 canonical class:text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5(bg-blue-700 = {colors.
|
|
46
|
+
background: "{colors.primary}"
|
|
47
|
+
description: "主按钮 canonical class:text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5(bg-blue-700 = {colors.primary}、hover = {colors.primary-hover})。"
|
|
48
48
|
button-secondary:
|
|
49
49
|
description: "次按钮:白底 border border-gray-200 text-gray-900 hover:bg-gray-100(边 = {colors.border})。"
|
|
50
50
|
input:
|
|
51
51
|
background: "{colors.surface-50}"
|
|
52
|
-
description: "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5(底 = {colors.surface-50}、边 = {colors.input
|
|
52
|
+
description: "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5(底 = {colors.surface-50}、边 = {colors.input})。"
|
|
53
53
|
badge:
|
|
54
54
|
background: "{colors.badge-bg}"
|
|
55
55
|
color: "{colors.badge-text}"
|
|
@@ -61,7 +61,7 @@ components:
|
|
|
61
61
|
anchors:
|
|
62
62
|
- id: blue-cta
|
|
63
63
|
type: token
|
|
64
|
-
desc: "主按钮/链接用品牌蓝(见 colors.
|
|
64
|
+
desc: "主按钮/链接用品牌蓝(见 colors.primary),hover 加深;不混用多个蓝"
|
|
65
65
|
- id: tailwind-canonical-classes
|
|
66
66
|
type: pattern
|
|
67
67
|
desc: "组件用 Flowbite canonical class 组合书写,不自造与之重复的组件样式"
|
|
@@ -81,7 +81,7 @@ anchors:
|
|
|
81
81
|
gaps:
|
|
82
82
|
- "Pro 付费区块:不纳入(许可限制),开源项目禁止复制 Pro 代码"
|
|
83
83
|
- "官方另有 minimal/enterprise/playful/mono 四套主题,换主题 = 换语义变量映射;此处只给 default 主题的映射值"
|
|
84
|
-
- "暗色映射:heading dark:white、
|
|
84
|
+
- "暗色映射:heading dark:white、foreground dark:gray-400、边框 dark:gray-800 等 dark 侧值源以 Tailwind scale 给出,此处未逐一展开为 hex"
|
|
85
85
|
---
|
|
86
86
|
|
|
87
87
|
## Overview
|
|
@@ -96,11 +96,11 @@ gaps:
|
|
|
96
96
|
|
|
97
97
|
default 主题的语义层,映射到 Tailwind 调色板;换主题即换映射。
|
|
98
98
|
|
|
99
|
-
- **品牌 `colors.
|
|
99
|
+
- **品牌 `colors.primary` `#1d4ed8`(blue-700)** / **hover `colors.primary-hover` `#1e40af`(blue-800)** — 主按钮/链接。
|
|
100
100
|
- **标题 `colors.heading` `#111827`(gray-900,dark: white)** — 大标题。
|
|
101
|
-
- **正文 `colors.
|
|
101
|
+
- **正文 `colors.foreground` `#4b5563`(gray-600,dark: gray-400)** — 正文。
|
|
102
102
|
- **次要底 `colors.surface-50` `#f9fafb`(gray-50)** / **`colors.surface-100` `#f3f4f6`(gray-100)** — 区块/输入底。
|
|
103
|
-
- **边框 `colors.border` `#e5e7eb`(gray-200,dark: gray-800)** / **输入边 `colors.input
|
|
103
|
+
- **边框 `colors.border` `#e5e7eb`(gray-200,dark: gray-800)** / **输入边 `colors.input` `#d1d5db`(gray-300)** — 结构线。
|
|
104
104
|
- **成功 `colors.success` `#047857`(emerald-700)** / **危险 `colors.danger` `#be123c`(rose-700)** / **警告 `colors.warning` `#f97316`(orange-500)** — 状态色(各配 50 淡底)。
|
|
105
105
|
- **徽章 `colors.badge-bg` `#dbeafe`(blue-100)** / **`colors.badge-text` `#1e40af`(blue-800)** — 状态徽章。
|
|
106
106
|
|
|
@@ -140,15 +140,15 @@ Inter 承载全部角色,大标题 font-extrabold + tracking-tight,中文用 Not
|
|
|
140
140
|
规整圆角语言,按钮/输入/卡片统一中圆角。
|
|
141
141
|
|
|
142
142
|
- **Radius:** xs 4px(rounded.xs) · sm 6px(rounded.sm) · default 8px(rounded.default) · base 12px(rounded.base) · lg 16px(rounded.lg)。
|
|
143
|
-
- **Borders:** 1px `colors.border`(卡片/次按钮),输入用 `colors.input
|
|
143
|
+
- **Borders:** 1px `colors.border`(卡片/次按钮),输入用 `colors.input`。
|
|
144
144
|
|
|
145
145
|
## Components
|
|
146
146
|
|
|
147
147
|
canonical class 写法,原样保留:
|
|
148
148
|
|
|
149
|
-
- **button(主):** `text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5`(bg-blue-700 = {colors.
|
|
149
|
+
- **button(主):** `text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5`(bg-blue-700 = {colors.primary}、hover = {colors.primary-hover})。
|
|
150
150
|
- **button-secondary(次):** 白底 `border border-gray-200 text-gray-900 hover:bg-gray-100`(边 = {colors.border})。
|
|
151
|
-
- **input:** `bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5`(底 = {colors.surface-50}、边 = {colors.input
|
|
151
|
+
- **input:** `bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 p-2.5`(底 = {colors.surface-50}、边 = {colors.input})。
|
|
152
152
|
- **badge:** `bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded-sm`(底 = {colors.badge-bg}、字 = {colors.badge-text};状态换色族)。
|
|
153
153
|
- **card:** `bg-white border border-gray-200 rounded-lg shadow-sm p-6`(边 = {colors.border}、内距见 spacing.card-padding)。
|
|
154
154
|
- **交互组件(Modal/Dropdown/Drawer/Tooltip):** 用 data-attributes(`data-modal-target` 等)声明式驱动,不手写 JS。
|
|
@@ -170,7 +170,7 @@ canonical class 写法,原样保留:
|
|
|
170
170
|
- 组件优先用 Flowbite canonical class 组合,禁止自造与之重复的组件样式。
|
|
171
171
|
- 交互组件(Modal/Dropdown/Drawer/Tooltip)一律 data-attributes 声明式,禁止手写 JS。
|
|
172
172
|
- 暗色模式必须 `dark:` 前缀成对书写,浅深两态齐全。
|
|
173
|
-
- 品牌蓝只用 `colors.
|
|
173
|
+
- 品牌蓝只用 `colors.primary` 一种,禁止一页混用多个蓝。
|
|
174
174
|
- 禁止把 Pro 付费区块代码复制进开源(MIT)项目。
|
|
175
175
|
|
|
176
176
|
## Exceptions
|
package/steering/nestjs-react-fullstack/skills/design-guide/references/handwritten-sketch.md
CHANGED
|
@@ -4,12 +4,14 @@ name: handwritten-sketch
|
|
|
4
4
|
name_zh: 手绘草稿
|
|
5
5
|
description: 手绘白板笔记风——米黄纸张底(圆点网格纹理)上散落白色卡片,卡片一律有机不规则 wobbly 圆角+3px 墨黑粗边框+纯偏移硬阴影(无模糊),配 Kalam(标题)/Patrick Hand(正文)手写体、透明胶带/图钉/别针物理装饰与卡片微旋转(±0.5~2deg 奇偶交替);标记笔红/钢笔蓝/便利贴黄点缀,黑板反色区块作全页唯一对比锚点。亲和、创意、手工感。
|
|
6
6
|
colors:
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
background: "#fdfbf7"
|
|
8
|
+
card: "#ffffff"
|
|
9
9
|
muted: "#e5e0d8"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
foreground: "#2d2d2d"
|
|
11
|
+
border: "#2d2d2d"
|
|
12
|
+
muted-foreground: "rgba(45,45,45,0.6)"
|
|
13
|
+
primary: "#ff4d4d"
|
|
14
|
+
primary-foreground: "#ffffff"
|
|
13
15
|
pen-blue: "#2d5da1"
|
|
14
16
|
postit-yellow: "#fff9c4"
|
|
15
17
|
highlight-bg: "#fef9c3"
|
|
@@ -39,46 +41,46 @@ spacing:
|
|
|
39
41
|
page-bottom: 80px
|
|
40
42
|
components:
|
|
41
43
|
wobbly-card:
|
|
42
|
-
border: "3px solid {colors.
|
|
44
|
+
border: "3px solid {colors.border}"
|
|
43
45
|
borderRadius: "{rounded.wobbly-1}(四组预设按 index 轮换)"
|
|
44
|
-
boxShadow: "4px 4px 0px 0px {colors.
|
|
46
|
+
boxShadow: "4px 4px 0px 0px {colors.foreground}"
|
|
45
47
|
transform: rotate(±0.5~2deg,index 奇偶交替)
|
|
46
|
-
variants: "white={colors.
|
|
48
|
+
variants: "white={colors.card}底 | yellow={colors.postit-yellow}底 | black={colors.foreground}底白字 | blue={colors.pen-blue}底白字"
|
|
47
49
|
decoration: tape(透明胶带)/tack(红图钉)/none
|
|
48
50
|
section-header:
|
|
49
51
|
layout: flex items-center gap-3 mb-8
|
|
50
|
-
badge: "
|
|
51
|
-
title: "text-4xl font-marker,波浪下划线 decoration-wavy decoration-2 underline-offset-4
|
|
52
|
+
badge: "{colors.primary} 或 {colors.pen-blue} 底白字图标,border-2 {colors.border},rounded-full,shadow 2px 2px 0 {colors.foreground},rotate(±1~3deg)"
|
|
53
|
+
title: "text-4xl font-marker,波浪下划线 decoration-wavy decoration-2 underline-offset-4,{colors.primary} / {colors.pen-blue} 交替"
|
|
52
54
|
kpi-card:
|
|
53
|
-
base: "wobbly-card p-6,hover:-translate-y-1 hover:shadow(8px 8px 0 {colors.
|
|
54
|
-
value: "text-5xl font-marker {colors.
|
|
55
|
-
old-value: "text-lg font-hand line-through,
|
|
55
|
+
base: "wobbly-card p-6,hover:-translate-y-1 hover:shadow(8px 8px 0 {colors.foreground})"
|
|
56
|
+
value: "text-5xl font-marker {colors.primary}"
|
|
57
|
+
old-value: "text-lg font-hand line-through,foreground 40% 透明度"
|
|
56
58
|
mini-chart: "底部迷你水平条形图,border-t-2 dashed 分隔,h-24"
|
|
57
59
|
feature-card:
|
|
58
|
-
header: "muted/30 底 p-4,border-b-2 dashed {colors.
|
|
60
|
+
header: "muted/30 底 p-4,border-b-2 dashed {colors.border},圆形图标徽章"
|
|
59
61
|
keyword-highlight: "{colors.highlight-bg} px-1"
|
|
60
|
-
tag: "bg-white border-2 {colors.
|
|
62
|
+
tag: "bg-white border-2 {colors.border} wobbly 圆角,hover:-rotate-2"
|
|
61
63
|
roadmap-card:
|
|
62
|
-
connector: "阶段间垂直连接线 w-1 {colors.
|
|
63
|
-
priority: "P0={colors.
|
|
64
|
-
deadline: "font-hand {colors.pen-blue},bg-white border-2 {colors.
|
|
64
|
+
connector: "阶段间垂直连接线 w-1 {colors.foreground}"
|
|
65
|
+
priority: "P0={colors.primary}底白字 | P1={colors.postit-yellow}底墨字,rounded-full rotate-2"
|
|
66
|
+
deadline: "font-hand {colors.pen-blue},bg-white border-2 {colors.border} -rotate-1"
|
|
65
67
|
chalkboard-block:
|
|
66
68
|
base: "wobbly-card variant=black,p-8~12,rotate(1deg),圆点 SVG 纹理 opacity 0.10 叠加"
|
|
67
69
|
keyword: "{colors.postit-yellow} 波浪下划线"
|
|
68
70
|
note: 每页最多一处
|
|
69
71
|
charts:
|
|
70
|
-
palette: "{colors.
|
|
72
|
+
palette: "{colors.primary} {colors.muted} {colors.pen-blue} {colors.postit-yellow}"
|
|
71
73
|
container: "透明背景继承卡片底色,border-t-2 dashed 分隔,迷你内嵌 h-24(96px)"
|
|
72
|
-
tooltip: "{colors.postit-yellow}底,2px {colors.
|
|
73
|
-
axis: "轴标签 Patrick Hand 14px {colors.
|
|
74
|
-
legend: "Patrick Hand 14px {colors.
|
|
74
|
+
tooltip: "{colors.postit-yellow}底,2px {colors.border}边框,硬阴影 4px 4px 0 {colors.foreground},圆角 10px"
|
|
75
|
+
axis: "轴标签 Patrick Hand 14px {colors.muted-foreground},网格线 {colors.muted} 虚线,轴刻度隐藏"
|
|
76
|
+
legend: "Patrick Hand 14px {colors.foreground},icon=roundRect 14×10,itemGap 16"
|
|
75
77
|
anchors:
|
|
76
78
|
- id: wobbly-radius
|
|
77
79
|
type: pattern
|
|
78
80
|
desc: 全部卡片有机不规则圆角(rounded 四组 wobbly 预设按 index 轮换),每张卡片形态各异如手撕纸片
|
|
79
81
|
- id: hard-shadow-ink-border
|
|
80
82
|
type: token
|
|
81
|
-
desc: 纯偏移无模糊硬阴影(见 components.wobbly-card.boxShadow)配粗墨线边框(colors.
|
|
83
|
+
desc: 纯偏移无模糊硬阴影(见 components.wobbly-card.boxShadow)配粗墨线边框(colors.border),平面插画式深度
|
|
82
84
|
- id: handwriting-type
|
|
83
85
|
type: token
|
|
84
86
|
desc: 标题 Kalam+正文 Patrick Hand 全页手写体(见 typography),无任何无衬线体
|
|
@@ -90,7 +92,7 @@ anchors:
|
|
|
90
92
|
desc: 所有卡片微旋转,index 奇偶交替正负方向,白板随意粘贴感
|
|
91
93
|
- id: dot-grid-paper
|
|
92
94
|
type: pattern
|
|
93
|
-
desc: 米黄纸张底色(colors.
|
|
95
|
+
desc: 米黄纸张底色(colors.background)叠加圆点网格纹理(radial-gradient,间距见正文),整页如牛皮纸白板
|
|
94
96
|
- id: chalkboard-contrast
|
|
95
97
|
type: component
|
|
96
98
|
desc: 深色黑板反色区块(components.chalkboard-block)作全页唯一视觉对比锚点
|
|
@@ -112,18 +114,20 @@ exceptions:
|
|
|
112
114
|
|
|
113
115
|
| 角色 | 值 | 用法 |
|
|
114
116
|
|-----|-----|-----|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
+
| background | {colors.background} | 页面纸张背景,叠加圆点网格纹理 |
|
|
118
|
+
| card | {colors.card} | 卡片白色底;黑板区块上的粉笔白文字也用这个白色值 |
|
|
117
119
|
| muted | {colors.muted} | 次级背景、网格点、分隔区域、灰底标签 |
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
120
|
+
| foreground | {colors.foreground} | 墨水黑:主要文字、硬阴影;黑板区块反转为底色 |
|
|
121
|
+
| border | {colors.border} | 墨水黑粗边框与描边(与 foreground 同值) |
|
|
122
|
+
| muted-foreground | {colors.muted-foreground} | 次要文字、描述、坐标轴标签 |
|
|
123
|
+
| primary | {colors.primary} | 标记笔红:强调数值、重点标记、图钉;每屏 1-2 处 |
|
|
124
|
+
| primary-foreground | {colors.primary-foreground} | 压在 primary 红底上的白字(P0 标签、文字选中) |
|
|
121
125
|
| pen-blue | {colors.pen-blue} | 钢笔蓝:链接、标签、辅助强调、工时数值 |
|
|
122
126
|
| postit-yellow | {colors.postit-yellow} | 便利贴黄:高亮卡片背景、Tooltip 背景 |
|
|
123
127
|
| highlight-bg | {colors.highlight-bg} | 行内关键词底色标记 |
|
|
124
128
|
| success | {colors.success} | 成功状态图标(仅此用途) |
|
|
125
129
|
|
|
126
|
-
文字选中色:`selection:bg-
|
|
130
|
+
文字选中色:`selection:bg-primary selection:text-white`。
|
|
127
131
|
|
|
128
132
|
## Typography
|
|
129
133
|
|
|
@@ -137,16 +141,16 @@ Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜
|
|
|
137
141
|
|
|
138
142
|
| 层级 | 样式(Tailwind) | 颜色 |
|
|
139
143
|
|-----|-----|-----|
|
|
140
|
-
| 页面主标题 | text-3xl font-marker font-bold tracking-wide |
|
|
141
|
-
| Section 标题 | text-4xl font-marker font-bold + 波浪下划线(decoration-wavy decoration-2 underline-offset-4,
|
|
142
|
-
| 卡片标题 | text-2xl font-marker font-bold |
|
|
143
|
-
| 列表项标题 | text-xl font-marker font-bold |
|
|
144
|
-
| KPI 数值 | text-5xl font-marker font-bold |
|
|
145
|
-
| KPI 旧值 | text-lg font-hand line-through decoration-2 |
|
|
146
|
-
| 正文描述 | text-lg font-hand leading-relaxed |
|
|
147
|
-
| 标签/分类 | text-sm font-bold uppercase tracking-widest |
|
|
148
|
-
| 副标题 | text-lg font-hand |
|
|
149
|
-
| 辅助小字 | text-sm font-hand |
|
|
144
|
+
| 页面主标题 | text-3xl font-marker font-bold tracking-wide | foreground |
|
|
145
|
+
| Section 标题 | text-4xl font-marker font-bold + 波浪下划线(decoration-wavy decoration-2 underline-offset-4,{colors.primary} / {colors.pen-blue} 交替) | foreground |
|
|
146
|
+
| 卡片标题 | text-2xl font-marker font-bold | foreground |
|
|
147
|
+
| 列表项标题 | text-xl font-marker font-bold | foreground |
|
|
148
|
+
| KPI 数值 | text-5xl font-marker font-bold | primary |
|
|
149
|
+
| KPI 旧值 | text-lg font-hand line-through decoration-2 | foreground 40% |
|
|
150
|
+
| 正文描述 | text-lg font-hand leading-relaxed | foreground 70% |
|
|
151
|
+
| 标签/分类 | text-sm font-bold uppercase tracking-widest | foreground 50% |
|
|
152
|
+
| 副标题 | text-lg font-hand | foreground 60% |
|
|
153
|
+
| 辅助小字 | text-sm font-hand | foreground 50% |
|
|
150
154
|
|
|
151
155
|
## Layout
|
|
152
156
|
|
|
@@ -155,11 +159,11 @@ Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜
|
|
|
155
159
|
- 标题、导航或状态区若存在,可使用白色 wobbly 卡片、胶带装饰和轻微旋转;是否固定以及放置位置由实际交互决定。
|
|
156
160
|
- 痛点便签、指标卡、功能卡、路线图和黑板区块均是可选视觉组件,不构成固定页面顺序,也不要求为无关内容补齐。
|
|
157
161
|
- 响应式按卡片内容和任务优先级减少列数;窄屏避免装饰遮挡文字,并适当缩小内边距。
|
|
158
|
-
- 滚动条:宽 12px,轨道
|
|
162
|
+
- 滚动条:宽 12px,轨道 background 色,滑块 foreground 色+3px background 色边框+20px 圆角。
|
|
159
163
|
|
|
160
164
|
## Elevation & Depth
|
|
161
165
|
|
|
162
|
-
硬阴影三档,全部纯偏移 0 模糊,颜色一律
|
|
166
|
+
硬阴影三档,全部纯偏移 0 模糊,颜色一律 foreground:
|
|
163
167
|
|
|
164
168
|
| 档位 | 值 |
|
|
165
169
|
|-----|-----|
|
|
@@ -167,13 +171,13 @@ Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜
|
|
|
167
171
|
| 标准(hard) | 4px 4px 0px 0px |
|
|
168
172
|
| extra-large | 8px 8px 0px 0px |
|
|
169
173
|
|
|
170
|
-
层次感 = 粗墨线边框 + 硬阴影 + 微旋转,不用模糊阴影/渐变。Hover 交互:KPI 卡片上浮(-translate-y-1 → xl 阴影,300ms);列表项右移(translate-x-1,阴影消失,边框变
|
|
174
|
+
层次感 = 粗墨线边框 + 硬阴影 + 微旋转,不用模糊阴影/渐变。Hover 交互:KPI 卡片上浮(-translate-y-1 → xl 阴影,300ms);列表项右移(translate-x-1,阴影消失,边框变 primary);标签 hover:-rotate-2;图标 group-hover rotate-12 或 scale-110;分组标题 hover 变 pen-blue 或 primary。
|
|
171
175
|
|
|
172
176
|
## Shapes
|
|
173
177
|
|
|
174
178
|
- 卡片圆角一律 wobbly 四组预设轮换(见 frontmatter rounded);标签/tag 同 wobbly-1;圆形徽章全圆;痛点便签 8px(唯一例外)。
|
|
175
|
-
- 边框语言:全局卡片 3px 实线
|
|
176
|
-
- 装饰元素:透明胶带(absolute -top-3 居中,w-24 h-6,灰 30% 透明+backdrop-blur,rotate-1)、图钉(w-4 h-4 圆点,
|
|
179
|
+
- 边框语言:全局卡片 3px 实线 border;卡片内分区 2px 虚线;列表项 2px 实线;表格行分隔 1px 浅虚线(border 20%);页脚 4px 粗虚线;痛点便签 2px 虚线(primary 或 border)。
|
|
180
|
+
- 装饰元素:透明胶带(absolute -top-3 居中,w-24 h-6,灰 30% 透明+backdrop-blur,rotate-1)、图钉(w-4 h-4 圆点,primary 底+2px border 边)、别针(lucide Pin 图标,fill primary,rotate-12,卡片右上角)、圆点背景纹理(radial-gradient,muted 色 1px 点,24px 间距)、黑板纹理(SVG 圆点 pattern,opacity 0.10)、波浪下划线(Section 标题)。
|
|
177
181
|
- 动画:transition-all duration-300(卡片)/transition-transform(标签、图标),无入场动画定义。
|
|
178
182
|
|
|
179
183
|
## Components
|
|
@@ -182,10 +186,10 @@ Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜
|
|
|
182
186
|
|
|
183
187
|
- **WobblyCard**:所有卡片的基座。variant=black 时阴影升级为 extra-large 档。
|
|
184
188
|
- **KPI 卡片**:顶部标题(左)+归属标签(右,-rotate-2 白底小标签),中部大数值+单位+删除线旧值+描述,底部虚线分隔迷你条形图。
|
|
185
|
-
- **功能卡片**:卡片头 muted 30% 底+虚线下边框,卡片体 p-6 space-y-6,小标题带左侧
|
|
186
|
-
- **路线图表格**:表头 font-marker
|
|
187
|
-
- **图表(ECharts)**:序列色按 charts.palette 顺序;水平条形用 yAxis category+xAxis value(符合手绘阅读习惯);折线 smooth+areaStyle opacity 0.08;柱状 barWidth 32+不对称圆角(4/10/10/4)+2px
|
|
188
|
-
- **页脚**:4px 粗虚线上边框,居中引言(font-marker text-3xl,hover:rotate-2),
|
|
189
|
+
- **功能卡片**:卡片头 muted 30% 底+虚线下边框,卡片体 p-6 space-y-6,小标题带左侧 {colors.primary} 圆点标记,列表项左侧 ArrowRight 图标(primary,strokeWidth=3)。
|
|
190
|
+
- **路线图表格**:表头 font-marker foreground 60% 下边框 2px;行 font-hand text-lg,hover 淡黄底;复选框 w-5 h-5 2px border 边框;负责人标签 muted 30% 底;工时 pen-blue 加粗右对齐。
|
|
191
|
+
- **图表(ECharts)**:序列色按 charts.palette 顺序;水平条形用 yAxis category+xAxis value(符合手绘阅读习惯);折线 smooth+areaStyle opacity 0.08;柱状 barWidth 32+不对称圆角(4/10/10/4)+2px border 描边;饼图环形 40%~65%+2px border 描边;雷达/散点同样 muted 网格+border 描边。
|
|
192
|
+
- **页脚**:4px 粗虚线上边框,居中引言(font-marker text-3xl,hover:rotate-2),primary 20% 圆条下划线装饰,副文字 hand 体 foreground 50%。
|
|
189
193
|
|
|
190
194
|
## Do's and Don'ts
|
|
191
195
|
|
|
@@ -198,14 +202,14 @@ Kalam/Patrick Hand 为拉丁手写体,无中文字形,fontFamily 已含 CJK 兜
|
|
|
198
202
|
|
|
199
203
|
- 全部文字使用 Kalam(标题)/Patrick Hand(正文)手写体,禁止混入其他无衬线/衬线体(CJK 兜底字体除外)。
|
|
200
204
|
- 字体 @import 必须原样写入全局样式首行,禁止替换或省略(HARD REQUIREMENT)。
|
|
201
|
-
- 所有阴影必须纯偏移硬阴影(0 模糊,
|
|
205
|
+
- 所有阴影必须纯偏移硬阴影(0 模糊,foreground 色),禁止 blur 阴影。
|
|
202
206
|
- 卡片圆角必须使用 wobbly 四组预设(rounded.wobbly-1~4)轮换,禁止常规 rounded-* 类(Exceptions 列明的除外)。
|
|
203
207
|
- 黑板反色区块每页最多一处。
|
|
204
|
-
- 卡片必须带 3px
|
|
208
|
+
- 卡片必须带 3px border 实线边框,禁止无边框卡片。
|
|
205
209
|
|
|
206
210
|
## Exceptions
|
|
207
211
|
|
|
208
|
-
- 痛点便签:常规 8px 圆角+2px 虚线边框(
|
|
212
|
+
- 痛点便签:常规 8px 圆角+2px 虚线边框(primary 或 border),是唯一非 wobbly 圆角卡片。
|
|
209
213
|
- 圆形图标徽章/优先级标签/滚动条滑块:全圆或 20px 常规圆角。
|
|
210
214
|
- success 绿仅限成功状态图标,不得用于装饰或强调。
|
|
211
215
|
- 透明胶带装饰自带 backdrop-blur,是唯一允许的模糊效果(不属于阴影)。
|
|
@@ -4,13 +4,15 @@ name: industry
|
|
|
4
4
|
name_zh: 工业图纸
|
|
5
5
|
description: 工程图纸风格:冷灰白技术底配单一钢蓝,Barlow Condensed 标题与 Barlow 正文形成压缩对比;卡片、图框和按钮采用直角发丝边框与四角套准标,内容照片双色化为钢蓝。
|
|
6
6
|
colors:
|
|
7
|
-
|
|
7
|
+
background: "#f2f2f3"
|
|
8
8
|
surface: "#e9e9ea"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
foreground: "#1d1f20"
|
|
10
|
+
primary: "#5980a6"
|
|
11
|
+
primary-foreground: "#f2f2f3"
|
|
12
|
+
ring: "#5980a6"
|
|
13
|
+
primary-dark: "#416180"
|
|
14
|
+
primary-deep: "#1d2d3d"
|
|
15
|
+
primary-2: "#728fab"
|
|
14
16
|
neutral-dark: "#2b2b2d"
|
|
15
17
|
typography:
|
|
16
18
|
heading:
|
|
@@ -40,14 +42,14 @@ rounded:
|
|
|
40
42
|
lg: "7px"
|
|
41
43
|
components:
|
|
42
44
|
blueprint-frame:
|
|
43
|
-
border: "1px solid color-mix(in srgb, {colors.
|
|
45
|
+
border: "1px solid color-mix(in srgb, {colors.foreground} 16%, transparent)"
|
|
44
46
|
borderRadius: "0"
|
|
45
47
|
background: "transparent"
|
|
46
48
|
description: "四角各带一个由两条 1px 线构成的套准十字标"
|
|
47
49
|
primary-button:
|
|
48
|
-
background: "{colors.
|
|
49
|
-
color: "{colors.
|
|
50
|
-
border: "1px solid {colors.
|
|
50
|
+
background: "{colors.primary}"
|
|
51
|
+
color: "{colors.primary-foreground}"
|
|
52
|
+
border: "1px solid {colors.primary}"
|
|
51
53
|
borderRadius: "0"
|
|
52
54
|
duotone-image:
|
|
53
55
|
description: "图片去饱和后覆盖钢蓝混合层,并与 blueprint-frame 组合"
|
|
@@ -76,7 +78,7 @@ gaps:
|
|
|
76
78
|
exceptions:
|
|
77
79
|
- 对话框是带 surface 填充的容器例外。
|
|
78
80
|
- 单选按钮保留圆形;主按钮允许实心钢蓝。
|
|
79
|
-
-
|
|
81
|
+
- primary-deep 仅可在演示分节页使用大面积色场。
|
|
80
82
|
---
|
|
81
83
|
|
|
82
84
|
## Overview
|
|
@@ -85,7 +87,7 @@ exceptions:
|
|
|
85
87
|
|
|
86
88
|
## Colors
|
|
87
89
|
|
|
88
|
-
页面使用 {colors.
|
|
90
|
+
页面使用 {colors.background} 技术底、{colors.foreground} 正文和 {colors.primary} 钢蓝;段落级钢蓝文字使用 {colors.primary-dark},大面积 {colors.primary-deep} 仅用于演示分节色场。主按钮文字用 {colors.primary-foreground},键盘焦点环用 {colors.ring}。
|
|
89
91
|
|
|
90
92
|
## Typography
|
|
91
93
|
|
|
@@ -119,7 +121,7 @@ HARD REQUIREMENT:字体加载与字体族分工禁止替换。标题使用 {ty
|
|
|
119
121
|
## Exceptions
|
|
120
122
|
|
|
121
123
|
- 对话框可使用 surface 填充;单选按钮保留圆形。
|
|
122
|
-
- 演示分节页可使用 {colors.
|
|
124
|
+
- 演示分节页可使用 {colors.primary-deep} 整幅色场。
|
|
123
125
|
|
|
124
126
|
## Source Specification
|
|
125
127
|
|
|
@@ -137,22 +139,22 @@ HARD REQUIREMENT:字体加载与字体族分工禁止替换。标题使用 {ty
|
|
|
137
139
|
|
|
138
140
|
| Token | 值 | 用途 |
|
|
139
141
|
| --- | --- | --- |
|
|
140
|
-
| `--color-
|
|
142
|
+
| `--color-background` | `#f2f2f3` | 图纸底(冷灰白) |
|
|
141
143
|
| `--color-surface` | `#e9e9ea` | 仅 `.input` / `.dialog` 用(卡片**不用**它) |
|
|
142
|
-
| `--color-
|
|
143
|
-
| `--color-
|
|
144
|
-
| `--color-
|
|
145
|
-
| `--color-divider` | `
|
|
144
|
+
| `--color-foreground` | `#1d1f20` | 正文墨色 |
|
|
145
|
+
| `--color-primary` | `#5980a6` | 钢蓝,唯一强调色 |
|
|
146
|
+
| `--color-primary-2` | `#728fab` | 机器派生占位,视作与 primary 同一角色 |
|
|
147
|
+
| `--color-divider` | `foreground` 16% 混合 | 所有发丝边框和分隔 |
|
|
146
148
|
|
|
147
|
-
**单色方案**:没有第二强调色。`
|
|
149
|
+
**单色方案**:没有第二强调色。`primary-2` 的整条色阶存在只为让两组变量都能解析——`.tag-accent-2` 看起来和 `.tag-accent` 基本一样。
|
|
148
150
|
|
|
149
151
|
#### 色阶(OKLCH 同一感知明度轴,同 step 视觉重量一致)
|
|
150
152
|
|
|
151
153
|
**Neutral** `#f5f5f8` · `#e7e7ea` · `#d4d4d7` · `#b7b7ba` · `#98989b` · `#7a7a7d` · `#5d5d60` · `#424244` · `#2b2b2d`
|
|
152
154
|
|
|
153
|
-
**
|
|
155
|
+
**Primary** `#eef6ff` · `#d6ebff` · `#b5d9fd` · `#94bce3` · `#749dc4` · `#597ea3` · `#416180` · `#2c455d` · `#1d2d3d`
|
|
154
156
|
|
|
155
|
-
**
|
|
157
|
+
**Primary-2(占位)** `#eef6ff` · `#d6ebff` · `#bdd8f2` · `#9ebbd8` · `#7e9cb8` · `#627d98` · `#486077` · `#314457` · `#1f2d3a`
|
|
156
158
|
|
|
157
159
|
用法规则:
|
|
158
160
|
- 100–300 → 浅色填充、hover 底、细边框
|
|
@@ -160,13 +162,13 @@ HARD REQUIREMENT:字体加载与字体族分工禁止替换。标题使用 {ty
|
|
|
160
162
|
- 700–900 → 浅色填充上的文字、按下态
|
|
161
163
|
- 优先取色阶 step,不要临时 `color-mix()`
|
|
162
164
|
|
|
163
|
-
#### `--color-
|
|
165
|
+
#### `--color-primary-900` 的特权
|
|
164
166
|
|
|
165
167
|
`#1d2d3d` 可以铺**整幅色场**——deck 的分节页就用它:钢蓝作地,文字反白成纸色。这是唯一允许大面积上色的地方。(landing 的数字改走「画出来的规格牌」,落在纸底上,是另一套语法,不是色场。)
|
|
166
168
|
|
|
167
169
|
#### 对比度红线
|
|
168
170
|
|
|
169
|
-
|
|
171
|
+
primary 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**不够正文**。段落级钢蓝文字必须用 `--color-primary-700`(`#416180`)。
|
|
170
172
|
|
|
171
173
|
---
|
|
172
174
|
|
|
@@ -193,12 +195,12 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
193
195
|
| h5 | 16px | 同上 |
|
|
194
196
|
| h6 | 13px | **全大写**,letter-spacing 0.08em |
|
|
195
197
|
| body | 15px | line-height 1.55,weight 400 |
|
|
196
|
-
| figcaption | 11px |
|
|
198
|
+
| figcaption | 11px | foreground 55% |
|
|
197
199
|
| `.card-title` | 17px | heading 族 600 |
|
|
198
200
|
| `.card-kicker` | 10px | 大写,ls 0.1em,钢蓝 |
|
|
199
201
|
| `.btn` / `.input` | 14px | 刻意同字号——注册行里两者并排 |
|
|
200
202
|
| `.tag` | 11px | |
|
|
201
|
-
| `.table th` | 11px | 大写,ls 0.08em,
|
|
203
|
+
| `.table th` | 11px | 大写,ls 0.08em,foreground 60% |
|
|
202
204
|
| `.dialog-title` | 20px | |
|
|
203
205
|
|
|
204
206
|
---
|
|
@@ -220,7 +222,7 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
220
222
|
.card, .btn, .input, .tag, .seg, .dialog { border-radius: 0; }
|
|
221
223
|
.card, .dialog { background: transparent; border: 1px solid var(--color-divider); }
|
|
222
224
|
.btn { border: 1px solid var(--color-divider); }
|
|
223
|
-
.btn-primary { border-color: var(--color-
|
|
225
|
+
.btn-primary { border-color: var(--color-primary); }
|
|
224
226
|
```
|
|
225
227
|
|
|
226
228
|
所以实际渲染出来**全部是直角**。radius 变量只对你自己写的元素有意义,组件一律方角。
|
|
@@ -249,7 +251,7 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
249
251
|
|
|
250
252
|
`.blueprint` = `position: relative` + 1px `--color-divider` 边 + `border-radius: 0`。
|
|
251
253
|
|
|
252
|
-
四个 `.corner` 是 11×11px 的十字标,用 `::before`(1px 竖线)+ `::after`(1px 横线)画出,颜色是 `
|
|
254
|
+
四个 `.corner` 是 11×11px 的十字标,用 `::before`(1px 竖线)+ `::after`(1px 横线)画出,颜色是 `foreground` 55%,定位在框外 −6px 处。
|
|
253
255
|
|
|
254
256
|
**注意**:`.blueprint` 与图像处理类(`.halftone` / `.plate` / `.duotone`)共用一个包装器时,样式表强制 `overflow: visible`——因为角标画在盒子外面,框必须赢过图像裁剪。
|
|
255
257
|
|
|
@@ -264,7 +266,7 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
264
266
|
</figure>
|
|
265
267
|
```
|
|
266
268
|
|
|
267
|
-
`.duotone` = `position: relative; overflow: hidden` + 一层 `::after` 铺满 `--color-
|
|
269
|
+
`.duotone` = `position: relative; overflow: hidden` + 一层 `::after` 铺满 `--color-primary`,`mix-blend-mode: color`。效果是照片去饱和后被钢蓝洗过一遍,像跟着主题重新上色的丝网印。
|
|
268
270
|
|
|
269
271
|
**所有内容照片都必须过这个包装器。** 图和图框跟卡片同样待遇:方角、发丝边、带角标,永不圆角、永不裁切成异形。
|
|
270
272
|
|
|
@@ -273,7 +275,7 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
273
275
|
| 类名 | 说明 |
|
|
274
276
|
| --- | --- |
|
|
275
277
|
| `.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 字)。单色调色板下
|
|
278
|
+
| `.tag` + `.tag-accent / -accent-2 / -neutral / -outline` | 方角小标签(100 底 + 800 字)。单色调色板下 primary-2 与 primary 观感相同 |
|
|
277
279
|
| `.field` + `label` / `.input` / `.radio` + `.dot` / `.seg` + `.seg-opt` | 原生元素表单,无脚本。`.input` 36px 高、surface 底、方角、caret 钢蓝 |
|
|
278
280
|
| `.card` + `.card-kicker / -title / -body / -meta` | **透明**、发丝边、方角;配 `.blueprint` + 四角标使用。`.elev-sm/md/lg` 可选高度 |
|
|
279
281
|
| `.nav` + `.nav-brand` | 顶栏,`border-bottom: none` |
|
|
@@ -282,17 +284,17 @@ accent 对底色只到 **3:1** —— 够图标、大字号、界面 chrome,**
|
|
|
282
284
|
| `.hr` | 1px 细线,存在但本系统偏好留白——**避免使用** |
|
|
283
285
|
| `.blueprint` + 四个 `.corner` | 上面第 5 节 |
|
|
284
286
|
| `.duotone` | 上面第 6 节 |
|
|
285
|
-
| `.text-muted` |
|
|
287
|
+
| `.text-muted` | foreground 55% |
|
|
286
288
|
|
|
287
289
|
#### 交互态(已内建,不要逐页重写)
|
|
288
290
|
|
|
289
|
-
- `.btn-primary` hover → `--color-
|
|
290
|
-
- `.btn-secondary` hover →
|
|
291
|
+
- `.btn-primary` hover → `--color-primary-600`;active → `--color-primary-700`
|
|
292
|
+
- `.btn-secondary` hover → foreground 7%;active → 14%
|
|
291
293
|
- `.btn-ghost` hover → 钢蓝 10%;active → 18%
|
|
292
|
-
- `.input:hover` → 边框
|
|
293
|
-
- `.radio input:checked + .dot` → 钢蓝填充 + `inset 0 0 0 4px var(--color-
|
|
294
|
+
- `.input:hover` → 边框 foreground 45%;`:focus-visible` → 钢蓝边框,`outline-offset: 0`
|
|
295
|
+
- `.radio input:checked + .dot` → 钢蓝填充 + `inset 0 0 0 4px var(--color-background)` 做内圈(这里是圆的——radio 保留 `border-radius: 50%`)
|
|
294
296
|
- `.seg-opt:has(input:checked)` → 钢蓝底 + 纸色字
|
|
295
|
-
- 键盘焦点:`:focus-visible { outline: 2px solid var(--color-
|
|
297
|
+
- 键盘焦点:`:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px }`
|
|
296
298
|
- `::selection` → 钢蓝 30%
|
|
297
299
|
- disabled → `opacity: 0.45` + `cursor: not-allowed`
|
|
298
300
|
- `a` → 钢蓝,`text-underline-offset: 3px`;`.nav a:hover` / `[aria-current=page]` → 钢蓝
|
|
@@ -310,11 +312,11 @@ Lucide(lucide.dev),**统一 stroke-width 1.5**。不许用粗描边。
|
|
|
310
312
|
### 禁止清单
|
|
311
313
|
|
|
312
314
|
1. 给卡片、图框、按钮加圆角
|
|
313
|
-
2. 给卡片或图框加填充底(它们是线稿;实心
|
|
315
|
+
2. 给卡片或图框加填充底(它们是线稿;实心 primary 主按钮是唯一刻意的例外)
|
|
314
316
|
3. 从已加框元素上去掉套准标记
|
|
315
317
|
4. 粗描边图标(Lucide 固定 1.5)
|
|
316
|
-
5. 钢蓝之外的装饰色(唯一放行:`--color-
|
|
317
|
-
6. 正文用 `--color-
|
|
318
|
+
5. 钢蓝之外的装饰色(唯一放行:`--color-primary-900` 在 deck 分节页铺整幅)
|
|
319
|
+
6. 正文用 `--color-primary` 本值(要用 `-700`)
|
|
318
320
|
7. 正文也用 Barlow Condensed
|
|
319
321
|
8. `.hr` 当主要分隔手段
|
|
320
322
|
9. 硬编码 hex / 字体名 / px(token 里已有的)
|