racket / scribble

Other
197 stars 90 forks source link

Dark mode for scribble docs #285

Open jackfirth opened 3 years ago

jackfirth commented 3 years ago

With the prefers-color-scheme media query, CSS stylesheets can detect whether the user has dark mode enabled in their operating system settings. Can we get a dark theme for Scribble docs? I tend to code at night a bit more than I like to admit, and the bright whites of scribble docs cause a lot of eye strain. Paging @mbutterick for typography concerns and general web design wizardry.

mbutterick commented 3 years ago

I’m afraid I must decline. I am morally opposed to dark mode. It would not be a difficult project for a true believer.

jackfirth commented 3 years ago

Fascinating, and as a subscriber to your tinyletter mailing list I'd love to hear your thoughts about it sometime.

Anyway, noted. Perhaps someday I'll give this a shot.

Terkwood commented 3 years ago

I worked around this on OSX by learning a bit more about the accessibility system.

If you already have the accessibility icon available in your top bar, you can navigate to the Accessibility Preferences choice (also available somewhere in system preferences)

Screen Shot 2021-01-25 at 3 05 26 PM

I made Invert Colors available

Screen Shot 2021-01-25 at 3 05 46 PM

I also searched separately for "shortcuts" and made sure that the keyboard binding is available, which makes this basically usable

Screen Shot 2021-01-25 at 3 06 05 PM
Terkwood commented 3 years ago

Hey I think I misread the above comment from @mbutterick . Sorry.

Just to clarify, are PRs welcome ?

samth commented 3 years ago

Yes, PRs for this (and other things) are certainly welcome.