From 1f40a12ac21febdf93cdd19657fcbb10240ce0b7 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 18 Jul 2021 17:54:28 +0100 Subject: [PATCH] :card_file_box: Adds new attribute 'customColors' under appConfig --- docs/configuring.md | 1 + src/utils/ConfigSchema.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/configuring.md b/docs/configuring.md index 0da72148..616e54d1 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -65,6 +65,7 @@ To disallow any changes from being written to disk via the UI config editor, set **`iconSize`** | `string` | _Optional_ | The size of link items / icons. Can be either `small`, `medium,` or `large`. Defaults to `medium`. This can also be set directly from the UI. **`theme`** | `string` | _Optional_ | The default theme for first load (you can change this later from the UI) **`cssThemes`** | `string[]` | _Optional_ | An array of custom theme names which can be used in the theme switcher dropdown +**`customColors`** | `object`| _Optional_ | Enables you to apply a custom color palette to any given theme. Use the theme name (lowercase) as the key, for an object including key-value-pairs, with the color variable name as keys, and 6-digit hex code as value. See [Theming](/docs/theming.md#modifying-theme-colors) for more info **`externalStyleSheet`** | `string` or `string[]` | _Optional_ | Either a URL to an external stylesheet or an array or URLs, which can be applied as themes within the UI **`customCss`** | `string` | _Optional_ | Raw CSS that will be applied to the page. This can also be set from the UI. Please minify it first. **`hideComponents`** | `object` | _Optional_ | A list of key page components (header, footer, search, settings, etc) that are present by default, but can be removed using this option. See [`appConfig.hideComponents`](#appconfighideComponents-optional) diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json index 98a2004b..73987ef7 100644 --- a/src/utils/ConfigSchema.json +++ b/src/utils/ConfigSchema.json @@ -166,6 +166,10 @@ "type": "string" } }, + "customColors": { + "type": "object", + "description": "Set a custom color palette for any theme" + }, "externalStyleSheet": { "description": "URL or URLs of external stylesheets to add to dropdown/ load", "type": [