Hacker News new | ask | show | jobs
by hebelehubele 188 days ago
You can do without javascript. Checkbox `:checked` + `label` trick for toggling states still works.

See: https://codepen.io/abdus/pen/bNpQqXv

1 comments

Thanks, I’ll check this out!
Here's a version with a 3-way theme selector (light / system / dark) using radio inputs.

https://codepen.io/abdus/pen/yyOQpvE