Repository navigation
Opt out of Chrome's auto dark theme - #22
Merged
Merged
Conversation
Chrome on Android can repaint pages dark when "Apply dark theme to sites" is on. A friend saw Huebo with white text, a grey readout card and dimmed swatches, which makes the picked colour wrong. Huebo has no dark design, so the page now declares color-scheme "only light" and Chrome leaves it alone.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Chrome on Android repaints pages dark when "Apply dark theme to sites" is on. That turned Huebo's wordmark white, made the readout card and stepper grey, and shifted the swatches, so the picked colour looked wrong. Huebo has no dark design, so we opt out:
<head> <meta name="viewport" … /> + <meta name="color-scheme" content="only light" />Evidence
I ran headless Chrome with
--blink-settings=forceDarkModeEnabled=trueat 412×900 against apnpm buildof each branch.Merge Danger
Door: two-way
Revert the one line to undo it.
Blast Radius: cosmetic
The only users affected are those whose browser forces dark mode. They'll now see Huebo's real colours. Form controls and scrollbars were already light.