Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
Los valores aceptados son:
- dark
- light
- no-preference
*/
@media(prefers-color-scheme: dark)
{
body { background-color: #171717; color: #ffffff; }
a { color: #d62f2f }
a :visited { color: #d62f2f }
}
@media(prefers-color-scheme: light)
{
body { background-color: #ffffff; color: #121212; }
a { color: #ac2525 }
a :visited { color: #ac2525 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment