BRAND-MANUAL.md 收敛识别方案裁定与实测判据;TOKEN-MIGRATION.md 记 P1/P3/P4 迁移面与孪生缺陷; TEST-PATCH.md 记 P7 的 1→0 实测。随包入库的是结论赖以成立的仪器与证据:check-assets、check-manual、 verify-assets-cross、check-wordmark-copies、check-docsync、check-probes(四段闸,每段带能失败的负例)、 check-baseline-shift.cjs(平移感知基线判据,四合成样本两绿两红自测通过;它取代被证伪的 「diff 包围盒不许越页眉带」)与 measured/baseline-shift-p1.json(第一批 104 张逐张分类,带 _src 出处戳)。 大体积工作件不入库:样机 HTML 与栅格截图 100+MB、字体母版 45MB 留在盘上,入库 690 个文本/矢量件。
467 lines
28 KiB
Python
467 lines
28 KiB
Python
#!/usr/bin/env python3
|
||
# -*- coding: utf-8 -*-
|
||
"""
|
||
睿新致远 / Novalon —— 8 版跨风格样本(style sampler)
|
||
|
||
目的:上一轮三版「纯账本风」被判为不好看。问题不在方向选错,而在
|
||
我用系统黑体直接排「睿新致远」——那不是字标,是占位符。
|
||
故本页把「风格」与「字族」两个变量同时铺开,让你能直接指。
|
||
|
||
字族可用性:已用 canvas 像素比对在本机实测(非猜字体名)。
|
||
与 monospace/sans-serif/serif 三种回退的渲染签名均不同的中文字族共 13 个,
|
||
本页取用其中 6 个:STSong(宋) / Hiragino Mincho ProN(明朝) / STFangsong(仿宋)
|
||
/ STKaiti·Kaiti SC(楷) / Heiti SC(黑) / Hanzipen SC(手写),另加 PingFang SC 作基准。
|
||
|
||
冲突标注:PRODUCT.md / DESIGN.md / ADR-0006 的现行硬约束,逐条标在哪一版被破。
|
||
"""
|
||
import base64
|
||
import os
|
||
|
||
HERE = os.path.dirname(os.path.abspath(__file__))
|
||
REPO = os.path.abspath(os.path.join(HERE, "..", ".."))
|
||
FONT = os.path.join(REPO, "src", "app", "fonts", "geist-sans.woff2")
|
||
|
||
INK, RED, WHITE = "#0A0E14", "#C41E3A", "#FFFFFF"
|
||
MIST = "#F8FAFC"
|
||
CN, EN = "睿新致远", "NOVALON"
|
||
|
||
# 实测可用的字族栈
|
||
SONG = "'Songti SC','STSong','Hiragino Mincho ProN',serif"
|
||
MINCHO = "'Hiragino Mincho ProN','YuMincho','Songti SC',serif"
|
||
FANG = "'STFangsong','Songti SC',serif"
|
||
KAI = "'STKaiti','Kaiti SC',serif"
|
||
HEI = "'Heiti SC','PingFang SC',sans-serif"
|
||
PING = "'PingFang SC','Hiragino Sans GB',sans-serif"
|
||
LATIN_SERIF = "Georgia,'Times New Roman',serif"
|
||
LATIN_SANS = "'Geist',ui-sans-serif,-apple-system,sans-serif"
|
||
|
||
|
||
def T(x, y, s, fill, txt, fam=PING, w=None, ls=None, anchor=None, op=None):
|
||
a = ['x="%g"' % x, 'y="%g"' % y, 'font-family="%s"' % fam, 'font-size="%g"' % s,
|
||
'fill="%s"' % fill]
|
||
if w is not None:
|
||
a.append('font-weight="%s"' % w)
|
||
if ls is not None:
|
||
a.append('letter-spacing="%g"' % ls)
|
||
if anchor:
|
||
a.append('text-anchor="%s"' % anchor)
|
||
if op is not None:
|
||
a.append('opacity="%g"' % op)
|
||
return "<text %s>%s</text>" % (" ".join(a), txt)
|
||
|
||
|
||
def R(x, y, w, h, fill, op=None, rx=None):
|
||
extra = (' rx="%g"' % rx) if rx else ""
|
||
o = (' opacity="%g"' % op) if op is not None else ""
|
||
return '<rect x="%g" y="%g" width="%g" height="%g" fill="%s"%s%s/>' % (x, y, w, h, fill, o, extra)
|
||
|
||
|
||
def LINE(x1, y1, x2, y2, stroke, sw=1, op=None, cap=None):
|
||
o = (' opacity="%g"' % op) if op is not None else ""
|
||
c = (' stroke-linecap="%s"' % cap) if cap else ""
|
||
return ('<line x1="%g" y1="%g" x2="%g" y2="%g" stroke="%s" stroke-width="%g"%s%s/>'
|
||
% (x1, y1, x2, y2, stroke, sw, o, c))
|
||
|
||
|
||
# ---------------------------------------------------------------------------
|
||
# 8 版风格
|
||
# ---------------------------------------------------------------------------
|
||
def s1():
|
||
"""编辑宋体 · 报头双细线 + 朱角(财新 / The Economist / 顶级智库)"""
|
||
b = []
|
||
b.append(T(0, 52, 50, INK, CN, fam=SONG, w="700", ls=2))
|
||
b.append(LINE(0, 64, 300, 64, INK, 1.2))
|
||
b.append(LINE(0, 68.5, 300, 68.5, INK, 2.6))
|
||
b.append(R(0, 78, 7, 7, RED))
|
||
b.append(T(16, 87, 15, INK, EN, fam=LATIN_SERIF, w="400", ls=5.5, op=.72))
|
||
return 300, 100, "".join(b), "报头双细线是「可审计」的视觉同义词;宋体的横竖对比让四字自己就有骨架。"
|
||
|
||
|
||
def s2():
|
||
"""明朝细字 · 大字距留白(原研哉 / MUJI / 日本编辑设计)"""
|
||
b = []
|
||
b.append(T(0, 56, 38, INK, CN, fam=MINCHO, w="400", ls=14, op=.9))
|
||
b.append(T(2, 80, 11.5, INK, EN, fam=LATIN_SANS, w="500", ls=9.5, op=.42))
|
||
return 340, 100, "".join(b), "不靠任何图形,靠空气与细笔画立品质感;最安静的一版。"
|
||
|
||
|
||
def s3():
|
||
"""圆章徽标 · 环心单字(Porsche 盾徽血统 / 学院 / 律所)"""
|
||
b = []
|
||
b.append('<circle cx="50" cy="50" r="38" fill="none" stroke="%s" stroke-width="3"/>' % INK)
|
||
b.append('<circle cx="50" cy="50" r="30.5" fill="none" stroke="%s" stroke-width="1" opacity=".45"/>' % INK)
|
||
b.append('<path d="M 23.6 24.5 A 38 38 0 0 1 76.4 24.5" fill="none" stroke="%s" stroke-width="5"/>' % RED)
|
||
b.append(T(50, 63, 33, INK, "睿", fam=SONG, w="700", anchor="middle"))
|
||
b.append(T(108, 47, 30, INK, CN, fam=HEI, w="700", ls=2))
|
||
b.append(T(110, 76, 14, INK, EN, fam=LATIN_SERIF, ls=5.2, op=.62))
|
||
return 400, 100, "".join(b), "把「印章」翻译成西方纹章语法:圆环 + 顶弧上朱 + 中心单字。识别度最高。"
|
||
|
||
|
||
def s4():
|
||
"""一笔水墨 · 楷体单字 + 现代黑体字标(文化资产路线,破 ADR-0006)"""
|
||
b = []
|
||
b.append(T(2, 76, 74, INK, "睿", fam=KAI, w="400"))
|
||
b.append(R(56, 58, 15, 15, RED))
|
||
b.append(T(96, 48, 33, INK, CN, fam=PING, w="700", ls=3))
|
||
b.append(LINE(98, 60, 296, 60, INK, 1, op=.28))
|
||
b.append(T(98, 80, 13, INK, EN, fam=LATIN_SANS, w="500", ls=6.5, op=.55))
|
||
return 420, 100, "".join(b), "只留一笔毛笔意,其余全现代;最「有性格」,也最明确地违反现行裁定。"
|
||
|
||
|
||
def s5():
|
||
"""深色科技 · 渐变描边 + 菱形核(Linear / Vercel 路线,破 PRODUCT.md:17)"""
|
||
b = [R(0, 0, 420, 100, INK)]
|
||
b.append('<defs><linearGradient id="g5" x1="0" x2="1" y1="0" y2="0">'
|
||
'<stop offset="0" stop-color="%s"/><stop offset=".55" stop-color="#E04A68"/>'
|
||
'<stop offset="1" stop-color="%s" stop-opacity="0"/></linearGradient></defs>' % (RED, RED))
|
||
b.append('<g transform="translate(46,50) rotate(45)">'
|
||
'<rect x="-19" y="-19" width="38" height="38" fill="none" stroke="%s" stroke-width="2.4"/>'
|
||
'<rect x="-7.5" y="-7.5" width="15" height="15" fill="%s"/></g>' % (WHITE, RED))
|
||
b.append(T(96, 48, 34, WHITE, CN, fam=PING, w="700", ls=2))
|
||
b.append(R(96, 58, 236, 2.4, "url(#g5)"))
|
||
b.append(T(97, 80, 12.5, WHITE, EN, fam=LATIN_SANS, w="500", ls=7, op=.5))
|
||
return 420, 100, "".join(b), "深色底 + 渐变信号线 + 菱形核;最像「AI 技术咨询」,但渐变是明文禁止项。"
|
||
|
||
|
||
def s6():
|
||
"""仿宋刻本 · 版心框 + 鱼尾记(古籍版刻 / 出版社 / 学术机构)"""
|
||
b = []
|
||
b.append('<rect x="1" y="9" width="298" height="74" fill="none" stroke="%s" stroke-width="2.2"/>' % INK)
|
||
b.append('<path d="M 140 9 L 150 24 L 160 9 Z" fill="%s"/>' % RED)
|
||
b.append(T(150, 58, 40, INK, CN, fam=FANG, w="400", ls=6, anchor="middle"))
|
||
b.append(T(150, 99, 13, INK, EN, fam=LATIN_SERIF, ls=6.5, anchor="middle", op=.66))
|
||
return 300, 108, "".join(b), "版心框与鱼尾记是中文排印里最古老的「结构即装饰」;书卷气最重。"
|
||
|
||
|
||
def s7():
|
||
"""几何花押 · 细线 N + 朱点(现代设计事务所 / 建筑所)"""
|
||
b = []
|
||
b.append('<rect x="12" y="12" width="76" height="76" fill="none" stroke="%s" stroke-width="1.6" opacity=".5"/>')
|
||
b[-1] = b[-1] % INK
|
||
b.append('<path d="M 32 74 L 32 26 L 68 74 L 68 26" fill="none" stroke="%s" stroke-width="6" '
|
||
'stroke-linejoin="miter"/>' % INK)
|
||
b.append('<circle cx="50" cy="50" r="5.5" fill="%s"/>' % RED)
|
||
b.append(T(110, 47, 31, INK, CN, fam=PING, w="500", ls=7))
|
||
b.append(T(112, 76, 13, INK, EN, fam=LATIN_SANS, w="400", ls=8, op=.5))
|
||
return 400, 100, "".join(b), "单线花押 + 一个朱点:图形感强但不喊口号,最接近「设计师给设计公司做的」。"
|
||
|
||
|
||
def s8():
|
||
"""竖排条幅 · 直书二列 + 朱记(中文独有的版面资产)"""
|
||
b = []
|
||
for i, ch in enumerate("睿新"):
|
||
b.append(T(20, 34 + i * 32, 27, INK, ch, fam=SONG, w="700", anchor="middle"))
|
||
b.append(LINE(20, 46, 20, 62, INK, 1.4, op=.35))
|
||
b.append(R(9, 82, 22, 5, RED))
|
||
b.append(T(56, 46, 34, INK, CN, fam=SONG, w="700", ls=3))
|
||
b.append(T(58, 78, 13, INK, EN, fam=LATIN_SERIF, ls=6, op=.6))
|
||
return 330, 100, "".join(b), "把直书当成别人抄不走的版面资产;宋体竖排 + 横排字标形成中文品牌少见的双轴。"
|
||
|
||
|
||
# --- 第二批:借设计史上公认优秀 logo 的「原理」,不描其形状 ---------------------
|
||
def s9():
|
||
"""条纹结构字 —— 参考 IBM(Paul Rand, 1972,八条横纹)。
|
||
借的原理:把「结构线」直接切进字身,让字标自己携带秩序感。
|
||
条纹用 mask 挖空(不是叠白块),故在深色底上依然成立。"""
|
||
b = ['<defs><mask id="m9"><rect x="0" y="0" width="340" height="100" fill="#fff"/>']
|
||
for y in (24, 34.5, 45, 55.5, 66):
|
||
b.append('<rect x="0" y="%g" width="340" height="3.2" fill="#000"/>' % y)
|
||
b.append('</mask></defs>')
|
||
b.append('<text x="0" y="72" font-family="%s" font-size="54" font-weight="700" '
|
||
'letter-spacing="2" fill="%s" mask="url(#m9)">%s</text>' % (HEI, INK, CN))
|
||
b.append(T(2, 92, 12, INK, EN, fam=LATIN_SANS, w="500", ls=7.5, op=.55))
|
||
return 340, 100, "".join(b), ("条纹=账本横线=数据行,把「可审计」直接刻进字形。"
|
||
"小尺寸需另出无条纹版,否则笔画被切断。")
|
||
|
||
|
||
def s10():
|
||
"""负形箭头 —— 参考 FedEx(Lindon Leader / Landor, 1994,E 与 x 之间藏箭头)。
|
||
借的原理:识别不靠外加图形,靠形状之间的「空」。"""
|
||
b = []
|
||
b.append('<path fill-rule="evenodd" fill="%s" d="M 8 12 L 88 12 L 88 92 L 8 92 Z '
|
||
'M 74 22 L 30 36 L 60 66 Z"/>' % INK)
|
||
b.append(R(8, 12, 8, 80, RED))
|
||
b.append(T(108, 52, 33, INK, CN, fam=PING, w="700", ls=3))
|
||
b.append(T(110, 82, 13.5, INK, EN, fam=LATIN_SANS, w="500", ls=6.5, op=.55))
|
||
return 400, 100, "".join(b), ("箭头只存在于「空」里,不额外加图形;左缘一条朱边=账本行首标记。"
|
||
"最聪明的一版,但需要观众第二次看才发现。")
|
||
|
||
|
||
def s11():
|
||
"""环扣交叠 —— 参考 Mastercard(双圆交叠,1966 起)/ Audi(四环,Auto Union 1932)。
|
||
借的原理:用两个主体的交叠区表达「同行、共创」,交叠处上朱。"""
|
||
b = []
|
||
b.append('<rect x="40" y="18" width="24" height="56" fill="%s"/>' % RED) # 仅交叠区
|
||
for x in (8, 40):
|
||
b.append('<rect x="%g" y="18" width="56" height="56" fill="none" stroke="%s" '
|
||
'stroke-width="2.6"/>' % (x, INK))
|
||
b.append(T(120, 52, 33, INK, CN, fam=PING, w="700", ls=3))
|
||
b.append(T(122, 82, 13.5, INK, EN, fam=LATIN_SANS, w="500", ls=6.5, op=.55))
|
||
return 412, 100, "".join(b), ("语义最贴品牌定位「同行者」:客户与我们交叠出的那块才是价值。"
|
||
"红被限制在交叠区,天然 ≤10%。")
|
||
|
||
|
||
def s12():
|
||
"""朱框落款 —— 参考 National Geographic(黄色边框,1888 起为封面框)。
|
||
借的原理:一个框就能成为品牌——框=「被郑重圈出的结论」。"""
|
||
b = []
|
||
b.append('<rect x="3" y="3" width="330" height="94" fill="none" stroke="%s" stroke-width="6"/>' % RED)
|
||
b.append(T(172, 56, 44, INK, CN, fam=SONG, w="700", ls=5, anchor="middle"))
|
||
b.append(T(172, 82, 13, INK, EN, fam=LATIN_SERIF, ls=7, anchor="middle", op=.62))
|
||
return 336, 100, "".join(b), ("框即符号,无需再造一个图形;深色底上朱框依然成立。"
|
||
"风险是框在 16px 下会糊成一条边。")
|
||
|
||
|
||
def s13():
|
||
"""拉丁主导花押 —— 参考 Sony(1958 起定制拉丁字标)/ Bosch / Braun。
|
||
借的原理:把英文行升为主识别、中文降为副行——面向国际市场的技术咨询最常用的一手。"""
|
||
b = []
|
||
b.append('<circle cx="40" cy="46" r="26" fill="none" stroke="%s" stroke-width="5"/>' % INK)
|
||
b.append('<circle cx="40" cy="46" r="8.5" fill="%s"/>' % RED)
|
||
b.append(T(84, 58, 42, INK, EN, fam=LATIN_SANS, w="700", ls=1.5))
|
||
b.append(T(86, 84, 15, INK, CN, fam=PING, w="400", ls=9, op=.62))
|
||
return 372, 100, "".join(b), ("唯一把 NOVALON 放在第一层级的一版;开口圆环=未闭合的系统,"
|
||
"红心=被点亮的结论。中文降为副行需你确认口径。")
|
||
|
||
|
||
STYLES = [
|
||
dict(id="S1", nm="编辑宋体", tag="Editorial Serif", fn=s1,
|
||
mood="权威 · 可审计 · 智库", ref="财新 / The Economist / 麦肯锡季报",
|
||
conflict=None,
|
||
note="DESIGN.md:201 的 --font-serif 是既有令牌,不算新造风格。"),
|
||
dict(id="S2", nm="明朝细字", tag="Genkan Mincho", fn=s2,
|
||
mood="安静 · 高级 · 留白", ref="原研哉 / MUJI / 21_21",
|
||
conflict=None,
|
||
note="无图形符号,与「朱砂 ≤10%」零冲突;但同样要面对 favicon 无符号的问题。"),
|
||
dict(id="S3", nm="圆章徽标", tag="Crest / Roundel", fn=s3,
|
||
mood="正统 · 机构 · 传承", ref="Porsche 盾徽 / 律所 / 常春藤",
|
||
conflict=None,
|
||
note="保时捷母品牌正是纹章路线;这版把旧印章翻译进西方纹章语法,过渡叙事最顺。"),
|
||
dict(id="S4", nm="一笔水墨", tag="One-stroke Ink", fn=s4,
|
||
mood="文化 · 性格 · 东方", ref="中国银行 / 无印良品 / 日本家纹",
|
||
conflict="破 ADR-0006 与 DESIGN.md:238(书法/楷体新页面禁用)",
|
||
note="最「好看」的一版,但要你先撤销 CONTEXT.md:24 与 ADR-0006 的相关裁定。"),
|
||
dict(id="S5", nm="深色科技", tag="Tech Dark", fn=s5,
|
||
mood="前沿 · 工程 · AI 感", ref="Linear / Vercel / Stripe",
|
||
conflict="破 PRODUCT.md:17(禁多色渐变)与 ADR-0006(去水墨/去炫技)",
|
||
note="深色底 + 渐变信号线;「IT 技术咨询」最直觉的那一版,但与现行规范正面冲突。"),
|
||
dict(id="S6", nm="仿宋刻本", tag="Letterpress", fn=s6,
|
||
mood="学术 · 出版 · 考究", ref="中华书局 / 古籍版刻 / 大学出版社",
|
||
conflict=None,
|
||
note="版心框 + 鱼尾记是纯结构装饰,不违反「不做装饰性边框」的原意(那条针对的是发光描边)。"),
|
||
dict(id="S7", nm="几何花押", tag="Fine Monogram", fn=s7,
|
||
mood="设计 · 克制 · 事务所", ref="Pentagram / 建筑事务所 / 高端室内",
|
||
conflict=None,
|
||
note="细线 + 单点朱砂,识别度靠线条密度对比,不靠颜色。"),
|
||
dict(id="S8", nm="竖排条幅", tag="Vertical CJK", fn=s8,
|
||
mood="中文独有 · 版面资产", ref="诚品 / 台北当代艺术馆 / 中文报头",
|
||
conflict=None,
|
||
note="竞品(含贝恩、保时捷)在结构上抄不走的一版:直书是中文专属轴。"),
|
||
dict(id="S9", nm="条纹结构字", tag="Striped Letterform", fn=s9,
|
||
mood="秩序 · 数据 · 工业", ref="IBM(Paul Rand 1972 八横纹)",
|
||
conflict=None,
|
||
note="条纹用 mask 挖空而非叠白块,深色底同样成立。是「Crimson Ledger」最字面的实现。"),
|
||
dict(id="S10", nm="负形箭头", tag="Negative Space", fn=s10,
|
||
mood="聪明 · 指向 · 结论", ref="FedEx(Lindon Leader 1994 隐藏箭头)",
|
||
conflict=None,
|
||
note="识别藏在「空」里;需要观众第二次看才发现——这是它的优点也是它的风险。"),
|
||
dict(id="S11", nm="环扣交叠", tag="Interlock", fn=s11,
|
||
mood="同行 · 共创 · 结构", ref="Mastercard 双圆 / Audi 四环(Auto Union 1932)",
|
||
conflict=None,
|
||
note="语义与品牌定位「同行者」直接对齐,且红被天然限制在交叠区(≈10% 以内)。"),
|
||
dict(id="S12", nm="朱框落款", tag="The Frame", fn=s12,
|
||
mood="郑重 · 机构 · 封面", ref="National Geographic 黄框(1888 起)",
|
||
conflict=None,
|
||
note="一个框就是符号,不必再造图形;16px 下框会糊,需出无框版。"),
|
||
dict(id="S13", nm="拉丁主导", tag="Latin-led", fn=s13,
|
||
mood="国际 · 产品 · 工程", ref="Sony(1958 定制拉丁字标)/ Bosch / Braun",
|
||
conflict="改变中文/英文层级,需同步 CONTEXT.md:201 的署名口径",
|
||
note="唯一把 NOVALON 放第一层级的一版;若主市场在国内,中文降副行需你确认。"),
|
||
]
|
||
|
||
|
||
# ---------------------------------------------------------------------------
|
||
def wrap_svg(w, h, body, px=None, cls=""):
|
||
style = (' style="height:%dpx;width:auto;display:block"' % px) if px else \
|
||
' style="width:100%;height:auto;display:block"'
|
||
return ('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %g %g" %s'
|
||
'class="%s" preserveAspectRatio="xMidYMid meet">%s</svg>' % (w, h, style, cls, body))
|
||
|
||
|
||
CSS = """
|
||
@font-face{font-family:'Geist';src:url(data:font/woff2;base64,__GEIST__) format('woff2');
|
||
font-weight:100 900;font-display:swap}
|
||
:root{--ink:#0A0E14;--red:#C41E3A;--mist:#F8FAFC;--hair:rgba(10,14,20,.13);
|
||
--muted:rgba(10,14,20,.58);--ease:cubic-bezier(.22,1,.36,1)}
|
||
*{box-sizing:border-box}
|
||
body{margin:0;background:#fff;color:var(--ink);font-family:'Geist',ui-sans-serif,-apple-system,sans-serif;
|
||
font-size:15px;line-height:1.7}
|
||
.wrap{max-width:1180px;margin:0 auto;padding:0 26px}
|
||
header.top{padding:52px 0 30px;border-bottom:1px solid var(--ink)}
|
||
.eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
|
||
h1{font-family:'PingFang SC','Songti SC',serif;font-size:36px;font-weight:700;margin:12px 0 10px;line-height:1.25}
|
||
h1 em{font-style:normal;color:var(--red)}
|
||
.lede{max-width:76ch;color:var(--muted);font-family:'PingFang SC',serif}
|
||
.row{display:grid;grid-template-columns:1fr 268px;border-bottom:1px solid var(--hair);
|
||
transition:background 280ms var(--ease)}
|
||
.row:hover{background:var(--mist)}
|
||
.art{padding:26px 30px 20px;display:flex;flex-direction:column;gap:16px;border-right:1px solid var(--hair)}
|
||
.big{display:flex;align-items:center;justify-content:center;min-height:118px;
|
||
background:#fff;border:1px solid var(--hair);padding:14px 18px}
|
||
.smalls{display:flex;align-items:flex-end;gap:22px;flex-wrap:wrap;border-top:1px dashed var(--hair);
|
||
padding-top:14px}
|
||
.u{text-align:center}.u>span{display:block;font-size:10px;letter-spacing:.1em;color:var(--muted);margin-top:5px}
|
||
.meta{padding:24px 24px 26px;display:flex;flex-direction:column;gap:8px}
|
||
.meta h2{font-family:'PingFang SC',serif;font-size:19px;font-weight:700;margin:0;
|
||
display:flex;align-items:baseline;gap:9px}
|
||
.meta h2 .id{font-size:11px;letter-spacing:.14em;color:var(--red);font-weight:500}
|
||
.tag{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
|
||
.mood{font-family:'PingFang SC',serif;font-size:13.5px}
|
||
.ref{font-family:'PingFang SC',serif;font-size:12.5px;color:var(--muted)}
|
||
.note{font-family:'PingFang SC',serif;font-size:12.5px;color:var(--muted);
|
||
border-left:2px solid var(--hair);padding-left:10px}
|
||
.warnbox{font-family:'PingFang SC',serif;font-size:12.5px;color:var(--red);
|
||
border-left:2px solid var(--red);padding-left:10px}
|
||
section.band{padding:34px 0 8px}
|
||
h2.band{font-family:'PingFang SC',serif;font-size:21px;font-weight:700;margin:0 0 8px}
|
||
table{width:100%;border-collapse:collapse;font-size:13px;font-family:'PingFang SC',serif;margin:12px 0}
|
||
th,td{text-align:left;padding:9px 11px;border-bottom:1px solid var(--hair);vertical-align:top}
|
||
th{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:500}
|
||
code{font-family:'Geist Mono',ui-monospace,Menlo,monospace;font-size:.88em;background:var(--mist);
|
||
padding:1px 5px;border:1px solid var(--hair)}
|
||
footer{padding:26px 0 56px;color:var(--muted);font-size:12.5px;font-family:'PingFang SC',serif}
|
||
"""
|
||
|
||
|
||
def build():
|
||
with open(FONT, "rb") as f:
|
||
geist = base64.b64encode(f.read()).decode("ascii")
|
||
P = []
|
||
a = P.append
|
||
a('<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">'
|
||
'<meta name="viewport" content="width=device-width,initial-scale=1">'
|
||
'<title>睿新致远 — Logo 风格样本 13 版 · 2026-10-13</title>')
|
||
a('<style>' + CSS.replace("__GEIST__", geist) + '</style></head><body><div class="wrap">')
|
||
a('<header class="top"><div class="eyebrow">Style sampler · 2026-10-13 · 评审稿(repo 零改动)</div>')
|
||
a('<h1>十三版风格横评:<em>先指认气质,再谈形状</em></h1>')
|
||
a('<p class="lede">上一轮三版被判不好看,根因是我拿系统黑体直接排「睿新致远」——那是占位符不是字标。'
|
||
'这一轮把「风格」和「字族」两个变量一起铺开:13 版分属 13 种视觉语言、6 种本机实测可用的中文字族,其中 5 版直接借设计史上公认优秀 logo 的原理。'
|
||
'每版都给大样、40px header 实尺、16px favicon 实尺,并标出它是否违反你已批准的现行规范。</p></header>')
|
||
|
||
for st in STYLES:
|
||
w, h, body, why = st["fn"]()
|
||
a('<div class="row"><div class="art">')
|
||
a('<div class="big">%s</div>' % wrap_svg(w, h, body, px=92))
|
||
a('<div class="smalls">')
|
||
a('<div class="u">%s<span>header 40px 实尺</span></div>' % wrap_svg(w, h, body, px=40))
|
||
a('<div class="u">%s<span>32px</span></div>' % wrap_svg(w, h, body, px=32))
|
||
a('<div class="u">%s<span>favicon 16px</span></div>' %
|
||
wrap_svg(100, 100, fav_for(st["id"]), px=16))
|
||
a('<div class="u"><span style="background:%s;display:inline-flex;padding:7px">'
|
||
'%s</span><span>深底 40px</span></div>' % (INK, wrap_svg(w, h, body.replace(INK, "#FFFFFF")
|
||
if st["id"] != "S5" else body, px=40)))
|
||
a('</div></div>')
|
||
a('<div class="meta"><h2><span class="id">%s</span>%s <span class="tag">%s</span></h2>'
|
||
% (st["id"], st["nm"], st["tag"]))
|
||
a('<div class="mood">%s</div>' % st["mood"])
|
||
a('<div class="ref">气质参照:%s</div>' % st["ref"])
|
||
a('<div class="note">%s</div>' % why)
|
||
if st["conflict"]:
|
||
a('<div class="warnbox">冲突:%s</div>' % st["conflict"])
|
||
else:
|
||
a('<div class="note">与现行规范无冲突,可直接进入落地评估。</div>')
|
||
a('</div></div>')
|
||
|
||
a('<section class="band"><h2 class="band">怎么选</h2>')
|
||
a('<p>13 版分两批:<b>S1–S8 按气质铺开</b>(宋/明朝/楷/仿宋/黑 六种本机实测可用字族 × 有符号/无符号);'
|
||
'<b>S9–S13 借设计史上公认优秀 logo 的原理</b>——IBM 的条纹结构、FedEx 的负形、'
|
||
'Mastercard/Audi 的交叠、国家地理的框、Sony 的定制拉丁。'
|
||
'借的是<b>原理</b>,没有一版描它们的形状。</p>')
|
||
a('<p>这一页不需要你懂设计语言,只需要指:<b>哪一版的气质最接近你想要的公司形象</b>,'
|
||
'以及<b>哪一版最不像</b>。两个坐标就能把方向锁死,我再在选中的那一版上做工艺深化'
|
||
'(定制字形、光学修正、多形态系统)。</p>')
|
||
a('<table><thead><tr><th>如果你要的是…</th><th>看</th><th>代价</th></tr></thead><tbody>')
|
||
for want, pick, cost in [
|
||
("最权威、最像「能进董事会」的机构", "S1 编辑宋体 / S3 圆章", "S3 圆章小尺寸需另出简化版"),
|
||
("最高级、最安静、最不喊话", "S2 明朝细字", "无符号,favicon 弱"),
|
||
("最像「AI 时代的技术公司」", "S5 深色科技", "需撤销禁渐变与去水墨两条裁定"),
|
||
("最有中国文化性格", "S4 一笔水墨 / S8 竖排条幅", "S4 需撤销 ADR-0006;S8 无冲突"),
|
||
("最像顶级设计事务所自己做的", "S7 几何花押", "识别度依赖细线,印刷需控最细线宽"),
|
||
("最考究、最学术", "S6 仿宋刻本", "版式偏静,做深色 Hero 时气场会弱"),
|
||
("最有「秩序与数据」的智力感", "S9 条纹结构字", "16px 须切无条纹版,否则笔画被切断"),
|
||
("最聪明、最值得第二次看", "S10 负形箭头", "发现门槛高:第一眼可能只看到一个方块"),
|
||
("语义最贴「同行者」定位", "S11 环扣交叠", "双框交叠是熟面孔,独占性全靠执行"),
|
||
("用最少的设计换最强机构感", "S12 朱框落款", "16px 下框会糊成一条边"),
|
||
("面向国际、最像产品公司", "S13 拉丁主导", "中文降为副行,需改署名口径"),
|
||
]:
|
||
a('<tr><td>%s</td><td><b>%s</b></td><td>%s</td></tr>' % (want, pick, cost))
|
||
a('</tbody></table>')
|
||
a('<div class="note" style="border-left-color:var(--red)"><b>一个与风格无关的工艺结论:</b>'
|
||
'无论选哪版,「睿新致远」四字最终都必须<b>定制轮廓或转曲</b>。'
|
||
'现在这 13 版都还依赖本机字体(我已用像素比对实测出 13 个可用中文字族,各版取用其中 6 个),'
|
||
'换一台 Windows 就换一副字形。这一步是品质天花板,比选哪个风格更决定"好不好看"。</div>')
|
||
a('</section>')
|
||
a('<footer>生成器 <code>styles.py</code> · 本页自包含(内嵌 Geist),可直接单发。'
|
||
'上一轮三版账本风仍在 <code>review.html</code>,可对照。</footer>')
|
||
a('</div></body></html>')
|
||
return "".join(P)
|
||
|
||
|
||
def fav_for(sid):
|
||
"""每版的 16px 专用几何(100×100)。"""
|
||
if sid == "S1":
|
||
return R(10, 10, 80, 80, "#fff") + T(50, 68, 54, INK, "睿", fam=SONG, w="700", anchor="middle") \
|
||
+ R(10, 82, 80, 8, RED)
|
||
if sid == "S2":
|
||
return T(50, 66, 46, INK, "睿", fam=MINCHO, anchor="middle")
|
||
if sid == "S3":
|
||
return ('<circle cx="50" cy="50" r="42" fill="%s"/>' % INK
|
||
+ '<path d="M 22 22 A 42 42 0 0 1 78 22" fill="none" stroke="%s" stroke-width="7"/>' % RED
|
||
+ T(50, 68, 42, WHITE, "睿", fam=SONG, w="700", anchor="middle"))
|
||
if sid == "S4":
|
||
return T(50, 74, 62, INK, "睿", fam=KAI, anchor="middle") + R(66, 56, 18, 18, RED)
|
||
if sid == "S5":
|
||
return (R(0, 0, 100, 100, INK)
|
||
+ '<g transform="translate(50,50) rotate(45)">'
|
||
'<rect x="-26" y="-26" width="52" height="52" fill="none" stroke="%s" stroke-width="4"/>'
|
||
'<rect x="-11" y="-11" width="22" height="22" fill="%s"/></g>' % (WHITE, RED))
|
||
if sid == "S6":
|
||
return ('<rect x="8" y="8" width="84" height="84" fill="none" stroke="%s" stroke-width="4"/>' % INK
|
||
+ '<path d="M 38 8 L 50 26 L 62 8 Z" fill="%s"/>' % RED
|
||
+ T(50, 68, 46, INK, "睿", fam=FANG, anchor="middle"))
|
||
if sid == "S7":
|
||
return ('<rect x="8" y="8" width="84" height="84" fill="none" stroke="%s" stroke-width="2" opacity=".5"/>' % INK
|
||
+ '<path d="M 30 72 L 30 28 L 70 72 L 70 28" fill="none" stroke="%s" stroke-width="8"/>' % INK
|
||
+ '<circle cx="50" cy="50" r="7" fill="%s"/>' % RED)
|
||
if sid == "S8":
|
||
return T(34, 44, 34, INK, "睿", fam=SONG, w="700", anchor="middle") \
|
||
+ T(34, 84, 34, INK, "新", fam=SONG, w="700", anchor="middle") \
|
||
+ R(20, 90, 28, 6, RED)
|
||
if sid == "S9":
|
||
# 16px 专用:无条纹版。条纹在小尺寸会切断笔画使字不可读(已在 §怎么选 标注的代价)。
|
||
return (T(50, 78, 62, INK, "睿", fam=HEI, w="700", anchor="middle")
|
||
+ R(50, 84, 40, 7, RED))
|
||
if sid == "S10":
|
||
return ('<path fill-rule="evenodd" fill="%s" d="M 4 4 L 96 4 L 96 96 L 4 96 Z '
|
||
'M 80 18 L 28 36 L 62 72 Z"/>' % INK) + R(4, 4, 12, 92, RED)
|
||
if sid == "S11":
|
||
return ('<rect x="42" y="42" width="44" height="44" fill="%s"/>' % RED
|
||
+ '<rect x="14" y="14" width="44" height="44" fill="none" stroke="%s" stroke-width="5"/>' % INK
|
||
+ '<rect x="42" y="42" width="44" height="44" fill="none" stroke="%s" stroke-width="5"/>' % INK)
|
||
if sid == "S12":
|
||
return ('<rect x="5" y="5" width="90" height="90" fill="none" stroke="%s" stroke-width="9"/>' % RED
|
||
+ T(50, 68, 44, INK, "睿", fam=SONG, w="700", anchor="middle"))
|
||
return ('<circle cx="50" cy="50" r="34" fill="none" stroke="%s" stroke-width="8"/>' % INK
|
||
+ '<circle cx="50" cy="50" r="12" fill="%s"/>' % RED)
|
||
|
||
|
||
def main():
|
||
path = os.path.join(HERE, "styles.html")
|
||
with open(path, "w", encoding="utf-8") as f:
|
||
f.write(build())
|
||
print("styles.html %d B" % os.path.getsize(path))
|
||
|
||
|
||
if __name__ == "__main__":
|
||
main()
|