-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e15b32
commit 9b7f255
Showing
13 changed files
with
281 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- | ||
sidebar_position: 1.2 | ||
--- | ||
|
||
# 🎨 White-Labelling | ||
|
||
When self-hosting your own instance of Retrospected, you have the possibility of customising the colours and the logo so they are more in line with your company's branding. | ||
|
||
:::info This is optional | ||
White-Labelling, or customising colours and logo, is entirely optional. You can skip this section if you don't need it. | ||
::: | ||
|
||
As an example, we can easily re-brand Retrospected to fit with the British Red Cross colours: | ||
|
||
![An example of White-Labelling](/img/self-hosting/white-labelling-example-2.png) | ||
|
||
## What can I configure | ||
|
||
You have the ability to change 4 details: | ||
|
||
- The Primary colour (this is the colour of most components, purple by default) | ||
- The Secondary colour (this is the colour of some secondary components, like buttons, pink by default) | ||
- The Header colour (by default, it takes the primary colour, but you can choose something else) | ||
- The Logo | ||
|
||
## How can I configure it | ||
|
||
All the following are to be set in the `docker-compose.yml` file, in the `frontend` section. | ||
|
||
Alternatively, you can set this up using the docker-compose editor [here](quick-start). | ||
|
||
### Configure the Primary and Secondary colours | ||
|
||
Both the Primary and the Secondary colours are actually a palette of 14 colours. | ||
|
||
You can see examples of this here: [https://materialui.co/colors/](https://materialui.co/colors/). | ||
|
||
You must choose 14 colours, that are each a variation of each other, from very light to very dark. | ||
|
||
This is an example with a red-ish colour, as seen in the Red Cross example above: | ||
|
||
You will notice that the list of 14 colours is a list of 14 HEX RGB colours, separated by commas. | ||
|
||
```yaml | ||
FRONTEND_PRIMARY_COLOR: '#ffebee,#ffcdd2,#ef9a9a,#e57373,#ef5350,#f44336,#e53935,#d32f2f,#c62828,#b71c1c,#ff8a80,#ff5252,#ff1744,#d50000' | ||
``` | ||
Do the same for the secondary colour, with 14 other colours. | ||
Example: | ||
```yaml | ||
FRONTEND_SECONDARY_COLOR: '#e8f5e9,#c8e6c9,#a5d6a7,#81c784,#66bb6a,#4caf50,#43a047,#388e3c,#2e7d32,#1b5e20,#b9f6ca,#69f0ae,#00e676,#00c853' | ||
``` | ||
### Configure the Header colours | ||
The header colour is simpler: it is just two colours, to be defined this way: | ||
```yaml | ||
FRONTEND_HEADER_PRIMARY_COLOR: '#FFFFFF' | ||
FRONTEND_HEADER_SECONDARY_COLOR: '#000000' | ||
``` | ||
### Configure the Logo | ||
The logo can either be a URL (the URL needs to be accessible from your app), or in the [Image URI format](https://en.wikipedia.org/wiki/Data_URI_scheme) (recommanded). | ||
In order to get an Image URI, you can use the following service: [https://ezgif.com/image-to-datauri](https://ezgif.com/image-to-datauri). | ||
You'll be able to transform any JPEG, PNG or SVG image into this text format, and then set it that way: | ||
```yaml | ||
FRONTEND_LOGO: 'data:image/svg+xml;base64,PD94bWwgdmVyc[...]+Cg==' | ||
``` | ||
Alternatively, you can set the logo as a URL: | ||
```yaml | ||
FRONTEND_LOGO: 'https://dorkingtownpartnership.co.uk/wp-content/uploads/2021/10/British-Red-Cross.jpeg' | ||
``` | ||
:::info Syntax | ||
Please ensure your value starts with **data:image** and ends with **==**. | ||
The value can be quite long if the image is big. | ||
::: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.