diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2019-01-13 15:41:51 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2019-01-13 15:42:48 +0300 |
commit | 4c20e50dbe33888aa98da15a38c1ee726fc5a392 (patch) | |
tree | 9abc2686f33e8236540925ed27a5237efcac7d7f /assets/scss/hallo.scss | |
parent | b0f7e8160e046d40fd67deb380d0af0bbad6a8f3 (diff) |
Add configuration options for colors
It's now possible to add a [params.colors] section to config.toml to
configure the colors the site uses. It is used like this:
[params.colors]
background = "#81c6ff"
foreground = "#edf7ff"
hover = "#ffba82"
Breaking changes: The SCSS variables have been renamed.
* $background-1 is now $color-background
* $default-light is now $color-foreground
* $default-dark is now $color-hover
See #4
Diffstat (limited to 'assets/scss/hallo.scss')
-rw-r--r-- | assets/scss/hallo.scss | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/assets/scss/hallo.scss b/assets/scss/hallo.scss index a9598db..ad32f21 100644 --- a/assets/scss/hallo.scss +++ b/assets/scss/hallo.scss @@ -1,3 +1,8 @@ +// Colours +$color-background: {{ .Site.Params.colors.background | default "#6fcdbd" }}; +$color-foreground: {{ .Site.Params.colors.foreground | default "#fff" }}; +$color-hover: {{ .Site.Params.colors.hover | default "#333" }}; + @import 'hallo/variables'; @import 'hallo/base'; -@import 'hallo/layout';
\ No newline at end of file +@import 'hallo/layout'; |