Skip to content

Commit bb6e0d9

Browse files
authored
feat(theme): add Vesper Light (@SameerJS6) (monkeytypegame#7040)
### Description Adds Vesper Light and Oscura themes. Oscura by [Fey](https://github.com/narative/oscura). <!-- Please describe the change(s) made in your PR --> ### Checks - [ ] 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` - [x] 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 # <!-- 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! :) --> ## Preview ### Vesper Light #### Home Route <img width="1920" height="1440" alt="vesper-light" src="https://github.com/user-attachments/assets/f2f43ecf-ee63-4797-a8e0-781c6879551f" /> #### Settings Route <img width="1200" height="676" alt="80_1x_shots_so" src="https://github.com/user-attachments/assets/e595faa9-9731-4aef-bc0e-95f882391289" /> #### Result Route <img width="1200" height="676" alt="908_1x_shots_so" src="https://github.com/user-attachments/assets/b86a7bae-dacf-4eba-b987-0620ee533d33" /> ### Oscura #### Home Route <img width="1920" height="1440" alt="789_1x_shots_so" src="https://github.com/user-attachments/assets/80c3f950-ef60-4ef1-aa35-9cc1c436b426" /> #### Settings Route <img width="1920" height="1440" alt="194_1x_shots_so" src="https://github.com/user-attachments/assets/08bf81d9-6a6f-4edc-89f2-ed9106a465b0" /> #### Result Route <img width="1920" height="1440" alt="95_1x_shots_so" src="https://github.com/user-attachments/assets/0d1ee6a5-78e6-4c66-a5e0-b2ab422ffe4e" /> ### Toasts Theme For Vesper Light & Oscura <img width="1920" height="1440" alt="585_1x_shots_so" src="https://github.com/user-attachments/assets/b658811d-3303-4079-9e30-57d465093d04" />
1 parent 949e2ba commit bb6e0d9

File tree

4 files changed

+65
-2
lines changed

4 files changed

+65
-2
lines changed

frontend/src/ts/constants/themes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,12 @@ export const themes: Record<ThemeName, Omit<Theme, "name">> = {
11141114
subColor: "#5b578e",
11151115
textColor: "#f4e0c9",
11161116
},
1117+
vesper_light: {
1118+
bgColor: "#ffffff",
1119+
mainColor: "#fb7100",
1120+
subColor: "#067a6e",
1121+
textColor: "#000000",
1122+
},
11171123
pale_nimbus: {
11181124
bgColor: "#433e4c",
11191125
mainColor: "#94ffc2",

frontend/static/themes/vesper.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
--text-color: #ffffff;
88
--error-color: #ff8080;
99
--error-extra-color: #b25959;
10-
--colorful-error-color: #99ffe4;
11-
--colorful-error-extra-color: #99ffe4;
10+
--colorful-error-color: #ff8080;
11+
--colorful-error-extra-color: #b25959;
1212
}
1313

1414
/* Background & Text Colors */
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
:root {
2+
--bg-color: #ffffff;
3+
--main-color: #fb7100;
4+
--caret-color: #067a6e;
5+
--sub-color: #a0a0a0;
6+
--sub-alt-color: #fff8f4;
7+
--text-color: #000000;
8+
--error-color: #ed2839;
9+
--error-extra-color: #ff6c72;
10+
--colorful-error-color: #ed2839;
11+
--colorful-error-extra-color: #ff6c72;
12+
}
13+
14+
#testConfig .spacer {
15+
background: #efefef;
16+
}
17+
18+
/* Background & Text Colors */
19+
#notificationCenter .notif.bad {
20+
--notif-border-color: #ed2939;
21+
--notif-background-color: #ed2839;
22+
}
23+
24+
#notificationCenter .notif.good {
25+
--notif-border-color: #067a6e;
26+
--notif-background-color: #067a6e;
27+
}
28+
29+
#notificationCenter .notif.notice {
30+
--notif-border-color: #1e90ff;
31+
--notif-background-color: #1e90ff;
32+
}
33+
34+
/* Hover Styles */
35+
#notificationCenter .notif:hover.good {
36+
--notif-background-color: #00a693;
37+
}
38+
#notificationCenter .notif:hover.bad {
39+
--notif-background-color: #ff6c72;
40+
}
41+
#notificationCenter .notif:hover.notice {
42+
--notif-background-color: #4ec5ff;
43+
}
44+
45+
/* Content Colors */
46+
#notificationCenter .notif .message {
47+
color: var(--bg-color);
48+
}
49+
50+
#notificationCenter .notif .message .title {
51+
color: var(--bg-color);
52+
}
53+
54+
#notificationCenter .notif .icon {
55+
color: var(--bg-color);
56+
}

packages/schemas/src/themes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ export const ThemeNameSchema = z.enum(
181181
"tron_orange",
182182
"vaporwave",
183183
"vesper",
184+
"vesper_light",
184185
"viridescent",
185186
"voc",
186187
"vscode",

0 commit comments

Comments
 (0)