|
15 | 15 | --sk-fg-4: hsl(0, 0%, 45%);
|
16 | 16 | --sk-fg-accent: hsl(12, 93%, 43%);
|
17 | 17 |
|
18 |
| - --shiki-color-text: var(--sk-fg-2); |
19 |
| - --shiki-token-constant: var(--shiki-color-text); |
20 |
| - --shiki-token-string: hsl(30, 100%, 30%); |
21 |
| - --shiki-token-comment: var(--sk-fg-4); |
22 |
| - --shiki-token-keyword: hsl(204, 100%, 38%); |
23 |
| - --shiki-token-parameter: var(--shiki-color-text); |
24 |
| - --shiki-token-function: var(--sk-fg-accent); |
25 |
| - --shiki-token-string-expression: var(--shiki-token-string); |
26 |
| - --shiki-token-punctuation: var(--shiki-color-text); |
27 |
| - --shiki-token-link: var(--shiki-token-keyword); |
28 |
| - |
29 | 18 | /* Background colours */
|
30 | 19 | --sk-bg-1: hsl(0, 0%, 100%);
|
31 | 20 | --sk-bg-2: hsl(0, 0%, 100%);
|
|
37 | 26 | /* Border color — use this for all borders, except 'active' borders (e.g. current nav) which use `--sk-fg-accent` */
|
38 | 27 | --sk-border: hsl(0, 0%, 92%);
|
39 | 28 |
|
| 29 | + /* Syntax highlighting — these come from `createCssVariablesTheme`, but are used elsewhere as well */ |
| 30 | + --shiki-color-text: var(--sk-fg-2); |
| 31 | + --shiki-token-constant: var(--shiki-color-text); |
| 32 | + --shiki-token-string: hsl(30, 100%, 30%); |
| 33 | + --shiki-token-comment: var(--sk-fg-4); |
| 34 | + --shiki-token-keyword: hsl(204, 100%, 38%); |
| 35 | + --shiki-token-parameter: var(--shiki-color-text); |
| 36 | + --shiki-token-function: var(--sk-fg-accent); |
| 37 | + --shiki-token-string-expression: var(--shiki-token-string); |
| 38 | + --shiki-token-punctuation: var(--shiki-color-text); |
| 39 | + --shiki-token-link: var(--shiki-token-keyword); |
| 40 | + |
40 | 41 | /* Misc */
|
41 | 42 | --sk-scrollbar: rgba(0, 0, 0, 0.3);
|
42 | 43 | --sk-shadow: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.1));
|
43 |
| - |
44 |
| - /* overrides */ |
45 |
| - --shiki-color-background: var(--sk-bg-2); |
46 | 44 | }
|
47 | 45 |
|
48 | 46 | :root.dark {
|
|
57 | 55 | --sk-fg-4: hsl(var(--sk-bg-hue), 10%, 45%);
|
58 | 56 | --sk-fg-accent: hsl(12, 94%, 62%);
|
59 | 57 |
|
60 |
| - --shiki-color-text: hsl(45, 7%, 75%); |
61 |
| - --shiki-token-comment: hsl(0, 0%, 55%); |
62 |
| - --shiki-token-keyword: hsl(204, 88%, 65%); |
63 |
| - --shiki-token-function: hsl(19, 67%, 75%); |
64 |
| - --shiki-token-string: hsl(41, 37%, 68%); |
65 |
| - |
66 | 58 | /* Background colours */
|
67 | 59 | --sk-bg-1: hsl(var(--sk-bg-hue), 15%, 8%);
|
68 | 60 | --sk-bg-2: hsl(var(--sk-bg-hue), 15%, 15%);
|
|
73 | 65 | /* Border colour */
|
74 | 66 | --sk-border: hsl(var(--sk-bg-hue), 15%, 25%);
|
75 | 67 |
|
| 68 | + /* Syntax highlighting */ |
| 69 | + --shiki-color-text: hsl(45, 7%, 75%); |
| 70 | + --shiki-token-comment: hsl(0, 0%, 55%); |
| 71 | + --shiki-token-keyword: hsl(204, 88%, 65%); |
| 72 | + --shiki-token-function: hsl(19, 67%, 75%); |
| 73 | + --shiki-token-string: hsl(41, 37%, 68%); |
| 74 | + |
76 | 75 | /* Misc */
|
77 | 76 | --sk-scrollbar: rgba(255, 255, 255, 0.3);
|
78 | 77 | --sk-shadow: drop-shadow(1px 2px 16px rgba(0, 0, 0, 0.5));
|
79 |
| - |
80 |
| - /* overrides */ |
81 |
| - --shiki-color-background: var(--sk-bg-3); |
82 | 78 | }
|
0 commit comments