Skip to content

v1.1.0 — 主题配色系统(8 套主题 / 预览 / 对比度审计)

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Oct 05:55
· 2 commits to main since this release

新增

  • templates/themes.js:8 套主题的唯一数据源。一套主题 = 14 个角色 token + 主材质 + HUD 规格 + 4 个点缀色,另含片头/结尾/风格段排版提示。主题:coral-noir 珊瑚暗夜(默认)、claude-light 橙光白、aqua-morandi 水蓝白·莫兰迪、amber-noir 琥珀黑金、blueprint-stone 蓝图纸、graphite-signal 石墨信号、celadon-paper 青瓷白、crimson-theater 绯墨剧场。
  • templates/themes.js API:getTheme()(接受 id / 别名 / 对象,未知值回退默认)、themeFromURL()(读 ?theme= 或 ?t=)、chrome()(胶囊 / 倒计时 / 水印 / 闪白)、cardColors(theme, layout)(4 版式大字卡配色)、drawThemeBackground() / drawGlassPanel()、cssVars() / applyTheme()、accentOverride()(用户品牌色覆盖:自动挑 accentInk、算 accentSoft、同步材质光晕与 HUD 编号)、auditTheme() / contrastRatio()。
  • templates/theme-board.html:单主题预览板(?theme=<id>,1920×1080)。
  • scripts/theme-preview.mjs:批量渲染 8 套主题预览、全集联系表与三拼对比图。
  • scripts/theme-audit.mjs:主题对比度审计,--strict 有不合格项时 exit 1(可进 CI);当前 8 套全部通过。
  • references/themes.md:主题系统设计规范(四层结构、8 套速查与调性、14 个 token、8 种材质、HUD、大字卡映射、选型矩阵、accentOverride、design-taste 对齐、QA、新增主题、相关文件)。
  • references/intake.md:调用技能前的需求采集与主题锁定流程(最多 2 轮、必问 4 项 + 默认值、BRIEF.json 模板、交接与常见误用)。
  • assets/theme-previews/:交付给用户的主题预览图(三拼 theme-three-up.jpg、全集 theme-contact-sheet.jpg、单主题 01-coral-noir.jpg–08-crimson-theater.jpg)。
  • templates/big-card.html / templates/segment.html:支持 ?theme=<id 或别名>;不传时保留旧版硬编码路径。
  • references/style-recipes.md 新增「主题 × 风格段:换色规则」;references/big-card-and-typography.md 新增大字卡主题化说明(cardColors() 字段、浅色主题的明暗节奏、字体固定)。
  • README(中英双语)新增 Themes / 主题配色 章节与主题预览图;快速开始补第 0 步 intake 与主题预览步骤、渲染示例;仓库结构补主题相关文件。
  • SKILL.md 补充主题章节(8 选 1、?theme= 契约、锁定主题后再渲染)。

变更

  • 默认视觉不变:不传 ?theme= 时渲染原版 coral-noir,与旧版逐值/逐像素一致,老项目无需改动。
  • 大字卡、胶囊、倒计时、水印、片头片尾配色统一由 templates/themes.js 派生,页面不再写死 #d97757。

备注

  • 主题预览图由 scripts/theme-preview.mjs 生成;成片效果仍需按具体项目逐段渲染验证(本仓库不附成品视频)。

Changes since v1.0.4: compare v1.0.4...v1.1.0