|
1 | 1 | @w-textarea:~ "w-tc-editor"; |
2 | 2 |
|
| 3 | +@media (prefers-color-scheme: dark) { |
| 4 | + .@{w-textarea} { |
| 5 | + color-scheme: dark; |
| 6 | + --color-prettylights-syntax-comment: #8b949e; |
| 7 | + --color-prettylights-syntax-entity-tag: #7ee787; |
| 8 | + --color-prettylights-syntax-entity: #d2a8ff; |
| 9 | + --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; |
| 10 | + --color-prettylights-syntax-constant: #79c0ff; |
| 11 | + --color-prettylights-syntax-string: #a5d6ff; |
| 12 | + --color-prettylights-syntax-keyword: #ff7b72; |
| 13 | + --color-prettylights-syntax-markup-bold: #c9d1d9; |
| 14 | + } |
| 15 | +} |
| 16 | + |
| 17 | +@media (prefers-color-scheme: light) { |
| 18 | + .@{w-textarea} { |
| 19 | + color-scheme: light; |
| 20 | + --color-prettylights-syntax-comment: #6e7781; |
| 21 | + --color-prettylights-syntax-entity-tag: #116329; |
| 22 | + --color-prettylights-syntax-entity: #8250df; |
| 23 | + --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; |
| 24 | + --color-prettylights-syntax-constant: #0550ae; |
| 25 | + --color-prettylights-syntax-string: #0a3069; |
| 26 | + --color-prettylights-syntax-keyword: #cf222e; |
| 27 | + --color-prettylights-syntax-markup-bold: #24292f; |
| 28 | + } |
| 29 | +} |
| 30 | + |
| 31 | +[data-color-mode*='dark'] .@{w-textarea}, |
| 32 | +[data-color-mode*='dark'] .@{w-textarea}-var, |
| 33 | +body[data-color-mode*='dark'] { |
| 34 | + color-scheme: dark; |
| 35 | + --color-prettylights-syntax-comment: #8b949e; |
| 36 | + --color-prettylights-syntax-entity-tag: #7ee787; |
| 37 | + --color-prettylights-syntax-entity: #d2a8ff; |
| 38 | + --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; |
| 39 | + --color-prettylights-syntax-constant: #79c0ff; |
| 40 | + --color-prettylights-syntax-string: #a5d6ff; |
| 41 | + --color-prettylights-syntax-keyword: #ff7b72; |
| 42 | + --color-prettylights-syntax-markup-bold: #c9d1d9; |
| 43 | +} |
| 44 | + |
| 45 | +[data-color-mode*='light'] .@{w-textarea}, |
| 46 | +[data-color-mode*='light'] .@{w-textarea}-var, |
| 47 | +body[data-color-mode*='light'] { |
| 48 | + color-scheme: light; |
| 49 | + --color-prettylights-syntax-comment: #6e7781; |
| 50 | + --color-prettylights-syntax-entity-tag: #116329; |
| 51 | + --color-prettylights-syntax-entity: #8250df; |
| 52 | + --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; |
| 53 | + --color-prettylights-syntax-constant: #0550ae; |
| 54 | + --color-prettylights-syntax-string: #0a3069; |
| 55 | + --color-prettylights-syntax-keyword: #cf222e; |
| 56 | + --color-prettylights-syntax-markup-bold: #24292f; |
| 57 | +} |
| 58 | + |
3 | 59 | .@{w-textarea} { |
4 | 60 | font-family: inherit; |
5 | 61 | font-size: 12px; |
|
26 | 82 | .token.comment, |
27 | 83 | .token.doctype, |
28 | 84 | .token.prolog { |
29 | | - color: #90a4ae; |
| 85 | + color: var(--color-prettylights-syntax-comment); |
30 | 86 | } |
31 | 87 | .token.punctuation { |
32 | | - color: #9e9e9e; |
| 88 | + color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); |
33 | 89 | } |
34 | 90 | .namespace { |
35 | 91 | opacity: 0.7; |
|
40 | 96 | .token.deleted, |
41 | 97 | .token.number, |
42 | 98 | .token.symbol { |
43 | | - color: #e91e63; |
| 99 | + color: var(--color-prettylights-syntax-entity-tag); |
44 | 100 | } |
45 | 101 |
|
46 | | - .token.attr-name, |
47 | 102 | .token.builtin, |
48 | 103 | .token.char, |
49 | 104 | .token.inserted, |
50 | 105 | .token.selector, |
51 | 106 | .token.string { |
52 | | - color: #22863a; |
| 107 | + color: var(--color-prettylights-syntax-constant); |
53 | 108 | } |
54 | 109 |
|
55 | 110 | .style .token.string, |
56 | 111 | .token.entity, |
| 112 | + .token.property, |
57 | 113 | .token.operator, |
58 | 114 | .token.url { |
59 | | - color: #795548; |
| 115 | + color: var(--color-prettylights-syntax-constant); |
60 | 116 | } |
61 | 117 |
|
62 | 118 | .token.atrule, |
63 | | - .token.attr-value, |
64 | | - .token.attr-name, |
65 | | - .token.property, |
| 119 | + .token.property-access .token.method, |
66 | 120 | .token.keyword { |
67 | | - color: #3f51b5; |
| 121 | + color: var(--color-prettylights-syntax-keyword); |
68 | 122 | } |
69 | 123 |
|
70 | 124 | .token.function { |
71 | | - color: #f44336; |
| 125 | + color: var(--color-prettylights-syntax-string); |
72 | 126 | } |
73 | 127 |
|
74 | 128 | .token.important, |
75 | 129 | .token.regex, |
76 | 130 | .token.variable { |
77 | | - color: #ff9800; |
| 131 | + color: var(--color-prettylights-syntax-string-regexp); |
78 | 132 | } |
79 | 133 |
|
80 | 134 | .token.bold, |
81 | 135 | .token.important { |
82 | | - color: #333; |
| 136 | + color: var(--color-prettylights-syntax-markup-bold); |
83 | 137 | } |
84 | 138 | .token.tag { |
85 | | - color: #22863a; |
| 139 | + color: var(--color-prettylights-syntax-entity-tag); |
86 | 140 | } |
87 | | - .attr-name { |
88 | | - color: #005cc5; |
| 141 | + .token.attr-value, |
| 142 | + .token.attr-name { |
| 143 | + color: var(--color-prettylights-syntax-constant); |
89 | 144 | } |
90 | 145 | .token.selector .class, |
91 | 146 | .token.class-name { |
92 | | - color: #6f42c1; |
| 147 | + color: var(--color-prettylights-syntax-entity); |
93 | 148 | } |
94 | 149 | } |
95 | 150 | } |
0 commit comments