A short time ago, this post about one-line dark mode by Akhil Arjun on Dev.to showed up. Until today, I was using this multi-line version:
|
|
The img, picture, video
part inverts those elements again, so that they come out with the
original colors.
Since I switch to Tailwind, I’ve simply used the provided dark mode which uses prefers-color-scheme
.