rails / website

https://rubyonrails.org/
72 stars 107 forks source link

Force Light Mode / Add Toggle Mode #391

Open Labern opened 4 days ago

Labern commented 4 days ago

Hi,

I'm sure there are other priorities for the guides, but I find the dark theme quite difficult to read, and the light theme particularly effective. I haven't been able to find a neat solution to this — Chrome's various force light mode features don't seem to work — and even custom CSS overwrites don't work well.

The only solution that I've found helpful is simply to remove all sections related to the prefers-colour-scheme media query in the stylesheet — going into Dev Tools, Sources, Stylesheets, and then ripping out everything from line 1593 onwards. This is an incredibly blunt way to fix the problem: would it be possible to create a neater solution with a toggle? I know this issue has been raised before, so I'm happy to develop one myself, but thought I'd raise it as an issue first.