Y
Hacker News
new
|
ask
|
show
|
jobs
by
tom_alexander
260 days ago
If you're just concerned about light vs dark, then this article (which was posted to HN) does an auto/light/dark toggle button without javascript, and it shows using CSS variables for your colors:
https://lyra.horse/blog/2025/08/you-dont-need-js/