Skip to content

Commit

Permalink
Add dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 9, 2019
1 parent fa94b3c commit 6616725
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/index.css
@@ -1,9 +1,33 @@
:root {
color-scheme: light dark;
background-color: hsl(0, 0%, 90%);
}

a {
color: #0367d8;
}

body {
font-family: system-ui;
margin: 3em auto;
max-width: 30em;
}

label {
display: block;
}

input {
font: inherit;
}

output {
font-weight: bold;
}

@media (prefers-color-scheme: dark) {
:root {
background-color: hsl(214, 13%, 10%);
color: hsl(214, 13%, 90%);
}
}

0 comments on commit 6616725

Please sign in to comment.