from Hacker News

The Future of CSS: CSS Toggles

by malobre on 4/24/22, 11:17 AM with 4 comments

  • by eyelidlessness on 4/24/22, 5:18 PM

    They’re standardizing the checkbox hack! This is fantastic. It will make so many simple no-JS state changes so much more accessible.
  • by rapnie on 4/24/22, 11:42 AM

    What I'd like to see is a site-wide css-only toggle to switch between dark and light mode. The shown example wouldn't preserve the setting when navigating to a sub-page, or would it?