Add dark mode support with system theme detection#963
Open
Smyrcu wants to merge 1 commit into
Open
Conversation
Add a dark mode theme that respects the user's system preference (prefers-color-scheme) by default, with a manual toggle button in the header to switch between light and dark modes. Preference is persisted in localStorage. - New htdocs/css/dark-mode.css with complete dark theme styles - Theme toggle icon in header (sun/moon) - Auto-detection of system dark/light preference - Bundled within COMBINE_STYLE block for production builds
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.
Add a dark mode theme that respects the user's system preference
(prefers-color-scheme) by default, with a manual toggle button in the
header to switch between light and dark modes. Preference is persisted
in localStorage.
PLEASE READ:
THE CRONICLE TEAM DOES NOT MERGE PULL REQUESTS!
Please understand, we greatly appreciate your contribution. Open source software is amazing, because anyone can fork it and build in their own enhancements. But Cronicle v0.x is in maintenance-only mode. We are no longer adding any new features, because we are hard at work on the next major version of Cronicle (called Orchestra). It is a complete ground-up rewrite from scratch, and will have MANY of the requested features people has been asking for.
We simply do not have the man power to merge PRs into Cronicle v0.x and then maintain them.
The very rare exception to this is something like a single line bug fix, which we have merged before (and we are very thankful for!). If you happen to be fixing a bug, and your PR contains only a small amount of code with minor changes, then it MAY possibly get merged. But this is largely not the case.
We're very sorry if you have already spent time on your PR. We will copy this message into the main README file so it is hopefully visible to people before they fork and begin work on a PR.
Thank you, and deepest apologies.
-- The Cronicle Team