Skip to content

Commit 262efb2

Browse files
committed
Use dark mode if no preferred color scheme is set
1 parent 7e6414c commit 262efb2

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

src/styles/index.css

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
:root {
22
/* Background color of the body */
33
/* Text color for the borg screen of death */
4-
--color-bg: #ffffff;
4+
--color-bg: #1e1e1e;
55
/* Background color for man messages */
6-
--color-man-bg: #edf3ff;
6+
--color-man-bg: #272727;
77
/* Background color for the header bar */
88
/* Line color between log messages */
9-
--color-header-bg: #eeeeee;
9+
--color-header-bg: #303030;
1010
/* Background color of the line that shows the builder (below the header) */
11-
--color-builder-bg: #fffaaf;
11+
--color-builder-bg: #cd9309;
1212
/* Foreground color of the line that shows the builder (below the header) */
13-
--color-builder: #5270a3;
13+
--color-builder: rgba(0, 0, 0, 0.8);
1414

1515
/* Background color for the selected header tab if it is not focused */
16-
--color-tab-selected: #005fff;
16+
--color-tab-selected: #444444;
1717
/* Background color for non-selected tabs */
1818
/* Background color for hovered, focused or active links */
19-
--color-tab-unselected: #afffff;
19+
--color-tab-unselected: #00000000;
2020
/* Background color of the focused tab */
21-
--color-tab-focus: #dc00b8;
21+
--color-tab-focus: #4b4b4b;
2222
/* Text color for the header bar */
2323
/* Text color of unclicked links. */
24-
--color-tab-text: var(--color-tab-selected);
24+
--color-tab-text: var(--color-text);
2525
/* Text color for selected tabs (also if they are selected) */
26-
--color-tab-selected-text: var(--color-bg);
26+
--color-tab-selected-text: var(--color-text);
2727

2828
/* Default text color of the body */
29-
--color-text: #000000;
29+
--color-text: #ffffff;
3030
/* Text color for ofborg and stomp messages */
3131
/* Color of the message that you require js */
3232
/* Text color of the line that shows the builder (below the header) */
33-
--color-info: rgba(0, 0, 0, 0.5);
33+
--color-info: rgba(255, 255, 255, 0.5);
3434
/* Text color for error messages */
35-
--color-error: #ba3300;
35+
--color-error: #ff7b63;
3636

3737
/* Left border color for borg messages, like man or system information */
3838
/* Background of the borg screen of death */
39-
--color-borg: #2d8f34;
39+
--color-borg: #26a269;
4040
/* Left border color for man messages */
41-
--color-man: #424775;
41+
--color-man: #1a5fb4;
4242
/* Text color for stompjs debug messages */
4343
/* Text color for visited links */
44-
--color-debug: #8f2d87;
44+
--color-debug: #613583;
4545

4646
/* Line height */
4747
--line-height: 1.3rem;
4848
/* Header height */
4949
--header-height: var(--line-height);
5050
}
5151

52-
@media (prefers-color-scheme: dark) {
52+
@media (prefers-color-scheme: light) {
5353
:root {
54-
--color-bg: #1e1e1e;
55-
--color-man-bg: #272727;
56-
--color-header-bg: #303030;
57-
--color-builder-bg: #cd9309;
58-
--color-builder: rgba(0, 0, 0, 0.8);
59-
--color-tab-selected: #444444;
60-
--color-tab-unselected: #00000000;
61-
--color-tab-focus: #4b4b4b;
62-
--color-tab-text: var(--color-text);
63-
--color-tab-selected-text: var(--color-text);
64-
--color-text: #ffffff;
65-
--color-info: rgba(255, 255, 255, 0.5);
66-
--color-error: #ff7b63;
67-
--color-borg: #26a269;
68-
--color-man: #1a5fb4;
69-
--color-debug: #613583;
54+
--color-bg: #ffffff;
55+
--color-man-bg: #edf3ff;
56+
--color-header-bg: #eeeeee;
57+
--color-builder-bg: #fffaaf;
58+
--color-builder: #5270a3;
59+
--color-tab-selected: #005fff;
60+
--color-tab-unselected: #afffff;
61+
--color-tab-focus: #dc00b8;
62+
--color-tab-text: var(--color-tab-selected);
63+
--color-tab-selected-text: var(--color-bg);
64+
--color-text: #000000;
65+
--color-info: rgba(0, 0, 0, 0.5);
66+
--color-error: #ba3300;
67+
--color-borg: #2d8f34;
68+
--color-man: #424775;
69+
--color-debug: #8f2d87;
7070
}
7171
}
7272

0 commit comments

Comments
 (0)