◐ Shell
clean mode source ↗

gh-142927: Tachyon: Start with user's default light/dark theme by hugovk · Pull Request #142987 · python/cpython

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.