From c22ec2d0de753913784cfff3abcc7e507483bce5 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Thu, 1 Apr 2021 20:39:42 +0200 Subject: [PATCH] feat: dark mode! --- styles/darkmode.css | 15 +++++++++++++++ styles/index.css | 1 + 2 files changed, 16 insertions(+) create mode 100644 styles/darkmode.css diff --git a/styles/darkmode.css b/styles/darkmode.css new file mode 100644 index 0000000..8f50323 --- /dev/null +++ b/styles/darkmode.css @@ -0,0 +1,15 @@ +@media (prefers-color-scheme: dark) { + :root { + background-color: #161618; + color: #dbd7db; + } + + .button__link { + background-color: #dbd7db; + color: #161618; + } + + a { + color: #dbd7db; + } +} diff --git a/styles/index.css b/styles/index.css index 3046510..dcf4814 100644 --- a/styles/index.css +++ b/styles/index.css @@ -1,5 +1,6 @@ @import url("./typography.css"); @import url("./atoms.css"); +@import url("./darkmode.css"); /* Components */