News for hackers. Stuff that matters.
Re:Dark mode in a website with CSS by fphilipe on Tuesday October 08, 2019 @04:07PM (#21196600)
Same here: https://phili.pe/

I've used CSS variables though, which make it even simpler. E.g. I have `--page-background-color` and `--text-color-primary` that are set to a certain default value. In dark mode, these variables are set to other values, removing the need to redefine the actual selectors.

Re:Dark mode in a website with CSS by _bxg1 on Tuesday October 08, 2019 @04:15PM (#21196684)
Me too! CSS variables rock.