diff --git a/assets/sass/style.sass b/assets/sass/style.sass index 54bd7de..e0ad534 100644 --- a/assets/sass/style.sass +++ b/assets/sass/style.sass @@ -2,6 +2,25 @@ $fa-font-path: '{{ "/fonts/fontawesome-free/webfonts" }}' $nunito-font-path: '{{ "/fonts/NunitoSans" }}' +{{ if eq $themeStyle "auto" }} +@import "fonts" +@import "light-variables" +@import "base-variables" +@import "bulma-import" +@import "fontawesome-import" +@import "base" +@import "light-style" + +@media (prefers-color-scheme: dark) + @import "fonts" + @import "dark-variables" + @import "base-variables" + @import "bulma-import" + @import "fontawesome-import" + @import "base" + @import "dark-style" + +{{ else }} @import "fonts" @import "{{ $themeStyle }}-variables" @import "base-variables" @@ -9,3 +28,4 @@ $nunito-font-path: '{{ "/fonts/NunitoSans" }}' @import "fontawesome-import" @import "base" @import "{{ $themeStyle }}-style" +{{ end }}