Oddbean new post about | logout
 @01dcb763 What’s wrong with it being CSS instead of JS? 
 @90431d67 my personal opinion of is that the 6 lines of js can do a better job checking a cookie and local before defining the final value. if you are interested next week i can post how we handled our light dark button. 
 @01dcb763 I’m just referring to this very simple CSS:

```
@media (prefers-color-scheme: dark) {
}
```

No cookies or JS required.