en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Dark Mode

Open kkanekii opened this issue 5 years ago • 54 comments

Feature Request

Will Dark Mode be ever available on this website? I think it will definitely boost the time view on the website If anyone could do this, it would be AWESOME

kkanekii avatar Jul 10 '21 09:07 kkanekii

@iliakan its fine now if this is not getting done since 3 months might as well close the issue

kkanekii avatar Oct 19 '21 14:10 kkanekii

We have it working, just not deployed yet. I can make a public version and post a link here.

iliakan avatar Oct 19 '21 14:10 iliakan

Do it, sir! 😃

honeykpatel avatar Oct 19 '21 16:10 honeykpatel

Take a look at https://dark.javascript.info. Login: dark, password: mode.

Frontpage is not themed, as of now. You can find theme switch in articles (I hope so).

Please leave your feedback at https://docs.google.com/forms/d/e/1FAIpQLSfPZGs62me8x5UIv_JNbyODxk78tmbl5YyBJ_yrkhM9xt4UdQ/viewform and maybe here ;)

iliakan avatar Oct 21 '21 15:10 iliakan

Is it just me or the homepage is still in light mode? But the chapters looks so cool in dark mode 🤩

honeykpatel avatar Oct 21 '21 15:10 honeykpatel

Frontpage is not themed, as of now.

iliakan avatar Oct 21 '21 15:10 iliakan

It's looking great. Slight suggestions:

Seems like Disqus is confused between light and dark mode so it's showing a grey version 😂😂

image


I think it's your dark mode implementation that is making the background grey from white as the same can be seen in sandbox examples too, improvement in this will be really beneficial.

image

ShivamS136 avatar Oct 22 '21 14:10 ShivamS136

Please reload the page without browser cache, it should be fine now. Thanks.

iliakan avatar Oct 22 '21 15:10 iliakan

look great @iliakan well done!!!!

kkanekii avatar Oct 23 '21 16:10 kkanekii

Oh that looks super clean and amazing! But there is a problem, and that is disqus comments. When comments section is opened, then if we change the theme, text doesn't change. Reload is the fix, but it's little annoying :sweat_smile:. And all other things look perfect!

Manik2375 avatar Oct 26 '21 10:10 Manik2375

Strange, please clear browser cache? Should be working.

iliakan avatar Oct 26 '21 11:10 iliakan

Adding supporting screenshot for @Manik2375 comment, It's not working for me too:

image

image


The same happens when I am on light mode and turn dark mode on.

image

ShivamS136 avatar Oct 26 '21 12:10 ShivamS136

As you can see the screenshot, reloading and then before viewing the comments setting the theme fix it.

Manik2375 avatar Oct 26 '21 12:10 Manik2375

The comments should be auto reload it when you change the theme.

Best regards, Ilya Kantor

26 окт. 2021 г., в 15:04, Manik Kapoor @.***> написал(а):

 As you can see the screenshot, reloading and then before viewing the comments setting the theme fix it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

iliakan avatar Oct 26 '21 12:10 iliakan

I updated from the latest git now :/

Please try again.

iliakan avatar Oct 26 '21 12:10 iliakan

Now it seems fine :+1:

Manik2375 avatar Oct 28 '21 13:10 Manik2375

One more thing, code result disturb the theme a bit :(

(And a suggestion: add color-scheme: dark in dark theme, to make it look cool ^^ )

Manik2375 avatar Oct 28 '21 13:10 Manik2375

@Manik2375, Do you mean this?

Screenshot without color-scheme:dark; image


Screenshot with color-scheme:dark; on root HTML tag: image

But with this the code iframe is getting white background.

ShivamS136 avatar Oct 28 '21 13:10 ShivamS136

@GSemikozov please take a look?

iliakan avatar Oct 28 '21 13:10 iliakan

@ShivamS136 Yeah, I suggested about color-scheme because with it, the scrollbar looks nice. Not sure why it affects the result.

Manik2375 avatar Oct 28 '21 14:10 Manik2375