Www.julialang.org: dark mode julia logo

Created on 25 Mar 2021  路  4Comments  路  Source: JuliaLang/www.julialang.org

I use a dark mode plugin in my browser, and we have larger issue around respecting dark mode: #775.

While much of the website works fine with the dark mode plugin, it is only the julia logo that blends into the background. How do we use the white julia logo (which we have in the logo repo) when the browser is in dark mode?
Screen Shot 2021-03-25 at 3 34 24 PM

Most helpful comment

As a temporary measure we could do some white-lining - I'll take a look tomorrow.

All 4 comments

My understanding is that we would need to implement something in our code (like a dark mode Library or special non-existing Franklin syntax to handle dark mode) or use @cormullion 's black logo with a white outline to make it visible. The latter is probably easier.

@tlienart Is this something Franklin should support?

This is not on Franklin's side, as far as I'm aware this should be addressed by either

  1. some CSS (suggested by Keno in the other issue)
  2. some javascript

Either way it's not on the static side, this should be done when the user loads the page. I do not know precisely which CSS needs to be added so that it works with the different ways user can request dark mode (if it's a browser extension that needs to be detected, that's going to be a mess which requires javascript, if it's a toggle on the website, that also needs javascript).

I'm not familiar with dark mode stuff so if someone wants to experiment with it and figure out what needs to be done to respect user preferences and it turns out that it does need some specific support on Franklin's side, I'll be glad to lend a hand there

As a temporary measure we could do some white-lining - I'll take a look tomorrow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

essenciary picture essenciary  路  8Comments

logankilpatrick picture logankilpatrick  路  4Comments

logankilpatrick picture logankilpatrick  路  7Comments

00vareladavid picture 00vareladavid  路  5Comments

cormullion picture cormullion  路  8Comments