Skip to content

Soften dark mode app text contrast - #36595

Merged
AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/ux-soften-pure-white-text-contrast-in-dark-mode
Oct 31, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
AmethystLiang/ux-soften-pure-white-text-contrast-in-dark-mode

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​15 0

Problem

Dark-mode app UI text used near-pure white, which could feel harsh against dark surfaces.

Solution

Use a softer off-white for primary foreground tokens across dark-mode app surfaces. This reduces glare while preserving the existing text hierarchy and avoids changing terminal contrast.

ELI5

The app’s bright white text is now a gentler gray-white, so headings and labels are easier on the eyes in dark mode.

What Changed

Updated dark-mode foreground tokens for the main UI, cards, popovers, accents, sidebars, worktree sidebar, and security surfaces from #fafafa to #e5e5e5.

Why

Changing the shared dark-mode tokens keeps the treatment consistent throughout app chrome and settings rather than fixing individual screens separately.

Linked Issue

Fixes #11452

Visual Proof

TODO: Attach before-and-after dark-mode UI screenshots.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

No automated tests added; this is a CSS token-only visual adjustment.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No terminal theme tokens were changed. Shared renderer CSS tokens apply consistently across supported platforms and remote clients.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 597dc467-0193-4f6e-b2d6-cf6078e92292
Commits

Reviewing files that changed from the base of the PR and between 20cd813 and f626494.

Files selected for processing: 1
  • src/renderer/src/assets/main.css

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

Dark-mode foreground values changed from #fafafa to #e5e5e5 for security, app, card, popover, secondary, accent, worktree-sidebar, and sidebar tokens. Associated surface colors and other declarations remain unchanged.

Severity of issue fixed: Low

Merge Risk: Minimal · up to f6264

The token updates align with the requested dark-mode contrast adjustment and are ready to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: reducing dark-mode application text contrast.
Description check Passed The description covers the problem, solution, user impact, changed tokens, rationale, linked issue, testing rationale, and scope. The visual-proof section remains TODO, manual testing is not confirmed…
Linked Issues check Passed [#11452] The issue asks for softer primary and heading text in dark-mode app UI, away from pure white, with muted hierarchy and body readability kept. The diff to src/renderer/src/assets/main.css chan…
Out of Scope Changes check Passed [#11452] Every changed line is a dark-mode color value in src/renderer/src/assets/main.css, replacing #fafafa with #e5e5e5. No layout, logic, terminal, or light-mode declarations change. The changed b…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Description check

Explanation

The description covers the problem, solution, user impact, changed tokens, rationale, linked issue, testing rationale, and scope. The visual-proof section remains TODO, manual testing is not confirmed, and the full validation checklist is incomplete, but the description is otherwise mostly complete and focused.

Full details: Linked Issues check

Explanation

[#11452] The issue asks for softer primary and heading text in dark-mode app UI, away from pure white, with muted hierarchy and body readability kept. The diff to src/renderer/src/assets/main.css changes the dark-mode primary foreground tokens from #fafafa to #e5e5e5. Changed tokens include --foreground, --card-foreground, --popover-foreground, --secondary-foreground, --accent-foreground, --sidebar-foreground, --sidebar-primary-foreground, --sidebar-accent-foreground, --worktree-sidebar-foreground, --worktree-sidebar-accent-foreground, and the --orca-security-* foreground tokens. The muted hierarchy is unchanged: --muted-foreground stays #a1a1a1. Terminal tokens such as --terminal-pane-title-on-dark-fg are unchanged. #e5e5e5 on the #0a0a0a dark background keeps high contrast, so body text stays readable. The issue names no automated test requirement. Visual spot-checks of Settings are not coding requirements and are not evidenced in the PR, which is not a failure of this check. Limit: the review covered the token diff only. Hardcoded white text classes outside main.css were not inspected.

Full details: Out of Scope Changes check

Explanation

[#11452] Every changed line is a dark-mode color value in src/renderer/src/assets/main.css, replacing #fafafa with #e5e5e5. No layout, logic, terminal, or light-mode declarations change. The changed blocks cover app chrome: base foreground, card, popover, secondary, accent, sidebar, worktree sidebar, and security surfaces. The issue scope covers settings, panels, headings, and labels in dark-mode app UI, so these tokens fall within scope. The issue excludes terminal theme contrast, and no terminal token is changed. No change is demonstrably unrelated to the issue.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@AmethystLiang
AmethystLiang merged commit ec60730 into main Oct 31, 2026
41 checks passed
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.

[UX]: Soften pure-white text contrast in dark mode app UI

1 participant