feat(ratewise): RW-1 radius/shadow 設計 token SSOT(#514 拆分 1/7)#515
Merged
Conversation
- 新增 radiusTokens/shadowTokens 至 design-tokens/scale.ts(語義五級圓角 + 柔和陰影) - tailwind.config borderRadius/boxShadow 改讀 token SSOT,rounded-card/shadow-floating 等可用 - 新增 DESIGN.md 設計憲章;radius-ssot 守門延至元件遷移 PR 避免未遷移即大規模失敗 測試:typecheck、lint、test 2513 passed、build:ratewise、首頁視覺驗證無破版 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
13 tasks
Contributor
|
✅ SEO 審計通過!所有 2026 標準驗證項目都符合要求。
|
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.
摘要
#514 governance 拆分第 1 支(基礎)。將 #433 的 radius/shadow 語義 token REMAP 到 main #512 的
design-tokens/模組結構(#433 改的是已刪除的扁平檔),建立設計 token SSOT 供後續 RW-3/RW-4 元件遷移消費。變更
design-tokens/scale.ts:新增radiusTokens(card/panel/control/icon/compact + Tailwind scale 別名)、shadowTokens(card/soft/floating/brand…,更柔和「安靜」陰影);順手清除 refactor(ratewise): 設定模組化 + 匯率可靠性 + 監控/覆蓋率治理 #512 切片遺留的 buttonTokens 懸空 JSDoc。tailwind.config.ts:borderRadius/boxShadow改讀 token SSOT;rounded-card/shadow-floating/shadow-brand等 utility 已生成可用。DESIGN.md設計憲章。範圍決策(KISS)
rounded-2xl,但元件遷移屬 RW-3/RW-4;現在加會大規模失敗。守門隨遷移 PR 一起進。primary.foreground/overlay+ 逐主題 CSS 變數延後:在消費它的 RW-3/RW-4 才加,避免注入 inert 變數與跨主題視覺風險。verify-ssotdesign-tokens 路徑修正:main 版未讀 design-tokens(該問題僅在 chore(ratewise): 生產治理 rebased on main(取代 #411) #433 擴充版),免做。Test plan
pnpm typecheck/pnpm lint --max-warnings 0pnpm test— 2513 passed / 2 skipped(零退步)pnpm build:ratewise— exit 0;rounded-card/shadow-floating進 CSS bundleRefs #514(拆分 1/7)。紅線:未還原
design-tokens/目錄、未刪任何 main 已發版項。🤖 Generated with Claude Code
via Happy