Skip to content

Commit 0040cd4

Browse files
committed
Revert "Update github.js (#100)"
This reverts commit 1b77bf4.
1 parent f184c9a commit 0040cd4

File tree

1 file changed

+30
-120
lines changed

1 file changed

+30
-120
lines changed

src/themes/github.js

Lines changed: 30 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +1,78 @@
11
// @flow
2+
// Original: https://raw.githubusercontent.com/PrismJS/prism-themes/master/themes/prism-ghcolors.css
23

34
import type { PrismTheme } from "../types";
45

56
var theme: PrismTheme = {
67
plain: {
7-
color: "rgb(36, 41, 46)",
8+
color: "#393A34",
89
backgroundColor: "#f6f8fa",
910
},
1011
styles: [
1112
{
12-
types: ["prolog"],
13+
types: ["comment", "prolog", "doctype", "cdata"],
1314
style: {
14-
color: "rgb(0, 0, 128)",
15+
color: "#999988",
16+
fontStyle: "italic",
1517
},
1618
},
1719
{
18-
types: ["comment"],
20+
types: ["namespace"],
1921
style: {
20-
color: "rgb(106, 153, 85)",
22+
opacity: 0.7,
2123
},
2224
},
2325
{
24-
types: ["builtin", "changed", "keyword"],
26+
types: ["string", "attr-value"],
2527
style: {
26-
color: "rgb(215, 58, 73)",
2728
color: "#e3116c",
2829
},
2930
},
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-
},
7731
{
7832
types: ["punctuation", "operator"],
7933
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",
13135
},
13236
},
13337
{
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+
],
13550
style: {
136-
color: "rgb(111, 66, 193)",
51+
color: "#36acaa",
13752
},
13853
},
13954
{
140-
languages: ["json"],
141-
types: ["property"],
55+
types: ["atrule", "keyword", "attr-name", "selector"],
14256
style: {
143-
color: "rgb(3, 47, 98)",
57+
color: "#00a4db",
14458
},
14559
},
14660
{
147-
languages: ["json"],
148-
types: ["string"],
61+
types: ["function", "deleted", "tag"],
14962
style: {
150-
color: "rgb(3, 47, 98)",
63+
color: "#d73a49",
15164
},
15265
},
15366
{
154-
languages: ["json"],
155-
types: ["number"],
67+
types: ["function-variable"],
15668
style: {
157-
color: "rgb(0, 92, 197)",
69+
color: "#6f42c1",
15870
},
15971
},
16072
{
161-
languages: ["json"],
162-
types: ["comment"],
73+
types: ["tag", "selector", "keyword"],
16374
style: {
164-
backgroundColor: "rgb(179, 29, 40)",
165-
color: "rgb(250, 251, 252)",
75+
color: "#00009f",
16676
},
16777
},
16878
],

0 commit comments

Comments
 (0)