From 37ededc115e9524bc252cb703b8be9133c13a0fc Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Wed, 15 Apr 2026 21:24:34 +0300 Subject: [PATCH 1/2] docs(themes): update themes documentation (@Leonabcd123) --- docs/CONTRIBUTING.md | 2 +- docs/THEMES.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index d040161513aa..e75dd56d1445 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -58,7 +58,7 @@ Before submitting a theme make sure... - your theme is unique and isn't visually similar to any we already have. - the text color is either black or white (or very close to these colors) -- your theme has been added to the `_list` file and the `textColor` property is the theme's main color +- 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 - your theme is clear and readable with both `flip test colors` and `colorful mode` enabled and disabled If you want to contribute themes but don't know how, check [THEMES.md](/docs/THEMES.md) diff --git a/docs/THEMES.md b/docs/THEMES.md index b80eebc684c7..c44d2662dcfc 100644 --- a/docs/THEMES.md +++ b/docs/THEMES.md @@ -15,7 +15,7 @@ First you will have to make a personal copy of the Monkeytype repository, also k Pick a name for your theme. It must be all lowercase, with spaces replaced by underscores. -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. +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. ```typescript export const ThemeNameSchema = z.enum([ @@ -26,7 +26,7 @@ export const ThemeNameSchema = z.enum([ ]); ``` -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: +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: ```typescript export const themes: Record = { From 05cd827eafccb5c24df53d6149cc85c9e5f62837 Mon Sep 17 00:00:00 2001 From: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Date: Thu, 16 Apr 2026 16:05:08 +0300 Subject: [PATCH 2/2] PR template --- .github/pull_request_template.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 93d877e844d2..8dc59503a875 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -24,9 +24,9 @@ - [ ] Add language json file to `frontend/static/languages` - [ ] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - - [ ] Add theme to `packages/schemas/src/themes.ts` - - [ ] Add theme to `frontend/src/ts/constants/themes.ts` - - [ ] (optional) Add theme css file to `frontend/static/themes` + - [ ] Add theme to [packages/schemas/src/themes.ts](/packages/schemas/src/themes.ts) + - [ ] Add theme to [frontend/src/ts/constants/themes.ts](/frontend/src/ts/constants/themes.ts) + - [ ] (optional) Add theme css file to [frontend/static/themes](/frontend/static/themes) - [ ] Add some screenshots of the theme, especially with different test settings (colorful, flip colors) to your pull request - [ ] Adding a layout? - [ ] Make sure to follow the [layouts documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md)