Skip to content

Commit 91d64dc

Browse files
asifMalik78Asif Malikfehmer
authored
feat(theme): add spiderman theme (@asifMalik78) (monkeytypegame#7240)
### Description <!-- Please describe the change(s) made in your PR --> ### Checks - [ ] Adding/modifying Typescript code? - [ ] I have used `qs`,`qsa` or `qsr` instead of JQuery selectors. - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language? - Make sure to follow the [languages documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md) - [ ] Add language to `packages/schemas/src/languages.ts` - [ ] Add language to exactly one group in `frontend/src/ts/constants/languages.ts` - [ ] Add language json file to `frontend/static/languages` - [x] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - [x] Add theme to `packages/schemas/src/themes.ts` - [x] Add theme to `frontend/src/ts/constants/themes.ts` - [x] Add theme css file to `frontend/static/themes` - [x] Add some screenshot 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) - [ ] Add layout to `packages/schemas/src/layouts.ts` - [ ] Add layout json file to `frontend/static/layouts` - [ ] Adding a font? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/FONTS.md) - [ ] Add font file to `frontend/static/webfonts` - [ ] Add font to `packages/schemas/src/fonts.ts` - [ ] Add font to `frontend/src/ts/constants/fonts.ts` - [ ] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. <!-- label(optional scope): pull request title (@your_github_username) --> <!-- I know I know they seem boring but please do them, they help us and you will find out it also helps you.--> Closes # Theme Screenshots : <img width="1484" height="766" alt="2025-12-14_23-51-42" src="https://github.com/user-attachments/assets/94d9d9dd-37b9-42f0-8930-b75aeb35c913" /> <img width="1484" height="766" alt="2025-12-14_23-53-11" src="https://github.com/user-attachments/assets/995532d3-b6dc-4f19-b9a1-4b8704d8330b" /> <!-- the issue(s) your PR resolves if any (delete if that is not the case) --> <!-- please also reference any issues and or PRs related to your pull request --> <!-- Also remove it if you are not following any issues. --> <!-- pro tip: you can mention an issue, PR, or discussion on GitHub by referencing its hash number e.g: [monkeytypegame#1234](monkeytypegame#1234) --> <!-- pro tip: you can press . (dot or period) in the code tab of any GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) --> Co-authored-by: Asif Malik <[email protected]> Co-authored-by: Christian Fehmer <[email protected]>
1 parent 4893e44 commit 91d64dc

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

frontend/src/ts/constants/themes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,12 @@ export const themes: Record<ThemeName, Omit<Theme, "name">> = {
11261126
subColor: "#ffaca3",
11271127
textColor: "#feffdb",
11281128
},
1129+
spiderman: {
1130+
bgColor: "#0d1219",
1131+
mainColor: "#e23636",
1132+
subColor: "#0476f2",
1133+
textColor: "#f0f0f0",
1134+
},
11291135
};
11301136

11311137
export const ThemesList: Theme[] = Object.keys(themes)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:root {
2+
--bg-color: #0d1219;
3+
--main-color: #e23636;
4+
--caret-color: #e23636;
5+
--sub-color: #0476f2;
6+
--sub-alt-color: #0b1c2e;
7+
--text-color: #f0f0f0;
8+
--error-color: #0476f2;
9+
--error-extra-color: #0353a8;
10+
--colorful-error-color: #0476f2;
11+
--colorful-error-extra-color: #0353a8;
12+
}

packages/schemas/src/themes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export const ThemeNameSchema = z.enum(
189189
"wavez",
190190
"witch_girl",
191191
"pale_nimbus",
192+
"spiderman",
192193
],
193194
{
194195
errorMap: customEnumErrorHandler("Must be a known theme"),

0 commit comments

Comments
 (0)