Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard to view some images or diagrams in GitHub's Dark Mode #656

Open
jessicax941 opened this issue Feb 24, 2021 · 2 comments
Open

Hard to view some images or diagrams in GitHub's Dark Mode #656

jessicax941 opened this issue Feb 24, 2021 · 2 comments

Comments

@jessicax941
Copy link

As I am using dark mode in GitHub, I came across at least a couple of diagrams that were not compatible with dark mode, making it difficult to understand the diagram or even see that the diagram is there in the first place.

Some examples are:

Doubly Linked List
image

Hash Table
image

I believe the problem is due to the images (or SVG file) here being transparent and it would most likely be fixed by adding a white background to the image. I have not checked all the files but there could be more of such images/diagrams.

Though it's a small issue, I just thought I could bring it up as I haven't seen anyone else report this issue.

@amritMohanty
Copy link

Hey there, I am interested in helping out with this issue. Where should i start?

@alexandercerutti
Copy link

alexandercerutti commented Aug 17, 2023

Starting from Nov 21, Github offers several ways to add dark mode alternatives for images:

https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/
https://github.blog/changelog/2022-05-19-specify-theme-context-for-images-in-markdown-beta/

I use the second for the logos, but I don't know if it still considered a beta after over a year.

The biggest problem is to choose a color that will fit for all the dark modes and one that will fit all the light modes.

The biggest issue is the the repo seems to not be updated or maintained anymore (?), by looking at the amount of PR and issues.

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

No branches or pull requests

3 participants