chore(web): introduce shadow-depth hierarchy across surfaces #242
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/235"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
none/subtle/lifted/overlay) indesign/tokens.jsonand mirrors it intoapps/web/src/styles/tokens.cssas--ch-shadow-*CSS varsshadow-subtle,shadow-lifted,shadow-overlay) via@themeinindex.cssshadow-lg/shadow-smcall sites onto the correct tier (4× modals →shadow-overlay, 2× panels/toasts →shadow-lifted, 1× transcript bubble →shadow-subtle, 1× specs dialog →shadow-overlay)apps/web/CLAUDE.mdalongside the existing radius conventionCloses #235
ab553d8aad137636d78fReview — round 1
CI: ✅ green (run #1884, 4m18s)
Acceptance criteria
design/tokens.json(none/subtle/lifted/overlay)tokens.css@themeinindex.css(shadow-subtle,shadow-lifted,shadow-overlay)shadow-lg/shadow-smcall sites migratedapps/web/CLAUDE.mdToken values
JSON ↔ CSS mirror is exact (the
0.30→0.3formatting difference is semantically identical). Token values are placed incore(not theme-scoped), which is correct —rgb(0 0 0 / X)black shadows render well on both the dark (#1A1B26) and light (#E9ECF2) palettes without needing overrides.Tier assignments
All 8 call sites got the right tier:
shadow-overlay— sessions delete dialog, issue-card edit dialog, agents editor dialog, agents delete dialog, specs new-spec modal (5× modals/dialogs ✅)shadow-lifted— board side panel, toasts (2× clearly-above-page surfaces ✅)shadow-subtle— transcript chat bubble (1× hoverable card ✅)Tailwind v4 registration
--shadow-subtle/lifted/overlayunder@themeis the correct Tailwind v4 pattern for registering custom shadow utilities.shadow-nonecorrectly relies on the built-in.Sweep completeness
Zero remaining
shadow-lg/shadow-sminapps/web/src/— the CLAUDE.md prohibition is now backed by an empty grep.LGTM. Straightforward, well-scoped chore.