diff --git a/assets/css/theme-blue.css b/assets/css/theme-blue.css index c71ed55918..0bfdc7c632 100644 --- a/assets/css/theme-blue.css +++ b/assets/css/theme-blue.css @@ -1,4 +1,5 @@ :root { + /* blue */ --MAIN-TEXT-color: rgba(50, 50, 50, 1); /* Color of text by default */ --MAIN-TITLES-TEXT-color: rgba(94, 94, 94, 1); /* Color of titles h2-h3-h4-h5-h6 */ --MAIN-TITLES-H1-TEXT-color: rgba(34, 34, 34, 1); /* text color of h1 titles */ diff --git a/assets/css/theme-green.css b/assets/css/theme-green.css index 6f91b796a3..9763d64419 100644 --- a/assets/css/theme-green.css +++ b/assets/css/theme-green.css @@ -1,4 +1,5 @@ :root { + /* green */ --MAIN-TEXT-color: rgba(50, 50, 50, 1); /* Color of text by default */ --MAIN-TITLES-TEXT-color: rgba(94, 94, 94, 1); /* Color of titles h2-h3-h4-h5-h6 */ --MAIN-TITLES-H1-TEXT-color: rgba(34, 34, 34, 1); /* text color of h1 titles */ diff --git a/assets/css/theme-learn.css b/assets/css/theme-learn.css index ace689bdb7..892220953b 100644 --- a/assets/css/theme-learn.css +++ b/assets/css/theme-learn.css @@ -1,4 +1,5 @@ :root { + /* learn */ --MAIN-TEXT-color: rgba(50, 50, 50, 1); /* Color of text by default */ --MAIN-TITLES-TEXT-color: rgba(94, 94, 94, 1); /* Color of titles h2-h3-h4-h5-h6 */ --MAIN-TITLES-H1-TEXT-color: rgba(34, 34, 34, 1); /* text color of h1 titles */ diff --git a/assets/css/theme-neon.css b/assets/css/theme-neon.css index 1b175b2d3e..1593df9629 100644 --- a/assets/css/theme-neon.css +++ b/assets/css/theme-neon.css @@ -1,4 +1,5 @@ :root { + /* neon */ --PRIMARY-color: rgba(243, 0, 178, 1); /* brand primary color */ --SECONDARY-color: rgb(50, 189, 243, 1); /* brand secondary color */ --ACCENT-color: rgba(255, 255, 0, 1); /* brand accent color, used for search highlights */ diff --git a/assets/css/theme-red.css b/assets/css/theme-red.css index 05256cff1b..abb4734a64 100644 --- a/assets/css/theme-red.css +++ b/assets/css/theme-red.css @@ -1,4 +1,5 @@ :root { + /* red */ --MAIN-TEXT-color: rgba(50, 50, 50, 1); /* Color of text by default */ --MAIN-TITLES-TEXT-color: rgba(94, 94, 94, 1); /* Color of titles h2-h3-h4-h5-h6 */ --MAIN-TITLES-H1-TEXT-color: rgba(34, 34, 34, 1); /* text color of h1 titles */ diff --git a/assets/css/theme-relearn-bright.css b/assets/css/theme-relearn-bright.css index 2e7b33314c..4447bd50c5 100644 --- a/assets/css/theme-relearn-bright.css +++ b/assets/css/theme-relearn-bright.css @@ -1,4 +1,5 @@ :root { + /* relearn-bright */ --PRIMARY-color: rgba(131, 201, 50, 1); /* brand primary color */ --SECONDARY-color: rgba(99, 128, 208, 1); /* brand secondary color */ --ACCENT-color: rgb(255, 102, 78, 1); /* brand accent color, used for search highlights */ diff --git a/assets/css/theme-relearn-dark.css b/assets/css/theme-relearn-dark.css index 847d8f6fcc..ade832fbd4 100644 --- a/assets/css/theme-relearn-dark.css +++ b/assets/css/theme-relearn-dark.css @@ -1,4 +1,5 @@ :root { + /* relearn-dark */ --PRIMARY-color: rgba(125, 201, 3, 1); /* brand primary color */ --SECONDARY-color: rgba(108, 140, 227, 1); /* brand secondary color */ --ACCENT-color: rgb(255, 102, 78, 1); /* brand accent color, used for search highlights */ diff --git a/assets/css/theme-relearn-light.css b/assets/css/theme-relearn-light.css index 01f7181fab..4b83eddef2 100644 --- a/assets/css/theme-relearn-light.css +++ b/assets/css/theme-relearn-light.css @@ -1,4 +1,5 @@ :root { + /* relearn-light */ --PRIMARY-color: rgba(125, 201, 3, 1); /* brand primary color */ --SECONDARY-color: rgba(72, 106, 201, 1); /* brand secondary color */ --ACCENT-color: rgb(255, 102, 78); /* brand accent color, used for search highlights */ diff --git a/assets/css/theme-zen-dark.css b/assets/css/theme-zen-dark.css index 655775e4de..a597cb80eb 100644 --- a/assets/css/theme-zen-dark.css +++ b/assets/css/theme-zen-dark.css @@ -1,4 +1,5 @@ :root { + /* zen-dark */ --PRIMARY-color: rgba(47, 129, 235, 1); /* brand primary color */ --SECONDARY-color: rgba(47, 129, 235, 1); /* brand secondary color */ diff --git a/assets/css/theme-zen-light.css b/assets/css/theme-zen-light.css index e1e510ddfb..d4556fe4ac 100644 --- a/assets/css/theme-zen-light.css +++ b/assets/css/theme-zen-light.css @@ -1,4 +1,5 @@ :root { + /* zen-light */ --PRIMARY-color: rgba(26, 115, 232, 1); /* brand primary color */ --SECONDARY-color: rgba(26, 115, 232, 1); /* brand secondary color */ diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 0888baf13d..460c74a550 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -246,3 +246,10 @@ summaryLength = 10 siteparam.test.text = 'A **nested** option with formatting' # Extension to the image effects only for the docs. imageEffects.bg-white = true + # This is for support of the variantgenerator in the exampleSite, you don't need this! + variantgenerator.force = true + +[params.relearn.dependencies] + # This is for support of the variantgenerator in the exampleSite, you don't need this! + [params.relearn.dependencies.variantgenerator] + name = 'VariantGenerator' diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 0fa5ae442a..58e14fd163 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -80,7 +80,7 @@ themeVariant = [ # If set to `true`, further theme asset files besides the generated HTML files # will be minified during build. If no value is set, the theme will avoid # minification if you have started with `hugo server` and otherwise will minify. -minify = true +minify = "" #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # General diff --git a/exampleSite/content/configuration/branding/generator/_index.en.md b/exampleSite/content/configuration/branding/generator/_index.en.md index b878a92a9d..134be600fc 100644 --- a/exampleSite/content/configuration/branding/generator/_index.en.md +++ b/exampleSite/content/configuration/branding/generator/_index.en.md @@ -1,7 +1,6 @@ +++ categories = ["tutorial"] description = "An interactive tool to generate color variant stylesheets" -mermaid.force = true options = ["themeVariant"] title = "Stylesheet Generator" weight = 4 @@ -27,14 +26,4 @@ Once you are satisfied, you can download the new variants file and copy it into See the docs for [further configuration options](configuration/branding/colors). {{% /expand %}} -{{% button style="secondary" icon="download" href="javascript:window.variants&&variants.getStylesheet();this.blur();" %}}Download variant{{% /button %}} -{{% button style="warning" icon="trash" href="javascript:window.variants&&variants.resetVariant();this.blur();" %}}Reset variant{{% /button %}} - -
CODE-theme
parameter can be changed in the generator but the change will not be reflected dynamically in the page preview."
+)}}
+{{ partial "shortcodes/button.html" (dict
+ "page" .Page
+ "href" "javascript:window.variants&&variants.getStylesheet();this.blur();"
+ "style" "secondary"
+ "icon" "download"
+ "content" "Download variant"
+)}}
+{{ partial "shortcodes/button.html" (dict
+ "page" .Page
+ "href" "javascript:window.variants&&variants.resetVariant();this.blur();"
+ "style" "warning"
+ "icon" "trash"
+ "content" "Reset variant"
+)}}
+