From ac64cec27fa8545391a3cf6534839e56622cc477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=AE=E9=9B=A8?= <47820304+PeterGuy326@users.noreply.github.com> Date: Wed, 16 Sep 2026 10:10:07 +0800 Subject: [PATCH] fix(site): unify action colors and mobile menu alignment --- CHANGELOG.md | 2 ++ index.html | 53 +++++++++++++++++++++++++++------------ scripts/contrast-check.js | 12 ++++++--- 3 files changed, 47 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f636d1..edc3103 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ ### Changed +- 按统一设计语言区分操作与品牌色:下载按钮、选中标签、链接及键盘焦点使用蓝色,保留 AI / 品牌紫色;按钮内容居中、菜单和正文沿用左对齐。同步校验明暗主题的操作前景 / 背景及悬停组合,窄屏下载菜单相对操作行居中,避免文件名被左侧裁切。页面内容、整体布局和下载链接不变(#8)。 + - **全站更名 Ordane → RoleWeave**,事实口径统一改取自 `bytefolk/roleweave` 仓库 README 与 v0.1.1 release: - 标识改用仓库内的 `branding/roleweave/roleweave-icon.svg`(紫 / 蓝 R+W 字母组合),内联进导航并编码为 favicon。 - 主色跟随标识:token `--teal*` 更名 `--brand*`,取值来自 logo 的紫 `#722ed1`(OKLCH `49.4% 0.228 295.6`);新增 `--azure`(logo 的蓝 `#1677ff`)用于 hero 标题强调。`scripts/contrast-check.js` 的 token 名与配对表同步更新,并为大字号强调新增一对 azure / paper(3:1 门槛),明暗两套共 46 项全部通过。 diff --git a/index.html b/index.html index d3beac6..26643a0 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,7 @@ diff --git a/scripts/contrast-check.js b/scripts/contrast-check.js index 85bc5f3..1dd8291 100644 --- a/scripts/contrast-check.js +++ b/scripts/contrast-check.js @@ -88,16 +88,20 @@ const PAIRS = [ ['caption on band ink-3 on band', 'ink-3', 'band', SMALL], ['tier mind / node tag ink-3 on card', 'ink-3', 'card', SMALL], ['building state amber on band', 'amber', 'band', SMALL], - ['primary button label brand-ink on brand', 'brand-ink', 'brand', SMALL], - ['selected tab label brand-ink on brand', 'brand-ink', 'brand', SMALL], + ['primary button label action-ink on action', 'action-ink', 'action', SMALL], + ['selected tab label action-ink on action', 'action-ink', 'action', SMALL], ['orbit centre label brand-ink on brand', 'brand-ink', 'brand', SMALL], ['cta band body brand-ink on brand', 'brand-ink', 'brand', SMALL], - ['cta button label brand on brand-ink', 'brand', 'brand-ink', SMALL], + ['cta button label action on action-ink', 'action', 'action-ink', SMALL], + ['cta button hover action-hover on action-ink', 'action-hover', 'action-ink', SMALL], + ['action links action on paper', 'action', 'paper', SMALL], + ['action links action on band', 'action', 'band', SMALL], + ['action links action on card', 'action', 'card', SMALL], ['eyebrow pill brand on brand-soft', 'brand', 'brand-soft', SMALL], ['inline code brand on band', 'brand', 'band', SMALL], ['download menu hover ink on band', 'ink', 'band', SMALL], ['hero headline accent azure on paper', 'azure', 'paper', LARGE], - ['primary button hover brand-ink on brand-hover', 'brand-ink', 'brand-hover', SMALL], + ['primary button hover action-ink on action-hover', 'action-ink', 'action-hover', SMALL], ]; let failed = 0;