How to make dark reader detect a pre existing dark mode on site? #15128
-
|
From a web dev perspective here, not user. I want to know how that check works, so dark reader will show my site as "site already has a dark mode" in the extension popup. This is because my site does have one, dark reader does weird things to it. |
Beta Was this translation helpful? Give feedback.
Answered by
alexanderby
Mar 20, 2026
Replies: 1 comment 1 reply
-
|
The best way to tell Dark Reader about a dark theme is to have |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
EnderNon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The best way to tell Dark Reader about a dark theme is to have
<meta name="color-scheme" content="dark">. If not present, as soon as there is some style sheet, Dark Reader will check for text and background colors at several points of the screen, and some other heuristics.