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 = {