Skip to content

Commit 8a54bfc

Browse files
authored
Added new themes (#143)
1 parent 8c7e4e7 commit 8a54bfc

2 files changed

Lines changed: 167 additions & 1 deletion

File tree

index.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,58 @@ <h3>Steps</h3>
174174
/>
175175
<label for="crimson-theme"></label>
176176
</div>
177+
178+
<div>
179+
<input
180+
type="radio"
181+
id="dirt-theme"
182+
name="theme-choice"
183+
value="dirt-theme"
184+
/>
185+
<label for="dirt-theme"></label>
186+
</div>
187+
188+
<div>
189+
<input
190+
type="radio"
191+
id="enderman-theme"
192+
name="theme-choice"
193+
value="enderman-theme"
194+
/>
195+
<label for="enderman-theme"></label>
196+
</div>
197+
198+
<div>
199+
<input
200+
type="radio"
201+
id="prismarine-theme"
202+
name="theme-choice"
203+
value="prismarine-theme"
204+
/>
205+
<label for="prismarine-theme"></label>
206+
</div>
207+
208+
<div>
209+
<input
210+
type="radio"
211+
id="bronze-theme"
212+
name="theme-choice"
213+
value="bronze-theme"
214+
/>
215+
<label for="bronze-theme"></label>
216+
</div>
217+
<div>
218+
<input
219+
type="radio"
220+
id="sand-theme"
221+
name="theme-choice"
222+
value="sand-theme"
223+
/>
224+
<label for="sand-theme"></label>
225+
</div>
177226
</form>
178227
</div>
228+
179229
<p>Built by Cal Henderson. <a href="https://github.com/iamcal/enchant-order">Source on Github</a></p>
180230
</div>
181231

style.css

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ body {
1818
#theme-switcher-form div:nth-child(4) label {
1919
background-color: #813151;
2020
}
21+
#theme-switcher-form div:nth-child(5) label {
22+
background-color: #795548;
23+
}
24+
#theme-switcher-form div:nth-child(6) label {
25+
background-color: #673ab7;
26+
}
27+
#theme-switcher-form div:nth-child(7) label {
28+
background-color: #5ab1a8;
29+
}
30+
#theme-switcher-form div:nth-child(8) label {
31+
background-color: #ff6b6b;
32+
}
33+
#theme-switcher-form div:nth-child(9) label {
34+
background-color: #fff9e6;
35+
}
2136
/* Remember these for every theme ;) */
2237

2338
html[data-theme="light"] {
@@ -100,6 +115,106 @@ html[data-theme="wither"] {
100115
--solution: var(--enchantment-results);
101116
}
102117

118+
html[data-theme="dirt"] {
119+
--bg-primary: #1a1a1a;
120+
--bg-secondary: #2d2d2d;
121+
--fg-primary: #f0f0f0;
122+
--fg-secondary: #c8c8c8;
123+
--link-primary: #8d6e63;
124+
--link-hover: #6d4c41;
125+
--table-text: #f0f0f0;
126+
--table-group1: #4a3a3a;
127+
--table-group2: #3a2d2d;
128+
--echlevel-color: var(--table-text);
129+
--echlevel-bg: var(--table-group1);
130+
--echlevel-shadow: var(--table-group2);
131+
--enchantment-results: #795548;
132+
--progress-color: #607d8b;
133+
--error: #d32f2f;
134+
--phone-warn: #ffa000;
135+
--solution: var(--enchantment-results);
136+
}
137+
138+
html[data-theme="enderman"] {
139+
--bg-primary: #0f0a1a;
140+
--bg-secondary: #1a142a;
141+
--fg-primary: #e0d8f0;
142+
--fg-secondary: #b8b0d8;
143+
--link-primary: #9c27b0;
144+
--link-hover: #7b1fa2;
145+
--table-text: #e0d8f0;
146+
--table-group1: #3a2d4a;
147+
--table-group2: #2a1d3a;
148+
--echlevel-color: var(--table-text);
149+
--echlevel-bg: var(--table-group1);
150+
--echlevel-shadow: var(--table-group2);
151+
--enchantment-results: #673ab7;
152+
--progress-color: #3f51b5;
153+
--error: #e91e63;
154+
--phone-warn: #ffc107;
155+
--solution: var(--enchantment-results);
156+
}
157+
158+
html[data-theme="prismarine"] {
159+
--bg-primary: #0a192f;
160+
--bg-secondary: #112240;
161+
--fg-primary: #e6f1ff;
162+
--fg-secondary: #a8b2d1;
163+
--link-primary: #00a8e8;
164+
--link-hover: #0683b4;
165+
--table-text: #e6f1ff;
166+
--table-group1: #1b3a5e;
167+
--table-group2: #132d4a;
168+
--echlevel-color: var(--table-text);
169+
--echlevel-bg: var(--table-group1);
170+
--echlevel-shadow: var(--table-group2);
171+
--enchantment-results: #5ab1a8;
172+
--progress-color: #f8961e;
173+
--error: #e63946;
174+
--phone-warn: #ffd166;
175+
--solution: var(--enchantment-results);
176+
}
177+
178+
html[data-theme="bronze"] {
179+
--bg-primary: #2b1a1a;
180+
--bg-secondary: #4a2d2d;
181+
--fg-primary: #fff0e6;
182+
--fg-secondary: #e6c8b0;
183+
--link-primary: #ff7e5f;
184+
--link-hover: #e66a4d;
185+
--table-text: #fff0e6;
186+
--table-group1: #6a3d3d;
187+
--table-group2: #5a3030;
188+
--echlevel-color: var(--table-text);
189+
--echlevel-bg: var(--table-group1);
190+
--echlevel-shadow: var(--table-group2);
191+
--enchantment-results: #e25c5c;
192+
--progress-color: #f8961e;
193+
--error: #e74c3c;
194+
--phone-warn: #f39c12;
195+
--solution: var(--enchantment-results);
196+
}
197+
198+
html[data-theme="sand"] {
199+
--bg-primary: #fffcf3;
200+
--bg-secondary: #f8f1e4;
201+
--fg-primary: #3a2d2a;
202+
--fg-secondary: #6b5a56;
203+
--link-primary: #3597e7;
204+
--link-hover: #226ba7;
205+
--table-text: #3a2d2a;
206+
--table-group1: #e1ebf3;
207+
--table-group2: #d2dee7;
208+
--echlevel-color: #ac9531;
209+
--echlevel-bg: white;
210+
--echlevel-shadow: #d9b3b3;
211+
--enchantment-results: #e4faff;
212+
--progress-color: #fff3cd;
213+
--error: #f8d7da;
214+
--phone-warn: #fff9db;
215+
--solution: #cff4fc;
216+
}
217+
103218
/* TODO: fix enchantment results variable name, misnomer */
104219

105220
.selectItem:focus, .selectLanguage:focus {
@@ -336,14 +451,15 @@ summary {
336451
display: flex;
337452
justify-content: space-between;
338453
align-items: center;
339-
width: 120px; /* Adjust the width as needed */
454+
width: min-content; /* Adjust the width as needed */
340455
margin: auto; /* Center form */
341456
}
342457

343458
#theme-switcher-form div {
344459
display: flex;
345460
flex-direction: column;
346461
align-items: center;
462+
margin: 0 0.2rem;
347463
}
348464

349465
#theme-switcher-form input[type="radio"] {

0 commit comments

Comments
 (0)