Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (And of course white background always. Dark mode is depressing.)

Twice during the last couple of years, I’ve done this poll online:

  When reading a code block in your chosen viewing mode (light or dark), 
  which of these should the code block always do?

  - Match my chosen mode
  - Have a dark background
  - Have a light background
... and, each time, “Match my chosen mode” won with well over 75% of the votes (about 150–200 total votes in each case). Accordingly, I’ve styled my site’s code blocks to handle both dark- and light-mode viewing. I also provide a switch that enables one to toggle back and forth just in case the chosen system mode doesn’t match how one wants to view code blocks (e.g., some people prefer to see code blocks in dark mode even if they’re otherwise using light mode).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: