|
1 | 1 | /* initial load, no class on html element */ |
2 | 2 | @media (prefers-color-scheme: light) { |
3 | 3 | html:not([class]) { |
4 | | - --bg-color: theme("colors.white"); |
| 4 | + --bg-color: theme("colors.white") |
5 | 5 | } |
6 | 6 | } |
7 | 7 |
|
8 | 8 | @media (prefers-color-scheme: dark) { |
9 | 9 | html:not([class]) { |
10 | 10 | --text-color: theme("colors.white"); |
| 11 | + --text-color-muted: #818EA2; |
| 12 | + --ui-component-color: theme("colors.gray.600"); |
11 | 13 | --bg-color: theme("colors.gray.900"); |
12 | 14 | --sidebar-bg-color: rgba(0, 0, 0, 0.1); |
13 | 15 | --search-bg-color: theme("colors.slate"); |
14 | 16 | --dl-color: theme("colors.soft-gray"); |
15 | 17 | --heading-color: theme("colors.gray.100"); |
16 | | - --sidebar-link-color: theme("colors.gray.500"); |
17 | 18 | --border-color: theme("colors.slate"); |
18 | 19 | --doc-set-color: theme("colors.gray.200"); |
19 | 20 | --code-highlight-color: rgba(45, 55, 72, 0.25); |
20 | 21 | --code-bg-color: theme("colors.cinder"); |
21 | 22 | --custom-block-bg-color: theme("colors.slate"); |
22 | 23 | --custom-block-border-color: transparent; |
| 24 | + |
| 25 | + /* Links */ |
| 26 | + --link-color-default: theme("colors.blue.lighter"); |
| 27 | + --link-underline-color: var(--link-color-default); |
| 28 | + --sidebar-link-color: theme("colors.gray.400"); |
| 29 | + --sidebar-active-link-color: var(--link-color-default); |
23 | 30 | } |
24 | 31 | } |
25 | 32 |
|
26 | 33 | /* JS-applied, which may differ from browser setting */ |
27 | 34 | .theme-dark { |
28 | 35 | --text-color: theme("colors.white"); |
| 36 | + --text-color-muted: #818EA2; |
| 37 | + --ui-component-color: theme("colors.gray.600"); |
29 | 38 | --bg-color: theme("colors.gray.900"); |
30 | 39 | --sidebar-bg-color: rgba(0, 0, 0, 0.1); |
31 | 40 | --search-bg-color: theme("colors.slate"); |
32 | 41 | --dl-color: rgba(0, 0, 0, 0.2); |
33 | 42 | --medium-zoom-overlay-color: rgba(23, 29, 40, 1); |
34 | 43 | --heading-color: theme("colors.gray.100"); |
35 | | - --sidebar-link-color: theme("colors.gray.400"); |
36 | 44 | --hamburger-color: theme("colors.white"); |
37 | 45 | --tooltip-bg-color: theme("colors.gray.800"); |
38 | 46 | --border-color: theme("colors.slate"); |
|
42 | 50 | --custom-block-bg-color: theme("colors.slate"); |
43 | 51 | --custom-block-border-color: transparent; |
44 | 52 |
|
| 53 | + /* Links */ |
| 54 | + --link-color-default: theme("colors.blue.lighter"); |
| 55 | + --link-underline-color: var(--link-color-default); |
| 56 | + --sidebar-link-color: theme("colors.gray.400"); |
| 57 | + --sidebar-active-link-color: var(--link-color-default); |
| 58 | + |
45 | 59 | .link-panel { |
46 | 60 | background-color: var(--border-color); |
47 | 61 | border-color: rgba(255, 255, 255, 0.05); |
|
0 commit comments