CSS Only Light/Dark Theme

PHOTO EMBED

Tue Oct 15 2024 04:08:58 GMT+0000 (Coordinated Universal Time)

Saved by @cbmontcw ##css ##themes ##lightdark

body:has(option[value="pony"]:checked) {
  --font-family: cursive;
  --text-color: #b10267;
  --body-background: #ee458e;
  --main-background: #f4b6d2;
}
content_copyCOPY

https://webkit.org/blog/13096/css-has-pseudo-class/