mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 07:16:17 +08:00
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:
parent
eaa766fc76
commit
e7afa12632
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue