Skip to content

Commit 9345d4d

Browse files
committed
fix: Fixes Light theme: very low contrast #9
Signed-off-by: simonsan <[email protected]>
1 parent 2481015 commit 9345d4d

File tree

1 file changed

+38
-11
lines changed

1 file changed

+38
-11
lines changed

templates/_variables.html

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
11
<style>
22
:root {
3-
--primary-color: #382929;
4-
--primary-text-color: #d7d7d7;
5-
--primary-text-color-over: #FFF;
6-
--primary-link-color: #9b9b9b;
7-
--secondary-color: #282828;
8-
--secondary-text-color: #f2f2f2;
9-
--navbar-background-color-hover: #362525;
10-
--toc-highlight-text-color: #f2f2f2;
11-
--toc-background-color: #3a3a3a;
12-
--code-color: black;
3+
/* Primary theme color */
4+
--primary-color: #FEB33F;
5+
/* Primary theme text color */
6+
--primary-text-color: #543631;
7+
--primary-text-color-over: #000;
8+
/* Primary theme link color */
9+
--primary-link-color: #d09a07;
10+
/* Secondary color: the background body color */
11+
--secondary-color: #fcfaf6;
12+
--secondary-text-color: #303030;
13+
/* Highlight text color of table of content */
14+
--toc-highlight-text-color: #d46e13;
15+
--toc-background-color: white;
16+
--code-color: #4a4a4a;
1317
--code-background-color: white;
1418

15-
--shadow-color: #202020;
19+
--shadow-color: #7a7a7a;
20+
21+
/* Font used for headers (h1 & h2) */
1622
--header-font-family: "Fira Sans", sans-serif;
23+
/* Font used for text */
1724
--text-font-family: "Fira Sans", sans-serif;
1825
}
26+
27+
@media (prefers-color-scheme: dark) {
28+
:root {
29+
--primary-color: #382929;
30+
--primary-text-color: #d7d7d7;
31+
--primary-text-color-over: #FFF;
32+
--primary-link-color: #9b9b9b;
33+
--secondary-color: #282828;
34+
--secondary-text-color: #f2f2f2;
35+
--navbar-background-color-hover: #362525;
36+
--toc-highlight-text-color: #f2f2f2;
37+
--toc-background-color: #3a3a3a;
38+
--code-color: black;
39+
--code-background-color: white;
40+
41+
--shadow-color: #202020;
42+
--header-font-family: "Fira Sans", sans-serif;
43+
--text-font-family: "Fira Sans", sans-serif;
44+
}
45+
}
1946
</style>

0 commit comments

Comments
 (0)