Ahh, so the example you have doesn’t do anything with the dark
class you add to the body.
It relies on the @media (prefers-color-scheme: dark)
setting only.
If you want both, you need to listen for the media query and the class list.
Ahh, so the example you have doesn’t do anything with the dark
class you add to the body.
It relies on the @media (prefers-color-scheme: dark)
setting only.
If you want both, you need to listen for the media query and the class list.