kiwibrowser / android

This repository is archived, and is now transferred to https://github.com/kiwibrowser/src
https://kiwibrowser.com/
718 stars 74 forks source link

Tell Kiwi Site uses Dark Mode #304

Open Kromilan opened 3 months ago

Kromilan commented 3 months ago

Hello, my own website already uses a dark theme. I tested it on kiwi and noticed that night mode makes light grey shadow boxes invisible, which is quite bad on this particular site because they are essentially just slim light grey lines to separate different areas, not big glowing lights. So that got me wondering: is there a meta tag that I can add to my website to tell kiwi "hey, this site already uses a dark theme, please leave it as it is, even when night mode is activated"?

Ayx03 commented 3 months ago

I tested with my own Hugo blog and Kiwi seem to know my site has Dark Mode. image I found this in the source of my website: data-scheme="dark" image You may also try the followings:

<meta name="color-scheme" content="dark light">
@media (prefers-color-scheme: dark) {
    /* Dark mode styles */
}
<meta name="theme-color" content="#000000">