docs: update example code (#5633)

Added the part at the end about adding the thing to _list.json. Pretty much made it, so people will know what to actually add when you do themes. I don't know if this change will matter.
This commit is contained in:
StickminBruv 2024-07-24 04:58:59 -04:00 committed by GitHub
parent eaa766fc76
commit e7afa12632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,11 +39,13 @@ Here is an image showing what all the properties correspond to:
Change the corresponding hex codes to create your theme. Then, go to `./frontend/static/themes/_list.json` and add the following code to the very end of the file (inside the square brackets):
```
,{
{
"name": "theme_name",
"bgColor": "#ffffff",
"mainColor": "#ffffff"
}
"mainColor": "#ffffff",
"subColor": "#ffffff",
"textColor": "#ffffff"
},
```
Make sure the name you put matches the name of the file you created (without the `.css` file extension). Add the text color and background color of your theme to their respective fields.