refactor(design): shadow-literal and raw-hex token migration (elevation E1+E2)#637
Conversation
…lour tokens (E1+E2) Maps ~15 arbitrary shadow-[...] values in live components onto the token ladder (--shadow-tight/soft/hover/elevated, --glow-soft) per the legacy mapping in docs/design-system.md, collapses two dark:shadow-[...] overrides now handled by the tokens' own .dark flip, and replaces the raw hex ring/inset colours flagged in the design review with --clinical-accent/--border equivalents. The diagnosis-map drawer keeps its upward 0_-20px shadow (no upward token; direction is deliberate). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughReplaces hard-coded shadow and accent color utilities with CSS theme variables across shared UI primitives, clinical dashboard components, favourites mockups, and mobile search result cards. No functional logic or exported APIs changed. ChangesTheme token styling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
First tranche of the design-elevation work items from the July 2026 design review (
CLAUDE_CODE_FIXES.mdPart 2, E1+E2 — the mechanical, highest-yield group):shadow-[0_…]literals in live components mapped onto the elevation token ladder —--shadow-tight(cards),--shadow-soft(mid panels, composer shell),--shadow-hover(hover states),--shadow-elevated(overlays/dialogs/popups),--glow-soft(accent glow on the settings nav active state). Twodark:shadow-[…]twin overrides in settings-dialog collapsed to a single token reference — the tokens flip in.darkthemselves.ring-[#bfe6d8],inset_3px_0_0_#0b7285,inset_0_0_0_1px_#d8e6eb) replaced with--clinical-accent-border/--clinical-accent/--border, fixing their dark-mode behaviour.Deliberately kept: the diagnosis-map drawer's upward
0_-20px_60pxshadow (no upward token exists; the direction is intentional), and the favourites mockup's three per-mode coloured command glows (deliberate multi-hue exploration in a dev-only mockup lane). Other mockup-file shadow literals are out of scope for this tranche.Verification
npm run verify:cheap— green (lint, typecheck, vitest, runtime/type-scale/icon-scale/brand/sitemap checks)npm run verify:ui— green, 158 passed (full Chromium Playwright suite)Clinical governance preflight
Not applicable — visual token refactor only; no ingestion, answer generation, search/ranking, source rendering, document access, privacy, or production env changes.
Notes
Remaining elevation items (E3 typography, E4 colour system, E5 space/radius, E6 component details) are follow-up tranches. After this and #627 merge, a design re-sync picks the changes up automatically.
🤖 Generated with Claude Code
Summary by CodeRabbit