Job Alerts DS

Cards / surfaces

Elevation model (border vs shadow) and the corner-radius ladder for nested surfaces.

Show audit of the app before this rule

Audit — what we have today (60 Paper/Card instances)

✓ Already right

  • 57/60 surfaces use withBorder — the app is already flat-first.
  • A de-facto hierarchy exists: outer section panels = radius="xl" + shadow="sm" (28×); nested cards = lg/md, no shadow.
  • Backgrounds already tokenized: --mantine-color-body (12×) and --gg-surface-muted (8×) — zero raw hex.

✗ Violations

  1. Four radii with no written rule: xl (29), lg (13), md (13), sm (2). The capture inspector ignores the panel convention entirely (md/sm only) — same nesting depth, different corners.
  2. Same-depth surfaces disagree: funnel proposal rows are lg, intake rows are lg, but inspector rows are md and its insets sm.
  3. Nested-radius math ignored: inner radius should shrink with depth (inner = outer − padding). xl(32) panel → lg(16) card at 20px padding is close; md(8) directly inside xl looks mismatched.
  4. Shadow has no rule: 28 shadow="sm" sit on top-level panels by convention, but nothing stops shadows appearing on nested cards.

Axis 1 — Elevation model

Same recent-workdays panel. Question: do top-level panels keep their soft shadow?

Option A — hybrid (codify current)

✓ CHOSEN

Top-level section panels: withBorder + shadow="sm". Everything nested: border only, never a shadow. Overlays (modals, menus) keep Mantine defaults.

Recent workdays

Last three logged days

Mon, Jul 6

14 clicked · 5 qualified

Sun, Jul 5

9 clicked · 3 qualified

Muted inset (e.g. capture suggestion) — token bg, no border needed.

+ Matches all 28 existing panel shadows — zero visual change; hybrid border+soft shadow adapts to light and dark.
− Two elevation treatments to police instead of one.

Option B — fully flat

Borders everywhere, shadows retired from all static surfaces. Shadow = overlay-only (modal, popover, drawer) — elevation means "temporarily above the page".

Recent workdays

Last three logged days

Mon, Jul 6

14 clicked · 5 qualified

Sun, Jul 5

9 clicked · 3 qualified

Muted inset (e.g. capture suggestion) — token bg, no border needed.

+ One rule; Atlassian-style semantic elevation (shadow = stacked, not decoration).
− Visible change on every dashboard panel; loses the slight page depth.

Axis 2 — Radius ladder

Radius is depth: it steps down as you nest (inner ≈ outer − padding). Question: which ladder?

Option A — codify xl → lg → md

✓ CHOSEN

Section panel = xl(32) · nested card = lg(16) · inset inside a card = md(8). sm retired. Inspector brought up to the ladder.

Recent workdays

Last three logged days

Mon, Jul 6

14 clicked · 5 qualified

Sun, Jul 5

9 clicked · 3 qualified

Muted inset (e.g. capture suggestion) — token bg, no border needed.

+ Codifies the 29-instance majority — dashboard look unchanged; 32−20 padding ≈ 16 inner follows the nesting formula.
− xl(32) is a bold outer corner; marketing and app share it.

Option B — compress to lg → md

Section panel = lg(16) · nested = md(8). Quieter, tool-like corners; xl and sm both retired.

Recent workdays

Last three logged days

Mon, Jul 6

14 clicked · 5 qualified

Sun, Jul 5

9 clicked · 3 qualified

Muted inset (e.g. capture suggestion) — token bg, no border needed.

+ Tighter, denser feel typical of data tools; two steps only.
− Restyles all 29 xl panels — visible change everywhere for consistency's sake alone.

Shared rules (all options)

  • Radius = nesting depth, nothing else. Same depth ⇒ same radius, app-wide.
  • Static surfaces never stack shadows. At most one shadow level on the page (whatever Axis 1 decides); overlays use Mantine defaults.
  • Backgrounds are tokens: base --mantine-color-body · muted inset --gg-surface-muted · selected --mantine-color-green-light. Raw hex/hsl forbidden (Section 1).
  • Borders come from withBorder (maps to --gg-border) — never a hand-rolled style border, except the DS decision-card green.
  • Skeleton components mirror the real surface's radius exactly.
Show research sources

✓ Decision: Option A + Option A

Why Axis 1 Option A (hybrid):

  1. Codifies all 28 existing panel shadows — zero visual change on the dashboard.
  2. Rule stays simple: shadow appears at exactly one depth (top-level panels).

Why Axis 2 Option A (xl → lg → md ladder):

  1. Codifies the 29-instance xl majority; follows inner ≈ outer − padding.
  2. Option B would restyle every panel purely for uniformity. Only the capture inspector (md/sm at card depth) gets brought onto the ladder; sm retired.

Design system for a freelance job-alert app. App copies are downstream.