pomaster 0.6.0 → 0.6.1
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/README.md +14 -1
- package/dist/bin.js +695 -104
- package/package.json +1 -1
- package/seeds/baseline/frontend/design-tokens.yaml +92 -65
- package/seeds/manifest.json +5 -5
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
# baseline/frontend/design-tokens.yaml —— 语义 Design Token 合同(F-M1
|
|
1
|
+
# baseline/frontend/design-tokens.yaml —— 语义 Design Token 合同(F-M1 最小合同 + Default Design preset 值)
|
|
2
2
|
# 职责(PRD §16 树):语义 token 单一合同面——颜色/字体/间距/圆角/阴影/层级/密度/
|
|
3
3
|
# 布局/动效/断点九组语义 token;UI 只能从本合同的语义 token 与批准组件取得视觉
|
|
4
4
|
# 规则;Agent Context 消费语义 token 而非裸数值(原文 §17 设计原则)。
|
|
5
|
-
# 本文件由 pomaster init 播种(B6D 批增量——09-10 R3/F-M1
|
|
6
|
-
#
|
|
7
|
-
# 快照/closeout 校验/preset
|
|
5
|
+
# 本文件由 pomaster init 播种(B6D 批增量——09-10 R3/F-M1;09-11 Default Design
|
|
6
|
+
# preset 值批回填);seed-once(缺席才写/在座零触碰);确认链第 25 文件
|
|
7
|
+
# (BASELINE_CONFIRM_TARGETS 单一清单——confirm digest 快照/closeout 校验/preset
|
|
8
|
+
# 快照声明三消费面同源;manifest 不自引用)。
|
|
8
9
|
#
|
|
9
10
|
# origin 机器位(词形闭包 preset|customized|owner——22-design-tokens.schema.json
|
|
10
11
|
# 本地闭包,零中央词表 PR):
|
|
@@ -13,9 +14,35 @@
|
|
|
13
14
|
# owner = Owner 全权自著(无预设来源)
|
|
14
15
|
# meta.customized = Owner 定制机器位(P-D1 customize/diff/confirm 全流程消费)。
|
|
15
16
|
#
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
17
|
+
# 值值有出处红线(09-11 preset 值批——自原「零发明内容」全 UNKNOWN 形态升级;纪律
|
|
18
|
+
# 精神不变:无出处的数值禁入播种面,执行形态升级为「具名出处」):
|
|
19
|
+
# 1. 非 UNKNOWN 值逐值可溯源到官方默认主题具名 token 词形——值行尾「<- 词形」
|
|
20
|
+
# 注记 + 下方逐组出处注记;全部数值当日经官方仓库源文件联网实抓核实,禁凭
|
|
21
|
+
# 记忆填数;
|
|
22
|
+
# 2. 无权威出处或映射非唯一的键保持 UNKNOWN(宁缺毋假——行尾注记登记原因,
|
|
23
|
+
# 回填决策留 Owner);
|
|
24
|
+
# 3. origin=preset 的数值是 advisory(Owner 经 baseline confirm 确认前不构成
|
|
25
|
+
# 项目事实——确认链通道不变)。
|
|
26
|
+
#
|
|
27
|
+
# 逐组出处注记(主源 = Ant Design v5 cssinjs 默认主题——本仓 css 选型的 cssinjs
|
|
28
|
+
# 主题栈对应官方默认主题;官方仓库 5.x-stable 分支源文件):
|
|
29
|
+
# color: components/theme/themes/seed.ts(colorPrimary/colorSuccess/colorWarning/colorError/colorInfo)
|
|
30
|
+
# + components/theme/themes/default/colors.ts(colorBgLayout/colorBgContainer/
|
|
31
|
+
# colorBgElevated/colorText 4 档/colorBorder/colorBorderSecondary)
|
|
32
|
+
# typography: seed.ts(fontFamily/fontFamilyCode/fontSize/fontSizeLG)
|
|
33
|
+
# + themes/shared/genFontSizes.ts(fontSizeHeading3/4、lineHeight 派生式)
|
|
34
|
+
# + components/theme/util/alias.ts(fontWeightStrong)
|
|
35
|
+
# spacing: components/theme/util/alias.ts(marginXXS/XS/SM、margin、marginLG/XL——与 padding 族同值)
|
|
36
|
+
# radius: seed.ts(borderRadius)+ themes/shared/genRadius.ts(borderRadiusXS/SM/LG)
|
|
37
|
+
# elevation: components/theme/util/alias.ts(boxShadow、boxShadowCard)
|
|
38
|
+
# density: seed.ts(controlHeight)+ themes/shared/genControlHeight.ts(controlHeightSM)
|
|
39
|
+
# layout: components/layout/style/index.ts(headerHeight = controlHeight*2)
|
|
40
|
+
# motion: seed.ts(motionUnit/motionEaseInOut)+ themes/shared/genCommonMapToken.ts(motionDurationFast/Mid/Slow)
|
|
41
|
+
# breakpoints: components/theme/util/alias.ts(screenSM/screenMD/screenLG/screenXL)
|
|
42
|
+
# 注:brand.primary/semantic.info/surface.page/text.primary/secondary/tertiary/radius
|
|
43
|
+
# 全组/spacing.xxl/typography.line_height.normal 为 Ant Design v4 与 v5 两代默认
|
|
44
|
+
# 分歧位——本 seed 取 v5 cssinjs 同源值(与本仓 css 选型一致);v4 旧默认值不同,
|
|
45
|
+
# Owner 追认后即为项目事实(advisory 纪律不变)。
|
|
19
46
|
#
|
|
20
47
|
# token 命名收敛定稿(原文 §16 layout.section_gap vs §17 spacing.section_gap 二选一):
|
|
21
48
|
# 定稿 = spacing.section_gap——间距语义归 spacing 组(§17 语义 token 先例逐字);
|
|
@@ -26,77 +53,77 @@ meta:
|
|
|
26
53
|
customized: false
|
|
27
54
|
color:
|
|
28
55
|
brand:
|
|
29
|
-
primary:
|
|
30
|
-
secondary: UNKNOWN
|
|
56
|
+
primary: "#1677ff" # <- Seed.colorPrimary
|
|
57
|
+
secondary: UNKNOWN # 无权威词形——默认主题无 secondary 档(宁缺毋假,Owner 决策)
|
|
31
58
|
surface:
|
|
32
|
-
page:
|
|
33
|
-
container:
|
|
34
|
-
elevated:
|
|
59
|
+
page: "#f5f5f5" # <- colors.colorBgLayout(Layout bodyBg 默认取同值)
|
|
60
|
+
container: "#ffffff" # <- colors.colorBgContainer
|
|
61
|
+
elevated: "#ffffff" # <- colors.colorBgElevated
|
|
35
62
|
text:
|
|
36
|
-
primary:
|
|
37
|
-
secondary:
|
|
38
|
-
tertiary:
|
|
39
|
-
disabled:
|
|
63
|
+
primary: "rgba(0, 0, 0, 0.88)" # <- colors.colorText
|
|
64
|
+
secondary: "rgba(0, 0, 0, 0.65)" # <- colors.colorTextSecondary
|
|
65
|
+
tertiary: "rgba(0, 0, 0, 0.45)" # <- colors.colorTextTertiary
|
|
66
|
+
disabled: "rgba(0, 0, 0, 0.25)" # <- alias.colorTextDisabled(= colorTextQuaternary)
|
|
40
67
|
border:
|
|
41
|
-
default:
|
|
42
|
-
subtle:
|
|
43
|
-
strong: UNKNOWN
|
|
68
|
+
default: "#d9d9d9" # <- colors.colorBorder
|
|
69
|
+
subtle: "#f0f0f0" # <- colors.colorBorderSecondary
|
|
70
|
+
strong: UNKNOWN # 无更强边框档词形(宁缺毋假)
|
|
44
71
|
semantic:
|
|
45
|
-
success:
|
|
46
|
-
warning:
|
|
47
|
-
error:
|
|
48
|
-
info:
|
|
72
|
+
success: "#52c41a" # <- Seed.colorSuccess
|
|
73
|
+
warning: "#faad14" # <- Seed.colorWarning
|
|
74
|
+
error: "#ff4d4f" # <- Seed.colorError
|
|
75
|
+
info: "#1677ff" # <- Seed.colorInfo
|
|
49
76
|
typography:
|
|
50
77
|
family:
|
|
51
|
-
sans:
|
|
52
|
-
mono:
|
|
78
|
+
sans: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'" # <- Seed.fontFamily
|
|
79
|
+
mono: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace" # <- Seed.fontFamilyCode
|
|
53
80
|
size:
|
|
54
|
-
caption: UNKNOWN
|
|
55
|
-
body:
|
|
56
|
-
body_large:
|
|
57
|
-
title_small: UNKNOWN
|
|
58
|
-
title_medium:
|
|
59
|
-
title_large:
|
|
81
|
+
caption: UNKNOWN # 无 caption 词形;候选 fontSizeSM=12 映射非唯一(Owner 拍板)
|
|
82
|
+
body: 14 # <- Seed.fontSize
|
|
83
|
+
body_large: 16 # <- Seed.fontSizeLG
|
|
84
|
+
title_small: UNKNOWN # 候选 fontSizeHeading5=16 与 body_large 同值,映射非唯一(Owner 拍板)
|
|
85
|
+
title_medium: 20 # <- genFontSizes.fontSizeHeading4
|
|
86
|
+
title_large: 24 # <- genFontSizes.fontSizeHeading3
|
|
60
87
|
weight:
|
|
61
|
-
regular: UNKNOWN
|
|
62
|
-
medium: UNKNOWN
|
|
63
|
-
semibold:
|
|
88
|
+
regular: UNKNOWN # 无全局 regular 词形(候选 400 是 CSS 平台默认,非库 token——宁缺毋假)
|
|
89
|
+
medium: UNKNOWN # 无全局 medium 词形(候选 500 仅散点出现,非 token 契约——宁缺毋假)
|
|
90
|
+
semibold: 600 # <- alias.fontWeightStrong
|
|
64
91
|
line_height:
|
|
65
|
-
compact: UNKNOWN
|
|
66
|
-
normal:
|
|
67
|
-
relaxed: UNKNOWN
|
|
92
|
+
compact: UNKNOWN # 候选 lineHeightLG=1.5;compact/relaxed 与 SM/LG 映射歧义(Owner 拍板)
|
|
93
|
+
normal: 1.5714285714285714 # <- genFontSizes.lineHeight(官方派生式 (fontSize+8)/fontSize)
|
|
94
|
+
relaxed: UNKNOWN # 候选 lineHeightSM=1.6667;映射歧义同 compact(Owner 拍板)
|
|
68
95
|
spacing:
|
|
69
|
-
xs:
|
|
70
|
-
sm:
|
|
71
|
-
md:
|
|
72
|
-
lg:
|
|
73
|
-
xl:
|
|
74
|
-
xxl:
|
|
75
|
-
section_gap: UNKNOWN
|
|
96
|
+
xs: 4 # <- alias.marginXXS/paddingXXS
|
|
97
|
+
sm: 8 # <- alias.marginXS/paddingXS
|
|
98
|
+
md: 12 # <- alias.marginSM/paddingSM
|
|
99
|
+
lg: 16 # <- alias.margin/padding
|
|
100
|
+
xl: 24 # <- alias.marginLG/paddingLG
|
|
101
|
+
xxl: 32 # <- alias.marginXL/paddingXL
|
|
102
|
+
section_gap: UNKNOWN # 无 section 词形;候选 marginLG=24 / marginXL=32 映射非唯一(Owner 拍板)
|
|
76
103
|
radius:
|
|
77
|
-
sm:
|
|
78
|
-
md:
|
|
79
|
-
lg:
|
|
104
|
+
sm: 4 # <- genRadius.borderRadiusSM
|
|
105
|
+
md: 6 # <- Seed.borderRadius
|
|
106
|
+
lg: 8 # <- genRadius.borderRadiusLG
|
|
80
107
|
elevation:
|
|
81
|
-
card:
|
|
82
|
-
popover:
|
|
83
|
-
modal:
|
|
108
|
+
card: "0 1px 2px -2px rgba(0,0,0,0.16), 0 3px 6px 0 rgba(0,0,0,0.12), 0 5px 12px 4px rgba(0,0,0,0.09)" # <- alias.boxShadowCard
|
|
109
|
+
popover: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)" # <- alias.boxShadow
|
|
110
|
+
modal: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)" # <- alias.boxShadow(默认主题 popover/modal 共用同档,如实注记)
|
|
84
111
|
density:
|
|
85
|
-
control_height:
|
|
86
|
-
compact_control_height:
|
|
87
|
-
table_row_height: UNKNOWN
|
|
88
|
-
compact_table_row_height: UNKNOWN
|
|
112
|
+
control_height: 32 # <- Seed.controlHeight
|
|
113
|
+
compact_control_height: 24 # <- genControlHeight.controlHeightSM
|
|
114
|
+
table_row_height: UNKNOWN # 行高非 token(派生自单元格 padding,无高度词形——Owner 决策)
|
|
115
|
+
compact_table_row_height: UNKNOWN # 同上(宁缺毋假)
|
|
89
116
|
layout:
|
|
90
|
-
page_padding: UNKNOWN
|
|
91
|
-
content_max_width: UNKNOWN
|
|
92
|
-
sidebar_width: UNKNOWN
|
|
93
|
-
header_height:
|
|
117
|
+
page_padding: UNKNOWN # 无页面结构 padding token(Owner 决策)
|
|
118
|
+
content_max_width: UNKNOWN # 官方无 foundation 词形(Owner 决策)
|
|
119
|
+
sidebar_width: UNKNOWN # 组件 prop 非 design token(Owner 决策)
|
|
120
|
+
header_height: 64 # <- Layout.headerHeight(= controlHeight*2)
|
|
94
121
|
motion:
|
|
95
|
-
fast:
|
|
96
|
-
normal:
|
|
97
|
-
slow:
|
|
122
|
+
fast: "0.1s" # <- genCommonMapToken.motionDurationFast
|
|
123
|
+
normal: "0.2s" # <- genCommonMapToken.motionDurationMid
|
|
124
|
+
slow: "0.3s" # <- genCommonMapToken.motionDurationSlow
|
|
98
125
|
breakpoints:
|
|
99
|
-
sm:
|
|
100
|
-
md:
|
|
101
|
-
lg:
|
|
102
|
-
xl:
|
|
126
|
+
sm: 576 # <- alias.screenSM
|
|
127
|
+
md: 768 # <- alias.screenMD
|
|
128
|
+
lg: 992 # <- alias.screenLG
|
|
129
|
+
xl: 1200 # <- alias.screenXL
|
package/seeds/manifest.json
CHANGED
|
@@ -666,12 +666,12 @@
|
|
|
666
666
|
"seed_version": "B6D",
|
|
667
667
|
"lane": "frontend",
|
|
668
668
|
"authoring": "new",
|
|
669
|
-
"source_path": "doc/POMaster-Project-Baseline-Framework-v2-PRD.md#s16-design-tokens-yaml-contract(Baseline PRD §16 token 合同骨架逐字承载+§17 命名收敛定稿;新著无 vendor 字节源——语义祖先=§16
|
|
670
|
-
"source_sha256": "
|
|
671
|
-
"source_bytes":
|
|
669
|
+
"source_path": "doc/POMaster-Project-Baseline-Framework-v2-PRD.md#s16-design-tokens-yaml-contract(Baseline PRD §16 token 合同骨架逐字承载+§17 命名收敛定稿;新著无 vendor 字节源——语义祖先=§16 九组骨架;09-11 preset 值批=官方默认主题具名词形回填)",
|
|
670
|
+
"source_sha256": "d2bc2733829e1d75ab9dd49f686a1192ac870cf357f80fd50db91a32ed7541b1",
|
|
671
|
+
"source_bytes": 8356,
|
|
672
672
|
"porting_notes": [
|
|
673
|
-
"R3/F-M1 增量新著件(B6D 批补位,09-10-baseline-confirm-chain-governance):语义 token 骨架九组(Baseline PRD §16 分组逐字;spacing.section_gap 命名收敛定稿——§16 layout.section_gap 废弃,理由住 seed 头注与 22 号 schema)
|
|
674
|
-
"R3 形态注记:本件无 frontmatter(纯 yaml——直接可解析,Owner 填写面);清单 pin=资产自身字节 sha256(authoring=new
|
|
673
|
+
"R3/F-M1 增量新著件(B6D 批补位,09-10-baseline-confirm-chain-governance):语义 token 骨架九组(Baseline PRD §16 分组逐字;spacing.section_gap 命名收敛定稿——§16 layout.section_gap 废弃,理由住 seed 头注与 22 号 schema)。09-11 preset 值批(design-token-preset-values)值回填:44 键取 Default Design preset 值——值值有出处红线,逐值行尾注记官方具名词形(主源=Ant Design v5 cssinjs 默认主题,官方仓库 5.x-stable 源文件:seed.ts/colors.ts/alias.ts/genRadius.ts/genControlHeight.ts/genFontSizes.ts/genCommonMapToken.ts/layout style;全部数值当日联网实抓核实);无权威出处/映射非唯一 14 键保持 UNKNOWN(宁缺毋假,Owner 决策)——原文示例数值仍禁伪造成项目事实(PRD §7.1 NON-AUTHORITATIVE;origin=preset advisory 语义不变)",
|
|
674
|
+
"R3 形态注记:本件无 frontmatter(纯 yaml——直接可解析,Owner 填写面);清单 pin=资产自身字节 sha256(authoring=new 自指指纹;09-11 preset 值批内容变更,自指指纹同步重 pin——B6D 批分母 26 件不变仅本件内容变);确认链第 25 文件(BASELINE_CONFIRM_TARGETS ADR-20 扩位——digest 快照/closeout/preset 声明三消费面同源;形状契约=packages/schemas/assets/22-design-tokens.schema.json,baseline-tokens.ts 装载校验;已确认工作区遇本批变更走既有漂移→显式重确认通道)"
|
|
675
675
|
]
|
|
676
676
|
},
|
|
677
677
|
{
|