Skip to content

/agent 回复图片:改成 Anthropic 文章配图风格的配色 - #49

Merged
NginxL merged 2 commits into
mainfrom
feat/poster-anthropic-palette
Dec 1, 2026
Merged

NginxL merged 2 commits into
mainfrom
feat/poster-anthropic-palette

Conversation

@NginxL

@NginxL NginxL commented Dec 1, 2026

Copy link
Copy Markdown
Owner

做了什么

/agent 长回复转成的海报图片原来是蓝色渐变风格,这次参考 anthropic.com 工程博客配图的风格,换成暖色、平面的配色。只改 core/openmate_core/cards.py 里 Swift 渲染器的颜色和装饰,排版、分辨率、转图片的条件和文档格式都没动。

位置 原来 现在
背景、卡片 浅蓝渐变底,白卡片带阴影,顶部蓝色渐变条 燕麦色 #F0EEE6 纯色底,象牙色 #FAF9F5 卡片加 1pt 细描边,去掉阴影和色条
大标题 蓝色渐变横幅配白字 近黑 #141413 宋体标题(找不到宋体时退回粗体苹方),下面一条陶土色 #D97757 短横线
小标题、加粗 蓝字 近黑;小标题左侧竖条改陶土色
链接 蓝字 深陶土色 #B85432,在象牙底上对比度 4.6:1
列表 蓝点;编号是蓝底白字 陶土色圆点;编号是浅陶土底加描边、陶土色数字
代码块、引用 深蓝底浅色字;浅蓝引用 燕麦色底、细描边、近黑字;燕麦色引用加陶土色竖条

色值是从 Anthropic 三篇工程博客的 24 张配图里统计出来的。

怎么验证的

  • bash scripts/test.sh:三组测试全部通过(849 / 308 / 186,跳过 2 个)。最后的包校验报差异,因为当时还没升版本号,发版提交会处理。
  • macOS 真实渲染测试改成检查新的圆点和编号底色;在旧代码上运行,这个断言会失败。
  • 用线上渲染器和新渲染器各渲染了同一份样例,并排比较过效果。

没做什么

  • 飞书端不走转图片,没有行为变化。
  • 没有改 Markdown 解析、转图片的条件和多久发一次。

🤖 Generated with Claude Code

NginxL and others added 2 commits December 1, 2026 11:06
… diagrams

The poster now follows the look of the diagrams on anthropic.com/engineering:
an oat canvas (#F0EEE6) under an ivory card (#FAF9F5) with a 1 pt hairline,
near-black ink (#141413), and clay (#D97757) as the one accent. Gradients,
the card shadow and the top bar are gone.

- The leading title is no longer a banner: a serif display face (Songti SC
  Black, falling back to bold PingFang) in ink, with a short clay rule below.
- Section headings and bold words are ink; section rules, bullet dots and the
  quote rule are clay. Link words use a darker clay (#B85432, 4.6:1 on ivory).
- Numbered badges are pale clay pills with a clay outline and clay digits.
- Code blocks are light (oat with a hairline, ink text); quotes are oat.

Layout, scale, thresholds and the document format are unchanged. The macOS
render test now checks the new bullet and badge colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pic 文章配图风格的暖色配色

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NginxL
NginxL merged commit cb7de7e into main Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant