An Interest In:
Web News this Week
- May 1, 2024
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
November 14, 2018 03:00 pm GMT
Original Link: https://css-tricks.com/dark-modes-with-css/
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.
Thats right. If this becomes a little bit more supported in other browsers, then we might potentially soon have a way to toggle on night modes with a few lines of CSS!
Recently Mark Otto described how we can start using prefers-color-scheme today in order …
The post Dark modes with CSS appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/dark-modes-with-css/
Share this article:
Tweet
View Full Article