Repository navigation
Conversation
A prefers-color-scheme media query at the end of the stylesheet remaps the light color utilities to dark ones, so the views and the classes the backtrace toggle swaps stay as they are. Light mode is unchanged. Session: claude://claude.ai/epitaxy/local_3aec44a6-88f2-4748-b579-16c5b9c08863 Co-Authored-By: Claude Opus 5.5 <claude@dennishackethal.com>
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.
Donating some tokens so my eyes don’t hurt looking at the dashboard past 10pm… Here’s what my clanker wrote:
The dashboard now switches to a dark theme when the operating system is in dark mode. Light mode looks the same as before.
How
A
prefers-color-scheme: darkmedia query at the end of_style.html.erbremaps the color utilities the views already use to darker shades from the Tailwind palette. It also setscolor-scheme: light dark, so scrollbars and other browser-drawn controls match.I went this way rather than adding
dark:variants to the markup because the backtrace’s Application/Full toggle swapstext-blue-500andtext-gray-500in JavaScript. A permanentdark:text-gray-400on those buttons would override the selected one’s blue. With the remap, no view or script changes.Screenshots
Testing
bundle exec rake testpasses.🤖 Generated with Claude Code