Www.julialang.org: Respect dark mode preference

Created on 5 May 2020  路  11Comments  路  Source: JuliaLang/www.julialang.org

I was looking at https://www.youtube.com/watch?v=VgZm53qgj9Q, which starts with the julia web-page but using some sort of plugin that turns it to dark mode. I'm wondering if we can do something to make the logo look better for people who do similar things.

design hacktoberfest

Most helpful comment

I suppose the solution is to add a dark mode switch to julialang.org, then people won't need to a dark-mode plugin that doesn't invert images. That's a job for - well, I know it's tricky, since Slack took years to do it... :)

see https://github.com/JuliaLang/www.julialang.org/issues/712

All 11 comments

That's a job for @cormullion 馃槀

Yes, I noticed some dark magic going on in that video - some kind of browser add-on that forces everything to dark mode. Is that @JeffBezanson 's computer?

I suppose the solution is to add a dark mode switch to julialang.org, then people won't need to a dark-mode plugin that doesn't invert images. That's a job for - well, I know it's tricky, since Slack took years to do it... :)

see https://github.com/JuliaLang/www.julialang.org/issues/712

It's the browser settings of the person who made the video.

I believe its due to any addon/extension that changes the background. Ex: I use DarkReader in firefox.

Darkreader in firefox

I don't suppose there's a way to detect extensions like this and automatically provide a dark mode logo?

Apparently there's now a CSS media query for dark mode preference: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme. That seems like something we could definitely support.

I'd added a similar issue to Documenter.jl - https://github.com/JuliaDocs/Documenter.jl/issues/1320 - in case someone wanted to make the switch automatic.

This may not be anywhere near the solution, but just out of curiosity I modified julia's black color in svg. It's same svg and looks okay in both light & dark background.
julia light dark

The JuliaLogoGraphics repo has official logos for dark background.

https://github.com/JuliaLang/julia-logo-graphics

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jekbradbury picture jekbradbury  路  7Comments

logankilpatrick picture logankilpatrick  路  4Comments

tlienart picture tlienart  路  7Comments

00vareladavid picture 00vareladavid  路  5Comments

ViralBShah picture ViralBShah  路  4Comments