Add support for light mode - #85
Open
troccoli wants to merge 26 commits into
Open
Conversation
troccoli
force-pushed
the
add-light-mode
branch
from
August 7, 2026 18:36
9615843 to
51fc803
Compare
troccoli
force-pushed
the
add-light-mode
branch
from
August 7, 2026 18:42
51fc803 to
e95445e
Compare
troccoli
marked this pull request as draft
August 8, 2026 11:26
troccoli
marked this pull request as ready for review
August 8, 2026 15:39
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.
This PR adds a theme switcher and supports for light mode. The default is still dark mode though. It has been done with the help of Codex AI.
CSS variables have been added for both dark and light mode and used throughout.
The logos in the Community section on the homepage have been left unaltered, as I would have had to research each company to understand how to correctly display their logo in light mode.
By default the syntax highlight themes are
draculafor dark mode andgithub-lightfor light mode. They can be customised by theTORCHLIGHT_DARK_THEMEandTORCHLIGHT_LIGHT_THEMEenv variables.For reference I have attached the plan I and Codex followed and the audit file used during the plan.
LIGHT_MODE_PLAN.md
LIGHT_MODE_AUDIT.md
Questions for the reviewer(s)
dark:class modifier. If you prefer using the Tailwind classes directly I can have a go at converting something likebg-[var(--theme-bg)]tobg-white dark:bg-zinc-900