Last active
September 12, 2019 12:52
Ionic 4 media query for Dark/Light mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (prefers-color-scheme: light) { | |
ion-toolbar { | |
--background: white; | |
color: black; | |
} | |
.verticalScrollContainer { | |
background: white; | |
} | |
} | |
@media (prefers-color-scheme: dark) { | |
ion-toolbar { | |
--background: black; | |
color: white; | |
} | |
.verticalScrollContainer { | |
background: black; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment