Skip to content

fix(docs): logo invisible on Jekyll page in OS dark mode#34

Merged
s1dd4rth merged 1 commit intomainfrom
fix/docs-logo-light
Apr 16, 2026
Merged

fix(docs): logo invisible on Jekyll page in OS dark mode#34
s1dd4rth merged 1 commit intomainfrom
fix/docs-logo-light

Conversation

@s1dd4rth
Copy link
Copy Markdown
Owner

<picture> with prefers-color-scheme: dark selected the white-ink logo even though the Jekyll page has a white background. OS dark mode ≠ page dark theme. Replaced with a plain <img src="logo.svg"> (black ink, always legible on the white Jekyll page). The GitHub README keeps its <picture> — GitHub's own theme system handles it correctly there.

🤖 Generated with Claude Code

…match

The <picture> element selected logo-dark.svg (white ink) based on
the OS-level prefers-color-scheme:dark, even though the Jekyll page
renders a white background. White ink on white = invisible wordmark.

The GitHub README's <picture> works correctly because GitHub applies
its own theme-matched dark/light CSS. The Jekyll page doesn't — it
just inherits the OS preference. Fixed by using a plain <img> with
the original black-ink logo.svg on the Jekyll page only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@s1dd4rth s1dd4rth merged commit bbb7389 into main Apr 16, 2026
7 checks passed
@s1dd4rth s1dd4rth deleted the fix/docs-logo-light branch April 16, 2026 05:55
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