diff options
author | Wynn Wolf Arbor | 2020-06-12 16:26:24 +0200 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-06-13 16:41:08 +0200 |
commit | 06a0a74656ad5eb26ac8faf8bf7789fff2abdef7 (patch) | |
tree | b210676b886a8d576e54d640021d9bf8106f0b32 | |
parent | 37a2d299df9a05cd8437a2b040f484334321d832 (diff) | |
download | site-06a0a74656ad5eb26ac8faf8bf7789fff2abdef7.tar.gz |
css: Use dark colours when prefers-color-scheme indicates dark mode
Diffstat (limited to '')
-rw-r--r-- | scss/style.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scss/style.scss b/scss/style.scss index 2d6c6ce..d5bd770 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -22,6 +22,19 @@ --border-color-dark: darkgrey; } +@media (prefers-color-scheme: dark) { + :root { + --fg-color: #f0f0f0; + --fg-color-canary: #e9e9f0; + --fg-color-mute: #7a7a7a; + --fg-href: #6464ff; + --fg-href-visited: #9547dd; + + --bg-color: #1c1c1c; + --bg-color-canary: #323232; + } +} + a { color: var(--fg-href); } |