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

Make README logo work in dark mode #87

Merged
merged 1 commit into from
Sep 11, 2021
Merged

Make README logo work in dark mode #87

merged 1 commit into from
Sep 11, 2021

Conversation

benjaminjkraft
Copy link
Collaborator

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:

  • 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.

@dangoor
Copy link

dangoor commented Sep 10, 2021

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.

Copy link
Member

@dbraley dbraley left a 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!

Copy link
Member

@somewhatabstract somewhatabstract left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Nice!

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
@benjaminjkraft benjaminjkraft changed the base branch from benkraft.docs-3 to main September 11, 2021 00:32
@benjaminjkraft benjaminjkraft merged commit 9804d42 into main Sep 11, 2021
@benjaminjkraft benjaminjkraft deleted the benkraft.docs-4 branch September 11, 2021 00:33
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.

Image in README is hard to read in GitHub's dark/dimmed mode
4 participants