fix(theme): improve theme color contrast for macOS Terminal.app#21175
fix(theme): improve theme color contrast for macOS Terminal.app#21175
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the accessibility and readability of the CLI's default themes by adjusting color palettes to meet WCAG contrast ratio standards. The updates specifically benefit users of macOS Terminal.app, providing a more comfortable visual experience without impacting other theme configurations. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the color palettes for the light and dark themes to improve contrast and accessibility, particularly for macOS Terminal.app. The changes involve replacing dynamically generated colors with hardcoded values that meet a 4.5:1 contrast ratio. While this is a positive step for accessibility, I've identified a few instances where different semantic color properties have been assigned the same hex value in both themes. This reduces visual distinction and should be addressed to improve UI clarity. My review includes specific comments on these duplicated color assignments.
|
Size Change: -554 B (0%) Total Size: 26 MB ℹ️ View Unchanged
|
|
The PR correctly addresses the contrast issues for xterm-256 terminals (like macOS Terminal.app) by adopting a high-contrast palette based on the xterm-256 standard. I have updated the snapshots and fixed the two test failures in and that were caused by the color changes and the new default background. Observations:
The code follows the repository's strict development rules and uses established React/Ink patterns. |
ce1a3ef to
3474fa8
Compare

Summary
Updates both light and dark theme colors to ensure a minimum 4.5:1 contrast ratio in xterm-256 environments, specifically targeting improved visibility and accessibility for macOS Terminal.app.
Details
Related Issues
Fixes #21170