Dark modes with CSS
With the introduction of dark mode in macOS, Safari Technology Preview 68 has released a new feature called prefers-color-scheme which lets us detect whether the user has dark mode enabled with a media query. That’s right…. Source: https://css-tricks.com/dark-modes-with-css/