Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Sateeshm
· 1y ago · 0 comments
Isn't it just `prefers-color-scheme`
Comments
[–]
rebane2001
1y ago
that's the "auto" option, but the comment is taking about adding buttons to switch between the themes too
[–]
wjrb
1y ago
That would be the media query; sort of a long-hand way. I learned about the color function for settings the vars from the article, never saw those in use before.