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

Note that a checkbox's indeterminate state can only be set via JavaScript, so that lessens the elegance of a CSS-based approach.

I agree that using radios would be better. Or just prefers-color-scheme, which sidesteps the FOUT issue that often occurs when storing theme settings in localStorage.



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

Search: