Skip to content

gh-142927: Tachyon: Start with user's default light/dark theme - #142987

Merged
pablogsal merged 2 commits into
python:mainfrom
hugovk:3.15-tachyon-browser-default-dark-light
Dec 20, 2025
Merged

pablogsal merged 2 commits into
python:mainfrom
hugovk:3.15-tachyon-browser-default-dark-light

Conversation

@hugovk

@hugovk hugovk commented Dec 19, 2025 •

Copy link
Copy Markdown
Member

Right now, the page always starts in light mode, even if I have my system set to dark.

Instead, let's check prefers-color-scheme for the initial theme.

And if the user changes it, continue to save that preference in local storage.

Finally, refactor common theme support into heatmap_shared.js.

@pablogsal pablogsal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ Thanks you @hugovk !

@pablogsal
pablogsal merged commit 5b52636 into python:main Dec 20, 2025
@hugovk
hugovk deleted the 3.15-tachyon-browser-default-dark-light branch December 20, 2025 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants