Skip to content

Instantly share code, notes, and snippets.

@M-J-Robbins
Last active May 8, 2019 18:19
Show Gist options
  • Save M-J-Robbins/9bb6675704aebc7c1272ccd547b77be6 to your computer and use it in GitHub Desktop.
Save M-J-Robbins/9bb6675704aebc7c1272ccd547b77be6 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta name="supported-color-schemes" value="light dark">
</head>
<body class="body">
<style style="display:block;white-space:pre-wrap" contenteditable>
:root {
color-scheme: light dark;
}
@media (prefers-color-scheme:light){
body, .body2{background:#00ffff;color:#000000}
}
@media (prefers-color-scheme: dark) {
body{background:#c00000;color:#ffffff}
}
</style>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment