feat(design): 对标声明字阶/空白带/影像比例真源 + R12–R17 语法闸
来源:2026-11-02 对 Porsche Consulting 中国站首页的 live 实测(1600×900 /
390×844,逐元素 getComputedStyle + getBoundingClientRect)。
令牌层
- --font-size-statement 56/68/81px:对标实测字阶为 16/18/24/40/64/80,本仓在
63px(5xl)与 108px(7xl)之间有一级空档,64/80 无处落。
- --spacer-band 7.5rem:对标首页两条独立的 120px 空模块(内部零内容、padding 0),
它的节奏不靠段内 padding,而靠一条命名的空白带。
- --aspect-{hero-wide,editorial,square,tile}:对标首页逐个 <img> 量出的四种比例,
每种绑一个构图角色;JS 侧同一份数在 image-ratios.ts,由 R12 逐字对账。
门禁层(R12–R17)
- R12 影像比例两侧真源与实测值逐字相等
- R13 营销面零非记档圆角 / R14 hover 不抬升 / R15 零装饰阴影
- R16 零品牌红彩色面 / R17 零 font-black
五条都是递减棘轮(现取 71/21/21/26/53,全部顶在上限 = 存量一处未清),
分母 = 营销面扫描文件数(78),地板 60 防止路径正则失配导致集体空转。
顺带清掉 detail-cta-section 的 2 处 rounded-full,使 R13 的 71 与实地一致
(不清理则本分支读数 73 > 上限 71,闸会红 —— 那是真实的存量差,不是噪声)。
验证:check:grammar --selftest 9/9 + R10/R11/R12/R13–R17 各自自证通过;
check:grammar EXIT=0(17/17);jest src/components/detail 32/32 通过。
This commit is contained in:
1 parent
03be1c9e36
commit
ce4685cf0a
5 files changed
+281
-21
No files matched your search
@@ -152,6 +152,9 @@ module.exports = {
|
||||
'6xl': 'var(--font-size-6xl)',
|
||||
'7xl': 'var(--font-size-7xl)',
|
||||
display: 'var(--font-size-display)',
|
||||
/* 对标实测声明档(Porsche Consulting 中国站 64/80px)—— 见 globals.css 的
|
||||
--font-size-statement 注释:本仓在 63px 与 108px 之间原本有一级空档。 */
|
||||
statement: 'var(--font-size-statement)',
|
||||
},
|
||||
lineHeight: {
|
||||
caption: 'var(--line-height-caption)',
|
||||
@@ -180,6 +183,8 @@ module.exports = {
|
||||
'4xl': 'var(--spacing-4xl)',
|
||||
'5xl': 'var(--spacing-5xl)',
|
||||
'6xl': 'var(--spacing-6xl)',
|
||||
/* 对标实测的段间空白带(Porsche 首页两条 120px 空模块)。见 globals.css --spacer-band。 */
|
||||
band: 'var(--spacer-band)',
|
||||
},
|
||||
borderRadius: {
|
||||
xs: 'var(--radius-xs)',
|
||||
|
||||
Reference in new issue
Block a user