Add new brand color option to documentation

This commit is contained in:
Sean King 2020-06-03 22:42:21 +00:00
parent ae476b5340
commit e1521e60de
1 changed files with 7 additions and 4 deletions

View File

@ -23,19 +23,22 @@ Instance description is edited during the Pleroma installation step or via admin
## Captcha on Registration Page ## Captcha on Registration Page
Use of the Captcha feature on the registration page is configured during the Pleroma installation step or via admin configuration Use of the Captcha feature on the registration page is configured during the Pleroma installation step or via admin configuration
## Site Logo and Promo Panel List Items ## Site Logo, Brand Color, and Promo Panel List Items
The site logo and promo panel list items are customized by copying `soapbox.example.json` in the `static/instance` folder to `soapbox.json`. The site logo, brand color, and promo panel list items are customized by copying `soapbox.example.json` in the `static/instance` folder to `soapbox.json`.
The site logo, in SVG format, is rendered to be able to allow the site theme colors to appear in the less than 100% opaque sections of the logo. The site logo, in SVG format, is rendered to be able to allow the site theme colors to appear in the less than 100% opaque sections of the logo.
The logo colors are rendered in a color that provides contrast for the site theme. The logo colors are rendered in a color that provides contrast for the site theme.
The `navlinks` section of the `soapbox.json` file references the links that are displayed at the bottom of the Registration/Login, About, Terms of Service, Privacy Policy and Copyright Policy (DMCA) pages. The `navlinks` section of the `soapbox.json` file references the links that are displayed at the bottom of the Registration/Login, About, Terms of Service, Privacy Policy and Copyright Policy (DMCA) pages.
The `brandColor` in `soapbox.json` refers to the main color upon which the look of soapbox-fe is defined.
After editing your HTML files and folder names, re-create the webpack and restart the soapbox-fe service to effect the changes. After editing your HTML files and folder names, re-create the webpack and restart the soapbox-fe service to effect the changes.
Following is an example of the contents of `soapbox.example.json`: Following is an example of the contents of `soapbox.example.json`:
``` ```
{ {
"logo": "https://media.gleasonator.com/site_uploads/files/000/000/002/original/logo.svg", "logo": ""/instance/images/soapbox-logo.svg",
"brandColor": "#0482d8",
"promoPanel": { "promoPanel": {
"items": [{ "items": [{
"icon": "area-chart", "icon": "area-chart",
@ -52,7 +55,7 @@ Following is an example of the contents of `soapbox.example.json`:
}, },
"defaultSettings": { "defaultSettings": {
"autoPlayGif": false, "autoPlayGif": false,
"theme": "azure" "theme": "light"
}, },
"copyright": "?2020. Copying is an act of love. Please copy and share.", "copyright": "?2020. Copying is an act of love. Please copy and share.",
"navlinks": { "navlinks": {