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