Skip to content

Fix automaton image invisible in GitHub dark mode#32

Merged
fariedabuzaid merged 1 commit into
mainfrom
fix-automaton-darkmode
Jul 19, 2026
Merged

Fix automaton image invisible in GitHub dark mode#32
fariedabuzaid merged 1 commit into
mainfrom
fix-automaton-darkmode

Conversation

@fariedabuzaid

Copy link
Copy Markdown
Owner

The sieve automaton added in #31 was black ink on a transparent background, so it rendered black-on-black (invisible) on GitHub's dark theme.

Fix: render two theme-aware variants — dark ink for light mode, light ink for dark mode — and embed them with a <picture> element that switches on prefers-color-scheme. scripts/gen_readme_media.py now emits both (sieve_automaton-light.png / -dark.png); verified the dark variant composited on GitHub-dark (#0d1117) is fully legible.

🤖 Generated with Claude Code

The sieve automaton was black ink on a transparent background, so it was
invisible on GitHub's dark theme. Render two variants (dark ink for light
mode, light ink for dark mode) and embed them via a <picture> element that
switches on prefers-color-scheme.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fariedabuzaid
fariedabuzaid merged commit aaadfc7 into main Jul 19, 2026
4 checks passed
@fariedabuzaid
fariedabuzaid deleted the fix-automaton-darkmode branch July 19, 2026 16:12
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