-
Notifications
You must be signed in to change notification settings - Fork 112
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
Make README logo work in dark mode #87
Conversation
Fancy solution! Works well for me. I switched my Mac from dark mode to light mode, and could see the difference with a page reload. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, didn't actually work for me, but I suspect I need to restart my machine for the changes to take effect. I like the solution though, so if Kevin is saying it works for him, it's good by me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Nice!
6709c1e
to
7289b85
Compare
86b88d7
to
dca3378
Compare
7289b85
to
e8d24f1
Compare
Dark mode is, they say, the new thing, and the logo doesn't work super well with it, because it's black on dark grey. This is surprisingly hard to fix. There are a few options: - make the logo colored; sorry, but I like black - add a white border to the logo; this is what Apollo does but I think it's pretty ugly in dark mode - add svg with media queries; this works well but only if the github dark mode setting matches the browser(/OS) dark mode setting, since that's what the media queries look at I opted for option 3. This required converting the text in the SVG to paths, since it really matters that you have the exact same font. (I tested on Android Firefox, which empirically doesn't have the same fonts I have on desktop.) Fixes #17. Issue: #17 Test plan: tested that it looks good on both mobile firefox in dark mode, and desktop firefox+chrome in light mode. Reviewers: dbraley, kevinb, kevindangoor, marksandstrom
dca3378
to
ecf2d4b
Compare
Summary:
Dark mode is, they say, the new thing, and the logo doesn't work super
well with it, because it's black on dark grey. This is surprisingly
hard to fix. There are a few options:
think it's pretty ugly in dark mode
dark mode setting matches the browser(/OS) dark mode setting, since
that's what the media queries look at
I opted for option 3. This required converting the text in the SVG to
paths, since it really matters that you have the exact same font. (I
tested on Android Firefox, which empirically doesn't have the same fonts
I have on desktop.)
Fixes #17.
Issue: #17
Test plan:
tested that it looks good on both mobile firefox in dark mode, and
desktop firefox+chrome in light mode.