Created
October 3, 2022 21:32
-
-
Save oncet/545270014933f5a278e33a7ec2b19f71 to your computer and use it in GitHub Desktop.
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
<style> | |
:root { | |
--text-color-light: black; | |
--text-color-dark: white; | |
} | |
p { | |
color: var(--text-color-light); | |
} | |
@media (prefers-color-scheme: dark) { | |
p { | |
color: var(--text-color-dark); | |
} | |
} | |
</style> | |
<div> | |
<p>Hola mundo!</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment