Skip to content

Commit

Permalink
dark theme support (#26, #28)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Léo Cazenave <[email protected]>
  • Loading branch information
fabi1cazenave and Nuclear-Squid authored Jan 3, 2024
1 parent 0e9f391 commit 67b3e40
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,35 @@ const themes = `
rect, path { stroke: #777; fill: #444; }
.specialKey, .specialKey rect, .specialKey path { fill: #333; }
g:target rect, .press rect, g:target path, .press path { fill: #558; }
text { fill: #999; }
text { fill: #bbb; }
.level3, .level4 { fill: #99f; }
.level5, .level6 { fill: #6d6; }
.deadKey { fill: #f44; }
[theme="reach"] .pinkyKey rect { fill: hsl( 0, 20%, 30%); }
[theme="reach"] .numberKey rect { fill: hsl( 35, 25%, 30%); }
[theme="reach"] .letterKey rect { fill: hsl( 61, 30%, 30%); }
[theme="reach"] .homeKey rect { fill: hsl(136, 30%, 30%); }
[theme="reach"] .press rect { fill: #449; }
[theme="hints"] [finger="m1"] rect { fill: hsl( 0, 25%, 30%); }
[theme="hints"] [finger="l2"] rect { fill: hsl( 31, 30%, 30%); }
[theme="hints"] [finger="r2"] rect { fill: hsl( 61, 30%, 30%); }
[theme="hints"] [finger="l3"] rect,
[theme="hints"] [finger="r3"] rect { fill: hsl(136, 30%, 30%); }
[theme="hints"] [finger="l4"] rect,
[theme="hints"] [finger="r4"] rect { fill: hsl(200, 30%, 30%); }
[theme="hints"] [finger="l5"] rect,
[theme="hints"] [finger="r5"] rect { fill: hsl(230, 30%, 30%); }
[theme="hints"] .specialKey rect,
[theme="hints"] .specialKey path { fill: #333; }
[theme="hints"] .hint rect { fill: #a33; }
[theme="hints"] .press rect { fill: #335; }
[theme="hints"] .press text { fill: #fff; }
[theme="hints"] .hint text {
font-weight: bold;
fill: white;
}
}
`;

Expand Down

0 comments on commit 67b3e40

Please sign in to comment.