Skip to content

Commit 67b3e40

Browse files
dark theme support (#26, #28)
--------- Co-authored-by: Léo Cazenave <[email protected]>
1 parent 0e9f391 commit 67b3e40

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/style.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,35 @@ const themes = `
293293
rect, path { stroke: #777; fill: #444; }
294294
.specialKey, .specialKey rect, .specialKey path { fill: #333; }
295295
g:target rect, .press rect, g:target path, .press path { fill: #558; }
296-
text { fill: #999; }
296+
text { fill: #bbb; }
297297
.level3, .level4 { fill: #99f; }
298298
.level5, .level6 { fill: #6d6; }
299299
.deadKey { fill: #f44; }
300+
301+
[theme="reach"] .pinkyKey rect { fill: hsl( 0, 20%, 30%); }
302+
[theme="reach"] .numberKey rect { fill: hsl( 35, 25%, 30%); }
303+
[theme="reach"] .letterKey rect { fill: hsl( 61, 30%, 30%); }
304+
[theme="reach"] .homeKey rect { fill: hsl(136, 30%, 30%); }
305+
[theme="reach"] .press rect { fill: #449; }
306+
307+
[theme="hints"] [finger="m1"] rect { fill: hsl( 0, 25%, 30%); }
308+
[theme="hints"] [finger="l2"] rect { fill: hsl( 31, 30%, 30%); }
309+
[theme="hints"] [finger="r2"] rect { fill: hsl( 61, 30%, 30%); }
310+
[theme="hints"] [finger="l3"] rect,
311+
[theme="hints"] [finger="r3"] rect { fill: hsl(136, 30%, 30%); }
312+
[theme="hints"] [finger="l4"] rect,
313+
[theme="hints"] [finger="r4"] rect { fill: hsl(200, 30%, 30%); }
314+
[theme="hints"] [finger="l5"] rect,
315+
[theme="hints"] [finger="r5"] rect { fill: hsl(230, 30%, 30%); }
316+
[theme="hints"] .specialKey rect,
317+
[theme="hints"] .specialKey path { fill: #333; }
318+
[theme="hints"] .hint rect { fill: #a33; }
319+
[theme="hints"] .press rect { fill: #335; }
320+
[theme="hints"] .press text { fill: #fff; }
321+
[theme="hints"] .hint text {
322+
font-weight: bold;
323+
fill: white;
324+
}
300325
}
301326
`;
302327

0 commit comments

Comments
 (0)