hugo-theme-introduction/assets/sass/style.sass
Martin Hutchinson 1ee72fb667
Missing import for auto dark mode, fixes #337 (#347)
The background rendered properly if dark mode was specified explicitly in the config.toml, but not if the config.toml specified auto mode and then dark mode was chosen by the client.
2023-02-18 11:16:59 -06:00

32 lines
763 B
Sass

{{ $themeStyle := .Site.Params.themeStyle | default "light" }}
{{ if eq $themeStyle "auto" }}
@import "fonts"
@import "light-variables"
@import "base-variables"
@import "bulma-import"
@import "fontawesome-import"
@import "academicons-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 "academicons-import"
@import "base"
@import "dark-style"
{{ else }}
@import "fonts"
@import "{{ $themeStyle }}-variables"
@import "base-variables"
@import "bulma-import"
@import "fontawesome-import"
@import "academicons-import"
@import "base"
@import "{{ $themeStyle }}-style"
{{ end }}