|
1 | 1 | :root {
|
2 | 2 | --shiki-color-text: theme("colors.tint.11");
|
3 |
| - --shiki-token-constant: #0a6355; |
4 |
| - --shiki-token-string: #8b6d32; |
5 |
| - --shiki-token-comment: theme("colors.teal.700/.64"); |
6 |
| - --shiki-token-keyword: theme("colors.pomegranate.600"); |
7 |
| - --shiki-token-parameter: #0a3069; |
8 |
| - --shiki-token-function: #8250df; |
9 |
| - --shiki-token-string-expression: #6a4906; |
10 |
| - --shiki-token-punctuation: theme("colors.pomegranate.700/.92"); |
11 |
| - --shiki-token-link: theme("colors.tint.12"); |
12 |
| - --shiki-token-inserted: #22863a; |
13 |
| - --shiki-token-deleted: #b31d28; |
14 |
| - --shiki-token-changed: #8250df; |
| 3 | + --shiki-token-punctuation: theme("colors.tint.11"); |
| 4 | + --shiki-token-comment: theme("colors.neutral.9/.7"); |
| 5 | + --shiki-token-link: theme("colors.primary.10"); |
| 6 | + |
| 7 | + --shiki-token-constant: theme("colors.warning.10"); |
| 8 | + --shiki-token-string: theme("colors.success.10"); |
| 9 | + --shiki-token-string-expression: theme("colors.success.10"); |
| 10 | + --shiki-token-keyword: theme("colors.danger.10"); |
| 11 | + --shiki-token-parameter: theme("colors.warning.10"); |
| 12 | + --shiki-token-function: theme("colors.primary.10"); |
| 13 | + |
| 14 | + --shiki-token-inserted: theme("colors.success.10"); |
| 15 | + --shiki-token-deleted: theme("colors.danger.10"); |
| 16 | + --shiki-token-changed: theme("colors.tint.12"); |
| 17 | +} |
| 18 | + |
| 19 | +@media (prefers-contrast: more) { |
| 20 | + :root { |
| 21 | + --shiki-color-text: theme("colors.tint.12"); |
| 22 | + --shiki-token-punctuation: theme("colors.tint.12"); |
| 23 | + --shiki-token-comment: theme("colors.neutral.11"); |
| 24 | + --shiki-token-link: theme("colors.primary.11"); |
| 25 | + |
| 26 | + --shiki-token-constant: theme("colors.warning.11"); |
| 27 | + --shiki-token-string: theme("colors.success.11"); |
| 28 | + --shiki-token-string-expression: theme("colors.success.11"); |
| 29 | + --shiki-token-keyword: theme("colors.danger.11"); |
| 30 | + --shiki-token-parameter: theme("colors.warning.11"); |
| 31 | + --shiki-token-function: theme("colors.primary.11"); |
| 32 | + |
| 33 | + --shiki-token-inserted: theme("colors.success.11"); |
| 34 | + --shiki-token-deleted: theme("colors.danger.11"); |
| 35 | + --shiki-token-changed: theme("colors.tint.12"); |
| 36 | + } |
15 | 37 | }
|
16 | 38 |
|
17 | 39 | html.dark {
|
18 |
| - --shiki-color-text: theme("colors.tint.11"); |
19 |
| - --shiki-token-constant: #d19a66; |
20 |
| - --shiki-token-string: theme("colors.pomegranate.300"); |
21 |
| - --shiki-token-comment: theme("colors.teal.300/.64"); |
22 |
| - --shiki-token-keyword: theme("colors.pomegranate.400"); |
23 |
| - --shiki-token-parameter: theme("colors.yellow.500"); |
24 |
| - --shiki-token-function: #56b6c2; |
25 |
| - --shiki-token-string-expression: theme("colors.tint.11"); |
26 |
| - --shiki-token-punctuation: #acc6ee; |
27 |
| - --shiki-token-link: theme("colors.pomegranate.400"); |
28 |
| - --shiki-token-inserted: #85e89d; |
29 |
| - --shiki-token-deleted: #fdaeb7; |
30 |
| - --shiki-token-changed: #56b6c2; |
| 40 | + /* Override select colors to have more contrast */ |
| 41 | + --shiki-token-comment: theme("colors.neutral.9"); |
| 42 | + |
| 43 | + --shiki-token-constant: theme("colors.warning.11"); |
| 44 | + --shiki-token-string: theme("colors.success.11"); |
| 45 | + --shiki-token-string-expression: theme("colors.success.11"); |
| 46 | + --shiki-token-keyword: theme("colors.danger.11"); |
| 47 | + --shiki-token-parameter: theme("colors.warning.11"); |
| 48 | + --shiki-token-function: theme("colors.primary.11"); |
| 49 | +} |
| 50 | + |
| 51 | +.code-monochrome { |
| 52 | + --shiki-token-constant: theme("colors.tint.11"); |
| 53 | + --shiki-token-string: theme("colors.tint.12"); |
| 54 | + --shiki-token-string-expression: theme("colors.tint.12"); |
| 55 | + --shiki-token-keyword: theme("colors.primary.10"); |
| 56 | + --shiki-token-parameter: theme("colors.tint.9"); |
| 57 | + --shiki-token-function: theme("colors.primary.9"); |
| 58 | +} |
| 59 | + |
| 60 | +html.dark.code-monochrome { |
| 61 | + --shiki-token-constant: theme("colors.tint.11"); |
| 62 | + --shiki-token-string: theme("colors.tint.12"); |
| 63 | + --shiki-token-string-expression: theme("colors.tint.12"); |
| 64 | + --shiki-token-keyword: theme("colors.primary.11"); |
| 65 | + --shiki-token-parameter: theme("colors.tint.10"); |
| 66 | + --shiki-token-function: theme("colors.primary.10"); |
31 | 67 | }
|
0 commit comments