-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathgithub-syntax.css
More file actions
148 lines (127 loc) · 4.78 KB
/
Copy pathgithub-syntax.css
File metadata and controls
148 lines (127 loc) · 4.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/* Shared */
:root {
--color-syntax-markup-deleted-text: #b31d28;
--color-syntax-markup-deleted-bg: #ffeef0;
--color-syntax-markup-inserted-text: #22863a;
--color-syntax-markup-inserted-bg: #f0fff4;
}
/* No preference or prefers light */
:root:not([data-prefers-color-scheme=dark]),
html[data-prefers-color-scheme=light] {
--color-syntax-text-primary: #24292e;
--color-syntax-highlight: #ffffcc;
--color-syntax-comment: #6a737d;
--color-syntax-brackethighlighter-unmatched: #b31d28;
--color-syntax-keyword: #24292e; /* upstream: #d73a49 */
--color-syntax-string: #032f62;
--color-syntax-constant: #005cc5;
--color-syntax-entity-tag: #22863a;
--color-syntax-entity: #6f42c1;
}
/* Prefers dark */
html[data-prefers-color-scheme=dark] {
--color-syntax-text-primary: #c9d1d9;
--color-syntax-highlight: #ffffcc;
--color-syntax-comment: #959da5;
--color-syntax-brackethighlighter-unmatched: #d73a49;
--color-syntax-keyword: #c9d1d9; /* upstream: #ea4a5a */
--color-syntax-string: #79b8ff;
--color-syntax-constant: #c8e1ff;
--color-syntax-entity-tag: #7bcc72;
--color-syntax-entity: #b392f0;
}
@media (prefers-color-scheme: dark) {
:root:not([data-prefers-color-scheme=light]) {
--color-syntax-text-primary: #c9d1d9;
--color-syntax-highlight: #ffffcc;
--color-syntax-comment: #959da5;
--color-syntax-brackethighlighter-unmatched: #d73a49;
--color-syntax-keyword: #c9d1d9; /* upstream: #ea4a5a */
--color-syntax-string: #79b8ff;
--color-syntax-constant: #c8e1ff;
--color-syntax-entity-tag: #7bcc72;
--color-syntax-entity: #b392f0;
}
}
.highlight .hll { background-color: var(--color-syntax-highlight) }
.highlight .nx,
.highlight .p { color: var(--color-syntax-primary); }
/* Comment, Comment.Multiline, Comment.Single */
.highlight .c,
.highlight .cm,
.highlight .c1 { color: var(--color-syntax-comment); font-style: italic }
/* Comment.Preproc, Comment.Special */
.highlight .cp,
.highlight .cs { color: var(--color-syntax-comment); font-weight: bold; font-style: italic }
/* Error */
.highlight .err { color: var(--color-syntax-brackethighlighter-unmatched) }
/* Generic.Error, Generic.Traceback */
.highlight .gr,
.highlight .gt { color: var(--color-syntax-brackethighlighter-unmatched) }
/* Keyword, Keyword.Constant, Keyword.Declaration, Keyword.Namespace, Keyword.Pseudo, Keyword.Reserved, Keyword.Type */
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: var(--color-syntax-keyword); font-weight: bold }
/* Literal.Number, Literal.String, Literal.Number.Float, Literal.Number.Hex, Literal.Number.Integer, Literal.Number.Oct, Literal.String.Backtick, Literal.String.Char, Literal.String.Doc, Literal.String.Double, Literal.String.Escape, Literal.String.Heredoc, Literal.String.Interpol, Literal.String.Other, Literal.String.Regex, Literal.String.Single, Literal.String.Symbol, Literal.Number.Integer.Long */
.highlight .m,
.highlight .s,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .s1,
.highlight .ss,
.highlight .dl,
.highlight .il { color: var(--color-syntax-string) }
/* Name.Attribute, Name.Constant, Name.Variable, Name.Variable.Class, Name.Variable.Global, Name.Variable.Instance */
.highlight .na,
.highlight .no,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi { color: var(--color-syntax-constant) }
/* Name.Decorator, Name.Builtin, Name.Namespace, Name.Builtin.Pseudo */
.highlight .nd,
.highlight .nb,
.highlight .nn,
.highlight .bp { color: var(--color-syntax-constant); font-weight: bold; }
/* Name.Tag */
.highlight .nt { color: var(--color-syntax-entity-tag) }
/* Name.Entity */
.highlight .ni { color: var(--color-syntax-entity) }
/* Name.Class, Name.Exception, Name.Function, Name.Label */
.highlight .nc,
.highlight .ne,
.highlight .nf,
.highlight .nl { color: var(--color-syntax-entity); font-weight: bold }
/* Generic.Strong */
.highlight .gs { font-weight: bold }
/* Generic.Deleted */
.highlight .gd { color: var(--color-syntax-markup-deleted-text); background-color: var(--color-syntax-markup-deleted-bg) }
/* Generic.Inserted */
.highlight .gi { color: var(--color-syntax-markup-inserted-text); background-color: var(--color-syntax-markup-inserted-bg) }
/* Operator, Operator.Word */
.highlight .o,
.highlight .ow { color: var(--color-syntax-text-primary); font-weight: bold }
/* Text.Whitespace */
.highlight .w { color: var(--color-syntax-text-primary) }
/* Generic.Heading, Generic.Output, Generic.Prompt, Generic.Subheading */
.highlight .gh,
.highlight .go,
.highlight .gp,
.highlight .gu { color: var(--color-syntax-text-primary) }
/* Generic.Emph */
.highlight .ge { color: var(--color-syntax-text-primary); font-style: italic }