Skip to content

Commit 97ae464

Browse files
committed
Color scheme
1 parent 966f066 commit 97ae464

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

public/stylesheets/style.less

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,25 @@
1-
:root {
2-
--background-color: #f6f6f6;
3-
--card-background: #ffffff;
4-
--text-color: black;
5-
--link-color: #039;
6-
--separator-color: #373648;
7-
8-
color-scheme: light dark;
9-
}
10-
111
.highcharts-light {
122
color-scheme: light;
133
}
144

15-
/* Dark mode */
165
.highcharts-dark {
17-
--background-color: #333333;
18-
--card-background: #141414;
19-
--text-color: #eee;
20-
--link-color: #bbe5ff;
21-
--separator-color: #999;
22-
236
color-scheme: dark;
247
}
258

26-
279
@media (prefers-color-scheme: dark) {
2810
:root {
29-
--background-color: #333333;
30-
--card-background: #141414;
31-
--text-color: #eee;
32-
--link-color: #bbe5ff;
33-
--separator-color: #999;
34-
3511
color-scheme: dark;
3612
}
3713
}
3814

15+
:root {
16+
--background-color: light-dark(#f6f6f6, #333333);
17+
--card-background: light-dark(#ffffff, #141414);
18+
--text-color: light-dark(black, #eee);
19+
--link-color: light-dark(#039, #bbe5ff);
20+
--separator-color: light-dark(#373648, #999);
21+
}
22+
3923
body {
4024
margin: 0;
4125
background: var(--background-color);

0 commit comments

Comments
 (0)