Skip to content

Commit

Permalink
💄 Add dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 7, 2020
1 parent 1a7b218 commit 1a22120
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ActiveIncidents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
background-color: #dcffeb;
color: #003300;
}
@media (prefers-color-scheme: dark) {
article {
background-color: #700000;
}
}
</style>

{#if !incidents.length && !loading}
Expand Down
6 changes: 6 additions & 0 deletions src/components/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
overflow-x: auto;
}
@media (prefers-color-scheme: dark) {
nav {
background-color: #004f4b;
}
}
ul {
margin: 0;
padding: 0;
Expand Down
10 changes: 10 additions & 0 deletions static/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,13 @@ dl dt {
dl dd {
margin: 0 0 1rem 0;
}

@media (prefers-color-scheme: dark) {
body {
background-color: #001f1e;
color: #f7ffff;
}
article {
background-color: #003330;
}
}

0 comments on commit 1a22120

Please sign in to comment.