summaryrefslogtreecommitdiff
path: root/sass/src/common/index.scss
diff options
context:
space:
mode:
authormarudor <marudor@marudor.de>2019-05-16 15:02:17 +0200
committermarudor <marudor@marudor.de>2019-05-16 15:04:08 +0200
commit5c2388d3a2092505aff9f7b2e78e561c4db65385 (patch)
treea4a469baef25b98c3a33125ac8a65334775c7ec8 /sass/src/common/index.scss
parentb85db3a10df32cb2648607c83d37160ac3ee8691 (diff)
Add dark mode (only available with prefers-color-scheme currently)
Diffstat (limited to 'sass/src/common/index.scss')
-rw-r--r--sass/src/common/index.scss18
1 files changed, 18 insertions, 0 deletions
diff --git a/sass/src/common/index.scss b/sass/src/common/index.scss
new file mode 100644
index 0000000..1a47a11
--- /dev/null
+++ b/sass/src/common/index.scss
@@ -0,0 +1,18 @@
+$customColors: (
+ 'caution': $error-color,
+ 'info': $info-color,
+ 'contrast': $off-black,
+);
+
+@each $name, $color in $customColors {
+ .#{$name}-color {
+ background-color: $color;
+ }
+ .#{$name}-color-text {
+ color: $color;
+ }
+}
+
+html {
+ background-color: $bg-color;
+}