Skip to content

Commit f63b966

Browse files
authored
feat(theme): add Phantom (@Cybertaco360) (monkeytypegame#6348)
### Description Added new theme "Phantom", a dark and light blue theme utilizing glowing. (Originally going to be Tokyo Night if someone wants to make one) ### Checks - [ ] Adding quotes? - [x] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [x] Adding a language or a theme? - [ ] If is a language, did you edit `_list.json`, `_groups.json` and add `languages.json`? - [x] If is a theme, did you add the theme.css? - Also please add a screenshot of the theme, it would be extra awesome if you do so! - [ ] 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.--> <!-- 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! :) --> ![image](https://github.com/user-attachments/assets/8800c232-4321-4f17-8570-52c2c7001acf) ![image](https://github.com/user-attachments/assets/31e7e98e-dddc-42b7-8bd5-9bf91cdce620) ![image](https://github.com/user-attachments/assets/5406c864-fb67-49c0-b84c-7ba4493dd811) ![image](https://github.com/user-attachments/assets/d9fbe5bd-2241-4407-85fa-7c7aed25046b)
1 parent cef3ff5 commit f63b966

File tree

2 files changed

+156
-0
lines changed

2 files changed

+156
-0
lines changed

frontend/static/themes/_list.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"subColor": "#444",
2121
"textColor": "#eee"
2222
},
23+
{
24+
"name": "phantom",
25+
"bgColor": "#1a1b26",
26+
"mainColor": "#7aa2f7",
27+
"subColor": "#414868",
28+
"textColor": "#c0caf5"
29+
},
2330
{
2431
"name": "muted",
2532
"bgColor": "#525252",

frontend/static/themes/phantom.css

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
:root {
2+
--bg-color: #001;
3+
--main-color: #7aa2f7;
4+
--caret-color: #bb9af7;
5+
--sub-color: #414868;
6+
--sub-alt-color: #24283b;
7+
--text-color: #c0caf5;
8+
--error-color: #f7768e;
9+
--error-extra-color: #db4b4b;
10+
--colorful-error-color: #ff7a93;
11+
--colorful-error-extra-color: #ff9e64;
12+
}
13+
14+
@keyframes tokyo-glow {
15+
0% {
16+
color: #c0caf5;
17+
text-shadow: 0 0 5px #7aa2f7, 0 0 10px #bb9af7;
18+
}
19+
50% {
20+
color: #c0caf5;
21+
text-shadow: 0 0 8px #7dcfff, 0 0 15px #bb9af7;
22+
}
23+
100% {
24+
color: #c0caf5;
25+
text-shadow: 0 0 5px #7aa2f7, 0 0 10px #bb9af7;
26+
}
27+
}
28+
29+
@keyframes tokyo-glow-incorrect {
30+
0% {
31+
text-shadow: 0 0 5px #f7768e, 0 0 10px #db4b4b;
32+
}
33+
50% {
34+
text-shadow: 0 0 8px #ff7a93, 0 0 15px #ff9e64;
35+
}
36+
100% {
37+
text-shadow: 0 0 5px #f7768e, 0 0 10px #db4b4b;
38+
}
39+
}
40+
41+
@keyframes tokyo-bg {
42+
0% {
43+
background: #7aa2f7;
44+
}
45+
50% {
46+
background: #bb9af7;
47+
}
48+
100% {
49+
background: #7aa2f7;
50+
}
51+
}
52+
53+
#words {
54+
--correct-letter-color: var(--text-color);
55+
--untyped-letter-color: #565f89;
56+
}
57+
58+
header:not(.focus) #logo .text {
59+
color: var(--text-color);
60+
animation: tokyo-glow 3s infinite alternate;
61+
}
62+
63+
header #logo .text .top {
64+
color: inherit;
65+
animation: none;
66+
}
67+
68+
header #logo .icon {
69+
color: var(--main-color) !important;
70+
}
71+
72+
button.text:hover,
73+
.button.text:hover,
74+
.textButton:hover {
75+
color: var(--caret-color);
76+
}
77+
78+
button.text.active,
79+
.button.text.active,
80+
.textButton.active {
81+
color: var(--main-color);
82+
}
83+
84+
button.text:hover,
85+
.textButton:hover {
86+
animation: tokyo-glow 5s linear infinite;
87+
}
88+
89+
.word .active {
90+
animation: tokyo-glow 5s linear infinite;
91+
}
92+
93+
button:hover,
94+
.button:hover,
95+
input[type="button"]:hover,
96+
input[type="reset"]:hover,
97+
input[type="submit"]:hover {
98+
color: var(--bg-color);
99+
background: var(--caret-color);
100+
}
101+
102+
.scrollToTopButton:hover {
103+
background: var(--caret-color);
104+
color: var(--bg-color);
105+
}
106+
107+
#caret,
108+
.pageSettings .section .buttons .button.active,
109+
.pageSettings .section.languages .buttons .language.active,
110+
.pageAccount .group.filterButtons .buttons .button.active {
111+
animation: tokyo-bg 3s linear infinite;
112+
}
113+
114+
#logo .bottom,
115+
header .config .group .buttons .textButton.active,
116+
#result .stats .group .bottom,
117+
nav .textButton:hover,
118+
nav button.text:hover,
119+
header .config .group .buttons .textButton:hover,
120+
a:not(.button):hover {
121+
animation: tokyo-glow 3s linear infinite;
122+
}
123+
124+
.textButton.active {
125+
animation: tokyo-glow 3s linear infinite;
126+
}
127+
.afk,
128+
.timeToday,
129+
#words .word letter.correct,
130+
#words .word.typed letter.correct,
131+
#words.highlight-word .word.typed letter,
132+
#words.highlight-next-word .word.typed letter,
133+
#words.highlight-next-two-words .word.typed letter,
134+
#words.highlight-next-three-words .word.typed letter {
135+
animation: tokyo-glow 5s linear infinite;
136+
}
137+
138+
#words.flipped .word.typed letter {
139+
animation: none;
140+
}
141+
142+
.incorrect {
143+
animation: tokyo-glow-incorrect 5s linear infinite;
144+
}
145+
146+
#words.highlight-off .word letter,
147+
#words.highlight-off .word.typed letter {
148+
animation: tokyo-glow 5s linear infinite;
149+
}

0 commit comments

Comments
 (0)