Browse Source

root color for dark mode

Daniel 4 years ago
parent
commit
1ea03fc691
2 changed files with 15 additions and 0 deletions
  1. 14 0
      build/scss/_root.scss
  2. 1 0
      build/scss/parts/_core.scss

+ 14 - 0
build/scss/_root.scss

@@ -0,0 +1,14 @@
+.dark-mode {
+  :root {
+    // Custom variable values only support SassScript inside `#{}`.
+    @each $color, $value in $colors-alt {
+      --#{$color}: #{$value};
+    }
+
+    @each $color, $value in $theme-colors-alt {
+      --#{$color}: #{$value};
+    }
+  }
+}
+
+//

+ 1 - 0
build/scss/parts/_core.scss

@@ -2,6 +2,7 @@
 // Part: Core
 //
 
+@import "../root";
 @import "../animation-effects";
 @import "../preloader";
 @import "../layout";