|
2 | 2 | --font-size-base: 16px;
|
3 | 3 | --color-text: hsl(12, 5%, 4%);
|
4 | 4 | --color-border: hsl(17, 24%, 90%);
|
| 5 | + color-scheme: light dark; |
5 | 6 | }
|
6 | 7 |
|
7 | 8 | html {
|
|
13 | 14 | }
|
14 | 15 |
|
15 | 16 | body {
|
16 |
| - color: hsla(0, 0%, 0%, 0.8); |
| 17 | + color: light-dark(hsla(0, 0%, 0%, 0.8), white); |
17 | 18 | font-family: 'Source Sans Pro', 'Helvetica Neue', 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
|
18 | 19 | font-weight: 400;
|
19 | 20 | word-wrap: break-word;
|
|
44 | 45 | text-rendering: optimizeLegibility;
|
45 | 46 | font-size: 2rem;
|
46 | 47 | line-height: 1.1;
|
47 |
| - border-bottom: 1px solid rgba(0, 0, 0, 0.2); |
| 48 | + border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.5)); |
48 | 49 | }
|
49 | 50 | h2 {
|
50 | 51 | margin-top: 1.5rem;
|
@@ -225,7 +226,7 @@ li > p {
|
225 | 226 | code {
|
226 | 227 | font-size: 0.85rem;
|
227 | 228 | line-height: 1.5rem;
|
228 |
| - background: rgba(0, 0, 0, 0.05); |
| 229 | + background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.2)); |
229 | 230 | padding: 0 0.25em;
|
230 | 231 | border-radius: 3px;
|
231 | 232 | border: 1px solid rgba(0, 0, 0, 0.1);
|
@@ -254,7 +255,7 @@ td:last-child {
|
254 | 255 | padding-right: 0;
|
255 | 256 | }
|
256 | 257 | a {
|
257 |
| - color: #007a3d; |
| 258 | + color: light-dark(#007a3d, #00cd70); |
258 | 259 | }
|
259 | 260 |
|
260 | 261 | nav {
|
|
0 commit comments