feat(stage-profile): midnight dark export theme (stage B item 3)#73
Merged
Conversation
出圖主題新增「午夜黑」(bg #171A21 / ink #F0EEE6 / accent #E8956D), 解掉「透明匯出疊在深色背景上看不見字」的老問題 —— 深色主題的墨色 是淺色,去背 PNG 疊在深色簡報/限動上可讀(已實際合成深灰底目測驗證)。 - THEMES / THEME_EN / ProfileTheme 抽到 src/lib/profileThemes.ts(純資料), 讓 vitest 守門測試吃得到;StageProfile.tsx 改為 import - 新增 profileThemes.test.ts:用既有 contrast.ts 對每個主題驗 WCAG 對比 (ink ≥ 7、muted ≥ 4.4、accent ≥ 2.2,門檻取自現況實測下限), 並要求至少一個深色主題且其墨色為淺色 - e2e:主題切換測試補午夜黑底色斷言 測試:typecheck:api ✓ / 513 unit ✓(+5)/ 54 e2e ✓ Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
階段 B 第 3 項(HANDOFF 待辦):出圖主題新增第五個主題「午夜黑」,
順帶解掉「透明匯出疊在深色背景上看不見字」的老問題 —— 深色主題墨色是淺色,
去背 PNG 疊在深色簡報/IG 限動上直接可讀。
色票
#171A21#F0EEE6#A9A79E#3A3E48#E8956D對比實測:ink 14.99、muted 7.22、accent 7.42 —— 全部高於現有四個主題的最低水準
(環義粉 muted 4.49、環法黃 accent 2.23)。
改動
src/lib/profileThemes.ts(新):THEMES/THEME_EN/ProfileTheme從StageProfile.tsx抽成純資料 lib,讓 vitest 守門測試吃得到;行為不變src/lib/__tests__/profileThemes.test.ts(新):用既有contrast.ts對每個主題驗WCAG 對比(ink ≥ 7、muted ≥ 4.4、accent ≥ 2.2;門檻取自現況實測下限,收緊前要先動既有主題),
並要求「至少一個深色主題、其墨色必須是淺色」
#171A21」斷言驗證
typecheck:api✓ / 513 unit ✓(508 + 5)/ 54 e2e ✓並用透明匯出產出 PNG 合成在
#20232B深灰底上確認全部文字可讀api/🤖 Generated with Claude Code