Skip to content

Add a Graphite High Contrast theme - #32

Merged
dgsienko merged 2 commits into
dgsienko:mainfrom
bwets:feat/high-contrast-theme
Nov 20, 2026
Merged

dgsienko merged 2 commits into
dgsienko:mainfrom
bwets:feat/high-contrast-theme

Conversation

@bwets

@bwets bwets commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

What

A new Graphite High Contrast theme, listed right after Graphite. The page stays dark, but added and removed lines are clearly lighter than the unchanged ones, so the changes jump out when scrolling a long file.

Graphite Graphite High Contrast
Added line vs page background 1.1:1 2.0:1
Removed line vs page background 1.1:1 1.6:1

The page background is darker (#0b0c0f), the diff backgrounds lighter and more saturated, and the code colors are brightened versions of Graphite's so they stay readable on top of them. Comments are lifted the most, since they were the dimmest color.

Tests

TestGraphiteHighContrast in test_themes.py checks that:

  • fg and every syntax color reach at least 4.5:1 (WCAG AA) on the page, added and removed backgrounds;
  • the added and removed backgrounds stand out from the page by at least 1.5:1, and more than in Graphite.

pytest (319 passed), ruff check and ruff format --check are clean. Checked by hand in the web UI on a C# diff in split view.

README and AGENTS.md now count 17 themes. Version bumped to 0.12.0, independent of #30 and #31.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xshwvphn2wQmVKLLS2G9kJ

A darker Graphite whose added and removed lines are clearly lighter
than the rest of the file, so a change reads at a glance. The code
colors are lifted to keep at least 4.5:1 contrast on the base, added
and removed backgrounds, which a new test checks.

Bump version to 0.12.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xshwvphn2wQmVKLLS2G9kJ
@bwets
bwets requested a review from dgsienko as a code owner November 20, 2026 13:58
@bwets
bwets marked this pull request as draft November 20, 2026 13:59
@bwets
bwets marked this pull request as ready for review November 20, 2026 14:06
@dgsienko
dgsienko merged commit ac6df83 into dgsienko:main Nov 20, 2026
4 checks passed
@bwets
bwets deleted the feat/high-contrast-theme branch November 20, 2026 16:02
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.

2 participants