|
3 | 3 |
|
4 | 4 | import type { PrismTheme } from "../types";
|
5 | 5 |
|
6 |
| -var theme: PrismTheme = { |
| 6 | +var theme = { |
7 | 7 | plain: {
|
8 |
| - color: "#393A34", |
| 8 | + color: "rgb(36, 41, 46)", |
9 | 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 | + { |
| 32 | + types: ["inserted-sign", "inserted"], |
| 33 | + style: { |
| 34 | + backgroundColor: "rgb(240, 255, 244)", |
| 35 | + color: "rgb(34, 134, 58)", |
| 36 | + }, |
| 37 | + }, |
| 38 | + { |
| 39 | + types: ["constant"], |
| 40 | + style: { |
| 41 | + color: "rgb(100, 102, 149)", |
| 42 | + }, |
| 43 | + }, |
| 44 | + { |
| 45 | + types: ["attr-name", "variable"], |
| 46 | + style: { |
| 47 | + color: "rgb(156, 220, 254)", |
| 48 | + }, |
| 49 | + }, |
| 50 | + { |
| 51 | + types: ["deleted-sign", "deleted"], |
| 52 | + style: { |
| 53 | + backgroundColor: "rgb(255, 238, 240)", |
| 54 | + color: "rgb(179, 29, 40)", |
| 55 | + }, |
| 56 | + }, |
| 57 | + { |
| 58 | + types: ["selector"], |
| 59 | + style: { |
| 60 | + color: "rgb(215, 186, 125)", |
| 61 | + }, |
| 62 | + }, |
| 63 | + { |
| 64 | + // Fix tag color |
| 65 | + types: ["tag"], |
| 66 | + style: { |
| 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 | + }, |
31 | 78 | {
|
32 | 79 | types: ["punctuation", "operator"],
|
33 | 80 | style: {
|
34 |
| - color: "#393A34", |
| 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)", |
35 | 132 | },
|
36 | 133 | },
|
37 | 134 | {
|
38 |
| - types: [ |
39 |
| - "entity", |
40 |
| - "url", |
41 |
| - "symbol", |
42 |
| - "number", |
43 |
| - "boolean", |
44 |
| - "variable", |
45 |
| - "constant", |
46 |
| - "property", |
47 |
| - "regex", |
48 |
| - "inserted", |
49 |
| - ], |
| 135 | + types: ["method", "function", "property-access"], |
50 | 136 | style: {
|
51 |
| - color: "#36acaa", |
| 137 | + color: "rgb(111, 66, 193)", |
52 | 138 | },
|
53 | 139 | },
|
54 | 140 | {
|
55 |
| - types: ["atrule", "keyword", "attr-name", "selector"], |
| 141 | + languages: ["json"], |
| 142 | + types: ["property"], |
56 | 143 | style: {
|
57 |
| - color: "#00a4db", |
| 144 | + color: "rgb(3, 47, 98)", |
58 | 145 | },
|
59 | 146 | },
|
60 | 147 | {
|
61 |
| - types: ["function", "deleted", "tag"], |
| 148 | + languages: ["json"], |
| 149 | + types: ["string"], |
62 | 150 | style: {
|
63 |
| - color: "#d73a49", |
| 151 | + color: "rgb(3, 47, 98)", |
64 | 152 | },
|
65 | 153 | },
|
66 | 154 | {
|
67 |
| - types: ["function-variable"], |
| 155 | + languages: ["json"], |
| 156 | + types: ["number"], |
68 | 157 | style: {
|
69 |
| - color: "#6f42c1", |
| 158 | + color: "rgb(0, 92, 197)", |
70 | 159 | },
|
71 | 160 | },
|
72 | 161 | {
|
73 |
| - types: ["tag", "selector", "keyword"], |
| 162 | + languages: ["json"], |
| 163 | + types: ["comment"], |
74 | 164 | style: {
|
75 |
| - color: "#00009f", |
| 165 | + backgroundColor: "rgb(179, 29, 40)", |
| 166 | + color: "rgb(250, 251, 252)", |
76 | 167 | },
|
77 | 168 | },
|
78 | 169 | ],
|
|
0 commit comments