Skip to content

feat(ui): redesign light and dark theme for cohesion and accessibility (#210)#211

Merged
w7-mgfcode merged 1 commit into
devfrom
feat/ui-light-dark-theme-redesign
May 19, 2026
Merged

feat(ui): redesign light and dark theme for cohesion and accessibility (#210)#211
w7-mgfcode merged 1 commit into
devfrom
feat/ui-light-dark-theme-redesign

Conversation

@w7-mgfcode
Copy link
Copy Markdown
Owner

Summary

Resolves #210. Replaces the stock grayscale shadcn neutral palette with an ocean-blue brand identity and a proper surface hierarchy, fixing the 10 cross-cutting theme defects found in a full light/dark audit.

What changed (light + dark)

  • Paletteindex.css rewritten in OKLCH: brand --primary (ocean blue), theme-stable --chart-1..5 (no more orange-in-light / blue-in-dark swap), new semantic --success / --warning / --info / --destructive-foreground tokens, soft --shadow-card elevation. Dead HSL --chart-* block removed.
  • Light surface hierarchy — cool blue-gray canvas so pure-white cards lift off it; tables render as elevated white panels with muted-gray headers; KPI numbers emphasised (text-3xl, tabular-nums).
  • Status / charts / JSON — status badges, chart legends (ChartLegend+ChartLegendContent) and the JSON viewer moved onto semantic tokens. No raw Tailwind color utilities remain in app code.
  • Accessibility — every foreground/surface pair verified to clear WCAG AA (body ≥ 4.5:1, large/UI ≥ 3:1) in both themes via an OKLCH→sRGB contrast calculator (32/32 pairs pass).

Dark theme

The dark theme was treated as frozen for the final table pass — table changes are theme-gated (--table-headertransparent, dark:bg-transparent dark:shadow-none). A pixel diff of the explorer table routes against a pre-change baseline showed 0 differing pixels.

Validation

  • pnpm tsc --noEmit — clean
  • pnpm lint — 0 errors (1 pre-existing unrelated warning)
  • pnpm test --run — 54/54 pass
  • Browser sweep — 19 routes × 2 themes, 0 console errors; all 10 defects (C1–C9 + status badges) confirmed resolved, no regressions

Follow-ups

  • Card-header treatment left untouched (avoids over-bordering) — optional future polish.
  • Table wrapper kept at rounded-md (Cards use rounded-xl); unifying deferred to keep dark unchanged.

🤖 Generated with Claude Code

#210)

Replace the stock grayscale shadcn neutral palette with an ocean-blue
brand identity and a real surface hierarchy, resolving the audit's ten
cross-cutting theme defects.

- index.css: ocean-blue OKLCH palette, brand --primary, theme-stable
  --chart-1..5, semantic --success/--warning/--info tokens and a soft
  --shadow-card elevation; the light canvas is a cool blue-gray so the
  white cards visibly lift off it
- tables render as elevated white panels with muted headers in light
  mode and stay byte-identical in dark via the --table-header token
  plus dark: guards
- status colors, chart legends and JSON blocks moved onto semantic
  tokens; no raw Tailwind color utilities remain in app code
- every foreground/surface pair verified to clear WCAG AA in both themes
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @w7-mgfcode, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 769a84fa-d2af-4be0-bea4-447e310eef5f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ui-light-dark-theme-redesign

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@w7-mgfcode w7-mgfcode merged commit fb5e70c into dev May 19, 2026
8 checks passed
@w7-mgfcode w7-mgfcode deleted the feat/ui-light-dark-theme-redesign branch May 20, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant