|
6 | 6 |
|
7 | 7 | @layer syntax-highlight-element { |
8 | 8 | syntax-highlight { |
9 | | - --prettylights-bg: #f6f8fa; |
10 | | - --prettylights-fg: #1f2328; |
11 | | - --prettylights-comment: #59636e; |
12 | | - --prettylights-constant: #0550ae; |
13 | | - --prettylights-constant-other-reference-link: #0a3069; |
14 | | - --prettylights-entity: #6639ba; |
15 | | - --prettylights-entity-tag: #0550ae; |
16 | | - --prettylights-keyword: #cf222e; |
17 | | - --prettylights-bold: #f0f6fc; |
18 | | - --prettylights-deleted-bg: #ffebe9; |
19 | | - --prettylights-deleted-text: #82071e; |
20 | | - --prettylights-heading: #0550ae; |
21 | | - --prettylights-inserted-bg: #dafbe1; |
22 | | - --prettylights-inserted-text: #116329; |
23 | | - --prettylights-italic: #f0f6fc; |
24 | | - --prettylights-string: #0a3069; |
25 | | - --prettylights-string-regexp: #116329; |
26 | | - --prettylights-variable: #953800; |
| 9 | + --prettylights-bg: light-dark(#f6f8fa, #151b23); |
| 10 | + --prettylights-fg: light-dark(#1f2328, #f0f6fc); |
| 11 | + --prettylights-comment: light-dark(#59636e, #9198a1); |
| 12 | + --prettylights-constant: light-dark(#0550ae, #79c0ff); |
| 13 | + --prettylights-constant-other-reference-link: light-dark(#0a3069, #a5d6ff); |
| 14 | + --prettylights-entity: light-dark(#6639ba, #d2a8ff); |
| 15 | + --prettylights-entity-tag: light-dark(#0550ae, #7ee787); |
| 16 | + --prettylights-keyword: light-dark(#cf222e, #ff7b72); |
| 17 | + --prettylights-bold: light-dark(#f0f6fc, #f0f6fc); |
| 18 | + --prettylights-deleted-bg: light-dark(#ffebe9, #67060c); |
| 19 | + --prettylights-deleted-text: light-dark(#82071e, #ffdcd7); |
| 20 | + --prettylights-heading: light-dark(#0550ae, #1f6feb); |
| 21 | + --prettylights-inserted-bg: light-dark(#dafbe1, #033a16); |
| 22 | + --prettylights-inserted-text: light-dark(#116329, #aff5b4); |
| 23 | + --prettylights-italic: light-dark(#f0f6fc, #f0f6fc); |
| 24 | + --prettylights-string: light-dark(#0a3069, #a5d6ff); |
| 25 | + --prettylights-string-regexp: light-dark(#116329, #7ee787); |
| 26 | + --prettylights-variable: light-dark(#953800, #ffa657); |
27 | 27 |
|
28 | 28 | color-scheme: light dark; |
29 | 29 | color: var(--prettylights-fg); |
|
33 | 33 | line-height: 1.6; |
34 | 34 | } |
35 | 35 |
|
36 | | - @media (prefers-color-scheme: dark) { |
37 | | - syntax-highlight { |
38 | | - --prettylights-bg: #151b23; |
39 | | - --prettylights-fg: #f0f6fc; |
40 | | - --prettylights-comment: #9198a1; |
41 | | - --prettylights-constant: #79c0ff; |
42 | | - --prettylights-constant-other-reference-link: #a5d6ff; |
43 | | - --prettylights-entity: #d2a8ff; |
44 | | - --prettylights-entity-tag: #7ee787; |
45 | | - --prettylights-keyword: #ff7b72; |
46 | | - --prettylights-bold: #f0f6fc; |
47 | | - --prettylights-deleted-bg: #67060c; |
48 | | - --prettylights-deleted-text: #ffdcd7; |
49 | | - --prettylights-heading: #1f6feb; |
50 | | - --prettylights-inserted-bg: #033a16; |
51 | | - --prettylights-inserted-text: #aff5b4; |
52 | | - --prettylights-italic: #f0f6fc; |
53 | | - --prettylights-string: #a5d6ff; |
54 | | - --prettylights-string-regexp: #7ee787; |
55 | | - --prettylights-variable: #ffa657; |
56 | | - } |
57 | | - } |
58 | | - |
59 | 36 | /* |
60 | 37 | * INFO: |
61 | 38 | * (1.) Currently not a supported property for the highlight pseudo-elements. |
|
0 commit comments