|
1 |
| -/* |
2 |
| - Copyright 2022 the JSDoc Authors. |
3 |
| -
|
4 |
| - Licensed under the Apache License, Version 2.0 (the "License"); |
5 |
| - you may not use this file except in compliance with the License. |
6 |
| - You may obtain a copy of the License at |
7 |
| -
|
8 |
| - https://www.apache.org/licenses/LICENSE-2.0 |
9 |
| -
|
10 |
| - Unless required by applicable law or agreed to in writing, software |
11 |
| - distributed under the License is distributed on an "AS IS" BASIS, |
12 |
| - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 |
| - See the License for the specific language governing permissions and |
14 |
| - limitations under the License. |
15 |
| -*/ |
16 |
| - |
17 |
| -/* Tomorrow theme for Highlight.js */ |
18 |
| -/* Based on https://github.com/chriskempson/tomorrow-theme */ |
19 |
| - |
20 | 1 | :root {
|
21 |
| - --text-color: #3d3d3c; |
22 |
| - --tomorrow-blue: #4271ae; |
23 |
| - --tomorrow-gray: #8e908c; |
24 |
| - --tomorrow-green: #718c00; |
25 |
| - --tomorrow-orange: #f5871f; |
26 |
| - --tomorrow-purple: #8959a8; |
27 |
| - --tomorrow-red: #c82829; |
28 |
| - --tomorrow-yellow: #c99e00; |
| 2 | + --text-color-light: #1e293b; |
| 3 | + --text-color-dark: #ffffff; |
| 4 | + --tomorrow-blue: #6366f1; |
| 5 | + --tomorrow-gray: #6b7280; |
| 6 | + --tomorrow-green: #48bb78; |
| 7 | + --tomorrow-orange: #f59e0b; |
| 8 | + --tomorrow-purple: #9f7aea; |
| 9 | + --tomorrow-red: #ef4444; |
| 10 | + --tomorrow-yellow: #f9ca24; |
29 | 11 | }
|
30 | 12 |
|
31 | 13 | .hljs,
|
32 | 14 | .no-hljs {
|
33 |
| - color: var(--text-color); |
| 15 | + color: var(--text-color-light); |
| 16 | + font-family: 'Inter', sans-serif; |
34 | 17 | }
|
35 | 18 |
|
36 | 19 | .hljs-code,
|
37 | 20 | .hljs-formula {
|
38 |
| - color: var(--text-color); |
| 21 | + color: var(--text-color-light); |
39 | 22 | }
|
40 | 23 |
|
41 | 24 | .hljs-comment,
|
|
110 | 93 | .hljs-strong {
|
111 | 94 | font-weight: bold;
|
112 | 95 | }
|
| 96 | + |
| 97 | + |
| 98 | +@media (prefers-color-scheme: dark) { |
| 99 | + :root { |
| 100 | + --text-color-light: #ffffff; |
| 101 | + --background-color-light: #1e293b; |
| 102 | + } |
| 103 | + |
| 104 | + body { |
| 105 | + background-color: var(--background-color-light); |
| 106 | + } |
| 107 | + |
| 108 | + .github-ribbon { |
| 109 | + background-color: #1d212e; |
| 110 | + } |
| 111 | + |
| 112 | + pre { |
| 113 | + background-color: #1d212e; |
| 114 | + } |
| 115 | + .hljs, |
| 116 | + .no-hljs { |
| 117 | + color: var(--text-color-dark); |
| 118 | + font-family: 'Inter', sans-serif; |
| 119 | + } |
| 120 | + |
| 121 | + .hljs-code, |
| 122 | + .hljs-formula { |
| 123 | + color: var(--text-color-dark); |
| 124 | + } |
| 125 | + |
| 126 | + .hljs-comment, |
| 127 | + .hljs-quote { |
| 128 | + color: var(--tomorrow-gray); |
| 129 | + } |
| 130 | + |
| 131 | + .hljs-deletion, |
| 132 | + .hljs-meta .hljs-keyword, |
| 133 | + .hljs-name, |
| 134 | + .hljs-property, |
| 135 | + .hljs-regexp, |
| 136 | + .hljs-selector-attr, |
| 137 | + .hljs-selector-class, |
| 138 | + .hljs-selector-id, |
| 139 | + .hljs-selector-pseudo, |
| 140 | + .hljs-substr, |
| 141 | + .hljs-tag, |
| 142 | + .hljs-template-tag, |
| 143 | + .hljs-template-variable, |
| 144 | + .hljs-variable, |
| 145 | + .hljs-variable.language_ { |
| 146 | + color: var(--tomorrow-red); |
| 147 | + } |
| 148 | + |
| 149 | + .hljs-built_in, |
| 150 | + .hljs-char.escape_, |
| 151 | + .hljs-link, |
| 152 | + .hljs-literal, |
| 153 | + .hljs-meta, |
| 154 | + .hljs-number, |
| 155 | + .hljs-operator, |
| 156 | + .hljs-params, |
| 157 | + .hljs-type { |
| 158 | + color: var(--tomorrow-orange); |
| 159 | + } |
| 160 | + |
| 161 | + .hljs-attribute { |
| 162 | + color: var(--tomorrow-yellow); |
| 163 | + } |
| 164 | + |
| 165 | + .hljs-addition, |
| 166 | + .hljs-attr, |
| 167 | + .hljs-bullet, |
| 168 | + .hljs-meta .hljs-string, |
| 169 | + .hljs-string, |
| 170 | + .hljs-subst, |
| 171 | + .hljs-symbol, |
| 172 | + .hljs-title.class_.inherited__, |
| 173 | + .hljs-title.function_ { |
| 174 | + color: var(--tomorrow-green); |
| 175 | + } |
| 176 | + |
| 177 | + .hljs-punctuation, |
| 178 | + .hljs-section, |
| 179 | + .hljs-title { |
| 180 | + color: var(--tomorrow-blue); |
| 181 | + } |
| 182 | + |
| 183 | + .hljs-keyword, |
| 184 | + .hljs-meta.hljs-keyword, |
| 185 | + .hljs-selector-tag, |
| 186 | + .hljs-title.class_ { |
| 187 | + color: var(--tomorrow-purple); |
| 188 | + } |
| 189 | + |
| 190 | + .hljs-emphasis { |
| 191 | + font-style: italic; |
| 192 | + } |
| 193 | + |
| 194 | + .hljs-doctag, |
| 195 | + .hljs-strong { |
| 196 | + font-weight: bold; |
| 197 | + } |
| 198 | + |
| 199 | + |
| 200 | +} |
| 201 | + |
0 commit comments