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

Can you please add a dark theme like your JS-based site? Just cause you don't use JS doesn't mean they can't use CSS.


You can achieve it without CSS actually (in chrome) Just put <meta name="color-scheme" content="light dark"> to <head> It will also make vanilla scrollbar into dark theme


That is freaking awesome. I learned something new today and it is much simpler than trying to manage inverted colors in CSS.


You could use the following in Style editor of browser (accessible via Inspect Console):

  html{
   background-color: black !important;
   filter: invert(90%) hue-rotate(180deg) !important;
  }




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: