Skip to content

Commit 37ededc

Browse files
committed
docs(themes): update themes documentation (@Leonabcd123)
1 parent 5f43b94 commit 37ededc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Before submitting a theme make sure...
5858

5959
- your theme is unique and isn't visually similar to any we already have.
6060
- the text color is either black or white (or very close to these colors)
61-
- your theme has been added to the `_list` file and the `textColor` property is the theme's main color
61+
- your theme has been added to the [packages/schemas/src/themes.ts](/packages/schemas/src/themes.ts) and [frontend/src/ts/constants/themes.ts](/frontend/src/ts/constants/themes.ts) files and the `textColor` property is the theme's main color
6262
- your theme is clear and readable with both `flip test colors` and `colorful mode` enabled and disabled
6363

6464
If you want to contribute themes but don't know how, check [THEMES.md](/docs/THEMES.md)

docs/THEMES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ First you will have to make a personal copy of the Monkeytype repository, also k
1515

1616
Pick a name for your theme. It must be all lowercase, with spaces replaced by underscores.
1717

18-
Go to `./packages/schemas/src/themes.ts` and add your new theme name to the __end__ of the `ThemeNameSchema` enum. Make sure to end the line with a comma.
18+
Go to [packages/schemas/src/themes.ts](/packages/schemas/src/themes.ts) and add your new theme name to the __end__ of the `ThemeNameSchema` enum. Make sure to end the line with a comma.
1919

2020
```typescript
2121
export const ThemeNameSchema = z.enum([
@@ -26,7 +26,7 @@ export const ThemeNameSchema = z.enum([
2626
]);
2727
```
2828

29-
Then, go to `./frontend/src/ts/constants/themes.ts` and add the following code to the __end__ of the `themes` object near to the very end of the file:
29+
Then, go to [frontend/src/ts/constants/themes.ts](/frontend/src/ts/constants/themes.ts) and add the following code to the __end__ of the `themes` object near to the very end of the file:
3030

3131
```typescript
3232
export const themes: Record<ThemeName, Theme> = {

0 commit comments

Comments
 (0)