Skip to content

Commit

Permalink
💄 Add dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 22, 2021
1 parent 17aa659 commit 44c169a
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/routes/_layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{/if}
<link
rel="stylesheet"
href={`/themes/${(config["status-website"] || {}).theme || "light"}.css`}
href={`/themes/${(config["status-website"] || {}).theme || "dark"}.css`}
/>
{#if config['status-website'].css}
{@html `<style>${config['status-website'].css}</style>`}
Expand Down
67 changes: 63 additions & 4 deletions static/themes/dark.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,74 @@
.dark body {
body {
background-color: #001716;
color: #f0ffff;
}
.dark article {

code {
color: #555;
background-color: #f0f0f0;
}

article {
background-color: #002b29;
border-color: rgba(0, 0, 0, 0.1);
}

.dark article {
article.down {
border-left-color: #e74c3c;
background-color: #700000;
}
article.degraded {
border-left-color: #f39c12 !important;
background-color: #ffdfad;
}
article.up {
border-left-color: #2ecc71;
}
article.good {
background-color: #dcffeb;
color: #003300;
}

.tag {
color: #fff;
}
.tag.closed,
.tag.up {
background-color: #16a085;
}
.tag.open,
.tag.down {
background-color: #c0392b;
}
.tag.degraded {
background-color: #f39c12 !important;
}

.dark nav {
.changed + section .data {
background-color: #fdcb6e;
}

.live-status article {
background-color: #002b29;
}

nav {
border-bottom-color: rgba(0, 0, 0, 0.1);
background-color: #002b29;
}

[aria-current] {
border-bottom-color: #3498db;
}

a.error-button {
border-color: rgba(0, 0, 0, 0.25);
background-color: #01a3a4;
color: #002b29;
}

.submit-button {
background-color: #01a3a4;
color: #002b29;
border-color: transparent;
}

0 comments on commit 44c169a

Please sign in to comment.