people on hacker news wanted dark mode, so i gave it to them.
also: collapsible comments, so you can cope with those sprawling threads that defy their tree structure by somehow becoming circular
hn.svelte.dev/item/23197966
11
10
178
in case anyone is curious: yes, it respects prefers-color-scheme, yes, it will persist your choice to localStorage, no, it won't result in a flash of wrongly-themed content like *ahem* some implementations
4
1
47
Also I can recommend postcss-dark-theme-class. It allow you to use `prefers-color-scheme: dark` media query in CSS, but have a JS switcher support
github.com/postcss/postcss-d…
2
0
4




