Skip to content

a minimal sample to test the dark mode compatibility on web

Notifications You must be signed in to change notification settings

artlesshand/darkmode-in-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Dark Mode in Web [Pure CSS]

This is a minimal sample to test the dark mode compatibility on web in iOS13 and MacOS Mojave.

As of now, It only works in safari; you can see a Demo here.


I'm using :root and prefers-color-scheme: to specify the darkmode style. If you're not comfortable with the css variables you can also use selectors.


Read also: Apple WWDC 2019 | Supporting Dark Mode in Your Web Content

About

a minimal sample to test the dark mode compatibility on web

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published