|
3 | 3 |
|
4 | 4 | import type { PrismTheme } from "../types";
|
5 | 5 |
|
6 |
| -var theme: PrismTheme = { |
| 6 | +var theme = { |
7 | 7 | plain: {
|
8 |
| - color: "#393A34", |
9 |
| - backgroundColor: "#f6f8fa", |
| 8 | + color: 'rgb(36, 41, 46)', |
| 9 | + backgroundColor: '#f6f8fa', |
10 | 10 | },
|
11 | 11 | styles: [
|
12 | 12 | {
|
13 |
| - types: ["comment", "prolog", "doctype", "cdata"], |
| 13 | + types: ['prolog'], |
14 | 14 | style: {
|
15 |
| - color: "#999988", |
16 |
| - fontStyle: "italic", |
| 15 | + color: 'rgb(0, 0, 128)', |
17 | 16 | },
|
18 | 17 | },
|
19 | 18 | {
|
20 |
| - types: ["namespace"], |
| 19 | + types: ['comment'], |
21 | 20 | style: {
|
22 |
| - opacity: 0.7, |
| 21 | + color: 'rgb(106, 153, 85)', |
23 | 22 | },
|
24 | 23 | },
|
25 | 24 | {
|
26 |
| - types: ["string", "attr-value"], |
| 25 | + types: ['builtin', 'changed', 'keyword'], |
27 | 26 | style: {
|
| 27 | + color: 'rgb(215, 58, 73)', |
28 | 28 | color: "#e3116c",
|
29 | 29 | },
|
30 | 30 | },
|
31 | 31 | {
|
32 |
| - types: ["punctuation", "operator"], |
| 32 | + types: ['inserted-sign', 'inserted'], |
33 | 33 | style: {
|
34 |
| - color: "#393A34", |
| 34 | + backgroundColor: 'rgb(240, 255, 244)', |
| 35 | + color: 'rgb(34, 134, 58)', |
35 | 36 | },
|
36 | 37 | },
|
37 | 38 | {
|
38 |
| - types: [ |
39 |
| - "entity", |
40 |
| - "url", |
41 |
| - "symbol", |
42 |
| - "number", |
43 |
| - "boolean", |
44 |
| - "variable", |
45 |
| - "constant", |
46 |
| - "property", |
47 |
| - "regex", |
48 |
| - "inserted", |
49 |
| - ], |
| 39 | + types: ['constant'], |
50 | 40 | style: {
|
51 |
| - color: "#36acaa", |
| 41 | + color: 'rgb(100, 102, 149)', |
52 | 42 | },
|
53 | 43 | },
|
54 | 44 | {
|
55 |
| - types: ["atrule", "keyword", "attr-name", "selector"], |
| 45 | + types: ['attr-name', 'variable'], |
56 | 46 | style: {
|
57 |
| - color: "#00a4db", |
| 47 | + color: 'rgb(156, 220, 254)', |
58 | 48 | },
|
59 | 49 | },
|
60 | 50 | {
|
61 |
| - types: ["function", "deleted", "tag"], |
| 51 | + types: ['deleted-sign', 'deleted'], |
62 | 52 | style: {
|
63 |
| - color: "#d73a49", |
| 53 | + backgroundColor: 'rgb(255, 238, 240)', |
| 54 | + color: 'rgb(179, 29, 40)', |
64 | 55 | },
|
65 | 56 | },
|
66 | 57 | {
|
67 |
| - types: ["function-variable"], |
| 58 | + types: ['selector'], |
68 | 59 | style: {
|
69 |
| - color: "#6f42c1", |
| 60 | + color: 'rgb(215, 186, 125)', |
70 | 61 | },
|
71 | 62 | },
|
72 | 63 | {
|
73 |
| - types: ["tag", "selector", "keyword"], |
| 64 | + // Fix tag color |
| 65 | + types: ['tag'], |
74 | 66 | style: {
|
75 |
| - color: "#00009f", |
| 67 | + color: 'rgb(78, 201, 176)', |
| 68 | + }, |
| 69 | + }, |
| 70 | + { |
| 71 | + // Fix tag color for HTML |
| 72 | + types: ['tag'], |
| 73 | + languages: ['markup'], |
| 74 | + style: { |
| 75 | + color: 'rgb(86, 156, 214)', |
| 76 | + }, |
| 77 | + }, |
| 78 | + { |
| 79 | + types: ['punctuation', 'operator'], |
| 80 | + style: { |
| 81 | + color: 'rgb(36, 41, 46)', |
| 82 | + }, |
| 83 | + }, |
| 84 | + { |
| 85 | + types: ['operator'], |
| 86 | + style: { |
| 87 | + color: 'rgb(0, 92, 197)', |
| 88 | + }, |
| 89 | + }, |
| 90 | + { |
| 91 | + types: ['boolean'], |
| 92 | + style: { |
| 93 | + color: 'rgb(0, 92, 197)', |
| 94 | + }, |
| 95 | + }, |
| 96 | + { |
| 97 | + // Fix punctuation color for HTML |
| 98 | + types: ['punctuation'], |
| 99 | + languages: ['markup'], |
| 100 | + style: { |
| 101 | + color: '#808080', |
| 102 | + }, |
| 103 | + }, |
| 104 | + { |
| 105 | + types: ['function'], |
| 106 | + style: { |
| 107 | + color: 'rgb(111, 66, 193)', |
| 108 | + }, |
| 109 | + }, |
| 110 | + { |
| 111 | + types: ['class-name'], |
| 112 | + style: { |
| 113 | + color: 'rgb(78, 201, 176)', |
| 114 | + }, |
| 115 | + }, |
| 116 | + { |
| 117 | + types: ['known-class-name', 'class-name'], |
| 118 | + style: { |
| 119 | + color: 'rgb(227, 98, 9)', |
| 120 | + }, |
| 121 | + }, |
| 122 | + { |
| 123 | + types: ['char'], |
| 124 | + style: { |
| 125 | + color: 'rgb(209, 105, 105)', |
| 126 | + }, |
| 127 | + }, |
| 128 | + { |
| 129 | + types: ['property-access'], |
| 130 | + style: { |
| 131 | + color: 'rgb(0, 92, 197)', |
| 132 | + }, |
| 133 | + }, |
| 134 | + { |
| 135 | + types: ['method', 'function', 'property-access'], |
| 136 | + style: { |
| 137 | + color: 'rgb(111, 66, 193)', |
| 138 | + }, |
| 139 | + }, |
| 140 | + { |
| 141 | + languages: ['json'], |
| 142 | + types: ['property'], |
| 143 | + style: { |
| 144 | + color: 'rgb(3, 47, 98)', |
| 145 | + }, |
| 146 | + }, |
| 147 | + { |
| 148 | + languages: ['json'], |
| 149 | + types: ['string'], |
| 150 | + style: { |
| 151 | + color: 'rgb(3, 47, 98)', |
| 152 | + }, |
| 153 | + }, |
| 154 | + { |
| 155 | + languages: ['json'], |
| 156 | + types: ['number'], |
| 157 | + style: { |
| 158 | + color: 'rgb(0, 92, 197)', |
| 159 | + }, |
| 160 | + }, |
| 161 | + { |
| 162 | + languages: ['json'], |
| 163 | + types: ['comment'], |
| 164 | + style: { |
| 165 | + backgroundColor: 'rgb(179, 29, 40)', |
| 166 | + color: 'rgb(250, 251, 252)', |
76 | 167 | },
|
77 | 168 | },
|
78 | 169 | ],
|
|
0 commit comments