Skip to content

Opt out of Chrome's auto dark theme - #22

Merged
ericchernuka merged 1 commit into
masterfrom
ec/opt-out-auto-dark
Nov 12, 2026
Merged

ericchernuka merged 1 commit into
masterfrom
ec/opt-out-auto-dark

Conversation

@ericchernuka

Copy link
Copy Markdown
Owner

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=true at 412×900 against a pnpm build of each branch.

  • Before (master): the page background goes dark olive, the readout card goes black, the − button goes black, and the top swatch rows go near-black. The lightest shades are gone.
  • After: it renders the same as normal light mode. The swatches run from pale yellow to black, and the card and buttons stay light.

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.

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.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
huebo Ready Ready Preview Nov 11, 2026 12:12am UTC

@ericchernuka
ericchernuka merged commit f9f3645 into master Nov 12, 2026
3 checks passed
@ericchernuka
ericchernuka deleted the ec/opt-out-auto-dark branch November 12, 2026 04:01

This branch was successfully deployed

1 active deployment
Preview — fd440731 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant