Add custom CSS theming with a theme picker - #194
Open
danmaps wants to merge 1 commit into
Open
Conversation
Adds a Theme dropdown in Settings that lists .css files from a per-user themes folder and a bundled themes folder, applying the selected theme live via fs.watch. Users can drop their own .css into the per-user folder to add themes without rebuilding. Themes re-map the existing variables.css design tokens plus a few global selectors, so no component styles change; the selected CSS is injected as a trailing <style> tag to override bundled styles. Ships five bundled themes (hacker-terminal, synthwave, dracula, nord, paper-light) via build.extraResources. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
danmaps
marked this pull request as ready for review
August 17, 2026 22:41
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.
Summary
Adds optional theming to todometer. A Theme dropdown in Settings -> Configuration -> Appearance lists
.cssfiles found in the app's themes folders and applies the selected one live. Users can drop their own.cssinto the per-user themes folder to add themes without rebuilding.What's included
userData/themes) and the bundledthemes/folder, deduped by name (user themes win).fs.watch.build.extraResources.How it works
Themes re-map the existing design tokens in
variables.css(--bg,--green,--font-color, etc.) plus a few global element selectors, so no component styles need to change. The renderer injects the selected CSS as a trailing<style>tag so it overrides bundled styles.Notes