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