4 ms·
``` @media (prefers-color-scheme: dark) { * { color: #ccc; background: black; } } ``` Really all you need for a rudimentary dark
by mvanaltvorst 5y ago
```
@media (prefers-color-scheme: dark) {
* {
color: #ccc;
background: black;
}
}
```
Really all you need for a rudimentary dark mode that automatically changes depending on your system preferences. Let's stop pretending this would take HN more than 30 minutes of dev time. Definitely would help improve accessibility.