summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-12 18:38:59 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-12 18:38:59 +0800
commit40b20a9a188cb151a9cc2f9113f9aff48153940c (patch)
treeb583050280cb89e83ea7c7a71b377dcf9e20f577 /assets
parent61eae5c5f9881cab29712f6e696085baa977e1f9 (diff)
chore: adjust theme configuration, etc
Diffstat (limited to 'assets')
-rw-r--r--assets/main.scss20
1 files changed, 20 insertions, 0 deletions
diff --git a/assets/main.scss b/assets/main.scss
index bb4b18b..393c8e9 100644
--- a/assets/main.scss
+++ b/assets/main.scss
@@ -2,4 +2,24 @@
# Only the main Sass file needs front matter (the dashes are enough)
---
+// Default theme colors
+$theme-colors: (
+ spacegrey: #222222,
+ inkpurple: #543581,
+ aquablue: #00aaa0,
+ azureblue: #2863b1,
+ gracered: #a12a50,
+ aloegreen: #3d9e56,
+ rustbrown: #795548,
+);
+
+$theme-name: "{{ site.theme_color }}";
+$theme-color: map-get($theme-colors, "spacegrey");
+
+@if map-has-key($theme-colors, $theme-name) {
+ $theme-color: map-get($theme-colors, $theme-name);
+} @else if str-index($theme-name, "#") == 1 {
+ $theme-color: {{ site.theme_color | default: '#222' }};
+}
+
@import "yat";