Skip to content

fix: keep the logo readable in dark mode - #1053

Merged
seabbs merged 3 commits into
mainfrom
fix/logo-dark-mode
Dec 4, 2026
Merged

seabbs merged 3 commits into
mainfrom
fix/logo-dark-mode

Conversation

@seabbs-bot

@seabbs-bot seabbs-bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

This is entirely from an agent so do not review until I have pinged for review as I will do a first pass

The logo was hard to read on GitHub's dark background, and its lines were thin on both themes.
This PR gives it colours that read on white and on dark, and heavier lines.
It is one file with no theme switching.

Claude Opus 5.5
  • Colours. Slate wordmark and outline tones that pass contrast on white and on GitHub dark (#0d1117).
  • Lines. Stroke widths raised about 1.4 to 1.5 times (1.5 to 2.25, 2 to 3, 3 to 4, 5 to 6).
Why one file and no media query

An earlier version used a prefers-color-scheme media query.
That follows the operating system, not GitHub's theme, so a light page on a dark OS showed light text on white.
Balanced colours in one file avoid this.
Light mode looks nearly the same as before.

Files and checks
  • docs/src/assets/epiaware-logo.svg
  • docs/src/assets/logo.svg

Each changed SVG was rendered with rsvg-convert on white and on #0d1117 and checked by eye.
The same change is in EpiAware/EpiAwarePackageTools.jl#613, which ships the shared logo to every package.

This was opened by a bot. Please ping @seabbs for any questions.

Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
@seabbs-bot
seabbs-bot requested a review from seabbs as a code owner December 4, 2026 11:11
seabbs-bot and others added 2 commits December 4, 2026 11:42
The dark-mode media query followed the reader's system setting, not GitHub's theme, so a light page with a dark OS drew light text on white.
Drop it and use slate tones that read on both white and GitHub dark.

Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
Co-authored-by: Sam Abbott <contact@samabbott.co.uk>
@seabbs
seabbs merged commit 6ef2937 into main Dec 4, 2026
6 of 7 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.

2 participants