diff --git a/exampleSite/content/basics/generator/_index.en.md b/exampleSite/content/basics/generator/_index.en.md index bff2d4a152..a1281a818f 100644 --- a/exampleSite/content/basics/generator/_index.en.md +++ b/exampleSite/content/basics/generator/_index.en.md @@ -14,6 +14,13 @@ The arrowed lines reflect how colors are inherited thru different parts of the t To better understand this select the `neon` variant and modify the differnet heading colors. There, colors for the heading `h2`, `h3` and `h4` are explicitly set. `h5` is not set and inherits its value from `h4`. `h6` is also not set and inherits its value from `h5`. Once you are satisfied, you can download the new variants file and install it in your site. + +{{% notice note %}} +You need to define at least one `themeVariant` in your `config.toml` to modify and download the styles. + +This only works in modern browsers. +{{% /notice %}} + ## Variant generator
Graph
diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html index f4114cd027..9cc15d354c 100644 --- a/layouts/partials/stylesheet.html +++ b/layouts/partials/stylesheet.html @@ -8,8 +8,8 @@ {{- $themevariants := slice | append .Site.Params.themeVariant }} {{- with index $themevariants 0 }} - {{- end }} + {{- range .Site.Params.custom_css }} diff --git a/static/js/variant.js b/static/js/variant.js index 59d94ad525..d7b060548a 100644 --- a/static/js/variant.js +++ b/static/js/variant.js @@ -316,7 +316,7 @@ var variants = { { name: 'MAIN-BG-color', group: 'content', default: '#ffffff', tooltip: 'background color of content', }, { name: 'TAG-BG-color', group: 'content', fallback: 'MENU-HEADER-BG-color', tooltip: 'tag color', }, - { name: 'MAIN-TITLES-TEXT-color', group: 'headings', default: '#444753', tooltip: 'text color of h2-h6 titles and transparent box titles', }, + { name: 'MAIN-TITLES-TEXT-color', group: 'headings', default: '#4a4a4a', tooltip: 'text color of h2-h6 titles and transparent box titles', }, { name: 'MAIN-TITLES-H1-color', group: 'headings', fallback: 'MAIN-TEXT-color', tooltip: 'text color of h1 titles', }, { name: 'MAIN-TITLES-H2-color', group: 'headings', fallback: 'MAIN-TITLES-TEXT-color', tooltip: 'text color of h2-h6 titles', }, { name: 'MAIN-TITLES-H3-color', group: 'headings', fallback: 'MAIN-TITLES-H2-color', tooltip: 'text color of h3-h6 titles', },