0

if i open up 9gag on Chrome on my phone, the menu bar changes its color to a dark theme, but when i go to for example ebay.com, it switches back to white. How can i achieve this? How can my website tell Chrome "hey, please use dark mode for this page"?

Googling was not successful, as i do not know how to phrase this correctly - i only found blogposts describing how to activate dark mode as user, but i want my website to tell the browser to be dark, if thats possible

Thanks in Advance, stay healthy

SHRX
  • 559
  • 1
  • 6
  • 17
  • Maybe browser takes average color of page? – Justinas Apr 28 '20 at 08:52
  • hm my page is black BG with some white text, and also my example 9gag is not in dark mode or anything - its mostly white – SHRX Apr 28 '20 at 08:53
  • 1
    Have you tried solutions from this site: https://www.themarketingtechnologist.co/change-your-websites-address-bar-to-your-brand-colors/ – Justinas Apr 28 '20 at 08:54
  • https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme – cloned Apr 28 '20 at 09:09
  • Thanks Justinas that was exactly what i was looking for! now my black website uses matching black menu bars :) – SHRX Apr 28 '20 at 09:20
  • @Justinas if you post your comment as an answer i would love to mark it as solution :) – SHRX Apr 29 '20 at 18:49

0 Answers0