- dark mode
Check it out live before reading if you want!
So called dark mode layouts have been getting a lot of attention and hype lately, as more and more companies have implemented an optional design of their websites and products. I’ve personally been using macOS Mojave’s dark mode since release, and I’m completely sold on it.
Ever since Safari released their new @media feature
prefers-color-scheme, I’ve seen a lot of people experimenting with implementing this on their own websites. This new media feature - which is now supported by Firefox as well - gave us a way to automatically detect the user’s preference with some simple CSS.]
dark-mode class or data attribute on
Buuuutttt… where’s the fun in doing that when you can achieve the same thing with CSS only, am I right?? 🙌
Read the article