From 043bd49191d561b62636ca418b110ab15d1ff1a9 Mon Sep 17 00:00:00 2001 From: bb1950328 <bb1950328@gmail.com> Date: Sat, 30 Jan 2021 12:47:47 +0000 Subject: [PATCH] describe how to change the theme color (from #31) and document metaThemeColor param --- exampleSite/content/docs/compose/customize.md | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/exampleSite/content/docs/compose/customize.md b/exampleSite/content/docs/compose/customize.md index 0aecd61..9fdb153 100644 --- a/exampleSite/content/docs/compose/customize.md +++ b/exampleSite/content/docs/compose/customize.md @@ -39,3 +39,14 @@ Under `params` add `enableDarkMode = false` to your `config.toml` file. If your site is based on the exampleSite, the value is already included; you only need to uncomment it. > The user will still have the option to activate dark mode, if they so wish through the UI + +### How do I change the theme color? +If the theme is a git submodule, you can copy the file `assets/sass/_variables.sass` from the theme into your own site. +The location must be exactly the same as in the theme, so put it in `YourFancySite/assets/sass/`. +You can then edit the file to customize the theme color in your site without having to modify the theme itself. + +### How can I change the address bar color on mobile devices? +Just put the following line in the `[params]` section in your `config.toml` file (and of course change the color): +````toml +metaThemeColor = "#123456" +```` \ No newline at end of file -- Gitblit v1.10.0