Hacker News new | ask | show | jobs
by jessehattabaugh 1093 days ago
The examples are practically invisible in dark mode. The author should use rasterized screenshots with white backgrounds, or a media query with a brighter color.
3 comments

Which dark mode are you talking about? As far as I can tell the page (& demos) don't ship any styles for prefers-color-scheme: dark at all
Reminds me of the meme of the person shoving a stick into their bikes wheel then complaining about ______. Used to get it a lot here with people complaining about sites being broken because they were hard blocking essentially all javascript, the issues are your own making here...
In my case firefox used the OS's (Windows 10) dark mode preference.

In about:config the layout.css.prefers-color-scheme.content-override setting was on 2 (system). Setting it to 3 (browser) turned the dark mode off.

Sounds like a great idea if you would like to use these in your own dark mode site. The demo site is not in dark mode, however, so why should they optimize for this?
The Firefox "Dark Background and Light Text" extension works fine on this page when using the "Invert" option.