🎨 refactor: Divider / Link / Inline Message / Form を Figma 準拠の新トークンへ移行(beta / #298 フェーズ2-2) - #301
Merged
Merged
Conversation
…行(beta) #298 のフェーズ2。Figma `Sparkle Design` (7alBZXZf65YgcII41TWT0r) に**刷新済みページが存在するコンポーネントに限定**して 状態内包トークンを移行する。各値は Figma の variable binding から取得しており、 推測での置換は行っていない。 Divider(値は不変・純粋なリネーム): - `border-base-100 bg-base-100` → `border-border-neutral-low bg-border-neutral-low` - `border-base-200 bg-base-200` → `border-border-neutral-middle bg-border-neutral-middle` - `border-base-300 bg-base-300` → `border-border-neutral-high bg-border-neutral-high` - Figma 817:5329/5331/5333 が `border/neutral/{low,middle,high}` を bind。 旧 `--color-base-*` と新 `--color-border-neutral-*` はどちらも gray-100/200/300 に 解決されるため見た目は変わらない Link(**色が変わる**。Figma の状態レベル 1 段ずれの反映): - テキスト: `text-info-500` → `text-text-primary-enabled`(blue-500 → blue-600) - テキスト hover: `text-info-600` → `text-text-primary-hover`(blue-600 → blue-700) - アイコン: `text-info-500/600` → `text-object-primary-enabled/hover` - Figma 2755:24903(state=enable)/ 2755:24907(state=hover)準拠 Inline Message: - 背景/枠線を `surface/*` `border/*` へ。negative だけ Figma が `low` ではなく `surface/negative/middle/enabled` を bind しているのでそれに従う - warning の枠線のみ値が変わる(yellow-200 → yellow-300 / `border/warning`) - アイコン色は 4 ステータスすべて濃くなる(`object/*` は 600〜700 レベル) - 角丸を `rounded-md` → `rounded-notice`(Figma が `border-radius/notice` を bind。 どちらも 6px なので見た目は不変) - Figma 1266:14201 / 2784:13098 / 1266:14204 / 1266:14178 準拠 Form: - エラーメッセージ: `text-negative-500` → `text-text-negative-enabled` (red-500 → red-600。Figma 573:6321) - ヘルパーメッセージ: `text-text-neutral-low` → `text-text-neutral-middle` (Figma 574:10563 が `text/neutral/middle` を bind。**色が変わる**) テストのアサーションも同じ表で追従させた。 検証: - `tsc --noEmit` pass - テスト 611 passed・10 skipped・19 todo - `--radius-notice` / 各 `--color-*` が生成 CSS に存在することを確認済み Refs: #298 / goodpatch/sparkle-design-internal#247 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
This was referenced Aug 17, 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.
概要
#298 のフェーズ2。Figma に刷新済みページが存在するコンポーネントに限定して、状態内包トークンを移行します。
feature/298-token-rename-stateless(♻️ refactor: 状態非依存の旧トークンを新セマンティックトークンへ置換(beta / #298 フェーズ2-1) #300 に stack。🎨 feat: 新セマンティックトークンを生成 CSS に取り込む(beta / #298 フェーズ1) #299 → ♻️ refactor: 状態非依存の旧トークンを新セマンティックトークンへ置換(beta / #298 フェーズ2-1) #300 → 本 PR の順)get_variable_defs)から取得しており、推測での置換はしていません前提: Figma 反映済みは 13 コンポーネントだけ
刷新済み Figma ファイル
7alBZXZf65YgcII41TWT0rにページがあるのは Button / Form / Icon Button / Input / Input Date / Textarea / Divider / Table / Tag / Inline Message / Modal / Link / Icon の 13 個です。Checkbox・Radio・Select・Switch・Slider・Badge・Card・Skeleton・Spinner・Dialog・Overlay・Toast・Tooltip・Tabs・Breadcrumb はページ自体が存在しない(Figma 側の更新が未マージ)ため、この PR では触っていません。search_design_systemでヒットする Card / Switch は別ライブラリの旧版(2025-11〜2026-01 更新)なので参照していません。変更内容
Divider — 値は不変(純粋なリネーム)
border-base-100bg-base-100border-border-neutral-lowbg-border-neutral-lowborder-base-200bg-base-200border-border-neutral-middlebg-border-neutral-middleborder-base-300bg-base-300border-border-neutral-highbg-border-neutral-highFigma
817:5329 / 5331 / 5333がborder/neutral/{low,middle,high}を bind。Link —⚠️ 色が変わる
Figma の「状態レベル 1 段ずれ」がそのまま出る箇所です。
text-info-500text-text-primary-enabledtext-info-600text-text-primary-hovertext-info-500/600text-object-primary-enabled/hoverFigma
2755:24903(state=enable)/2755:24907(state=hover)準拠。Inline Message —⚠️ 一部色が変わる
surface-info-low(不変)border-info(不変)object-info(blue-400 → blue-600)surface-success-low(不変)border-success(不変)object-success(green-400 → green-700)surface-warning-low(不変)border-warning(yellow-200 → yellow-300)object-warning(yellow-500 → yellow-700)surface-negative-middle-enabled(不変)border-negative-high(不変)object-negative-enabled(red-400 → red-600)lowではなくsurface/negative/middle/enabledを bind しているので、それに従っていますrounded-md→rounded-notice(Figma がborder-radius/noticeを bind。どちらも 6px なので見た目は不変)Figma
1266:14201/2784:13098/1266:14204/1266:14178準拠。Form —⚠️ 色が変わる
text-negative-500text-text-negative-enabledtext-text-neutral-lowtext-text-neutral-middleFigma
573:6321(Error Message)/574:10563(Helper Message)準拠。ヘルパーメッセージは置換表に無い変更ですが、Figma がtext/neutral/middleを bind しているためそれに合わせています。検証
tsc --noEmitpass--radius-noticeと使用した--color-*がすべて生成 CSS に存在することを確認残り(この PR の対象外)
Figma 反映済みで未着手なのは Input / Input Date / Textarea / Tag / Table / Modal / Button / Icon Button です。Button + Icon Button は量が多い(合計 127 箇所)ので別 PR にします。
Refs: #298 / goodpatch/sparkle-design-internal#247