Why Nostr? What is Njump?
2023-12-20 07:10:07

Ana Tudor šŸÆ on Nostr: Since `:has()` is now cross-browser šŸ„³ here's what's still my šŸŒŸ top šŸŒŸ use ...

Since `:has()` is now cross-browser šŸ„³ here's what's still my šŸŒŸ top šŸŒŸ use case for it: theme switching!

In the very simple case, when we want to switch from a light to a dark theme, we switch `--dark` from `0` to `1` on the `body` when the dark theme option is selected.

#css #theming #code #coding #frontend #webDev #webDevelopment #webCompat

Author Public Key
npub1wzrcns4nynt3aegu8qvxyffxu8k6rahtmx5ll6ap7z24f036y43q0u2nuu