Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
konradzikusek
· 8y ago · 0 comments
Every media query can be checked using JS - `matchMedia('(prefers-color-scheme: dark)').matches` => true/false
Comments
[–]
shurcooL
8y ago
Excellent, thanks. I see this is mentioned in the original article too; I must've missed it.