Add night mode theme with dark palette, stars, and moon#144
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5e3c209d9f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let lastLane = -1; | ||
| let lastDirection = "rtl"; | ||
| let muted = localStorage.getItem("wtc:muted") === "1"; | ||
| let nightMode = localStorage.getItem("wtc:theme") === "night"; |
There was a problem hiding this comment.
Use the system dark-mode preference initially
On a first visit where wtc:theme is not already in localStorage, this initializes nightMode to false; the later syncThemeButton() call then writes day, so users whose browser/OS prefers dark mode never get the night theme automatically. Initialize from matchMedia('(prefers-color-scheme: dark)') when no explicit saved theme exists, or avoid persisting the default until the user toggles it.
Useful? React with 👍 / 👎.
Congratulations 🎉
You made a pull request in Conductor. This starter project gave you something quick to install, run, edit, review, and ship from an isolated git worktree workspace.
This PR adds a night mode theme that automatically activates when the system is in dark mode. It includes a dark color palette, a subtle starry sky background, a glowing moon, and adjusted steam/hover colors for the dark theme.