Skip to content

Commit 11fc2e1

Browse files
committed
Fix contrast ratio for guide syntax hilighting [ci-skip]
The theme used for syntax hilighting has a number of colors that do not meet the 4.5:1 minimum contrast ratio of the Web Content Accessibility Guidelines (WCAG) 2.1 standard. All colors that were below 4.5:1 on a background of #eeeeee have been adjusted to be at or slightly above 4.5:1 using tweaked versions of the tools in this repository: https://github.com/mpchadwick/pygments-high-contrast-stylesheets/
1 parent 359efef commit 11fc2e1

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

guides/assets/stylesheets/highlight.css

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
.highlight table td { padding: 5px; }
22
.highlight table pre { margin: 0; }
33
.highlight .cm {
4-
color: #999988;
4+
color: #6c6c65;
55
font-style: italic;
66
}
77
.highlight .cp {
8-
color: #999999;
8+
color: #6c6c6c;
99
font-weight: bold;
1010
}
1111
.highlight .c1 {
12-
color: #999988;
12+
color: #6c6c65;
1313
font-style: italic;
1414
}
1515
.highlight .cs {
16-
color: #999999;
16+
color: #6c6c6c;
1717
font-weight: bold;
1818
font-style: italic;
1919
}
2020
.highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
21-
color: #999988;
21+
color: #6c6c65;
2222
font-style: italic;
2323
}
2424
.highlight .err {
@@ -37,14 +37,14 @@
3737
color: #aa0000;
3838
}
3939
.highlight .gh {
40-
color: #999999;
40+
color: #6c6c6c;
4141
}
4242
.highlight .gi {
4343
color: #000000;
4444
background-color: #ddffdd;
4545
}
4646
.highlight .go {
47-
color: #888888;
47+
color: #6c6c6c;
4848
}
4949
.highlight .gp {
5050
color: #555555;
@@ -53,7 +53,7 @@
5353
font-weight: bold;
5454
}
5555
.highlight .gu {
56-
color: #aaaaaa;
56+
color: #6c6c6c;
5757
}
5858
.highlight .gt {
5959
color: #aa0000;
@@ -83,77 +83,77 @@
8383
font-weight: bold;
8484
}
8585
.highlight .k, .highlight .kv {
86-
color: #07a;
86+
color: #0073a6;
8787
}
8888
.highlight .mf {
89-
color: #009999;
89+
color: #007979;
9090
}
9191
.highlight .mh {
92-
color: #009999;
92+
color: #007979;
9393
}
9494
.highlight .il {
95-
color: #009999;
95+
color: #007979;
9696
}
9797
.highlight .mi {
98-
color: #009999;
98+
color: #007979;
9999
}
100100
.highlight .mo {
101-
color: #009999;
101+
color: #007979;
102102
}
103103
.highlight .m, .highlight .mb, .highlight .mx {
104-
color: #009999;
104+
color: #007979;
105105
}
106106
.highlight .sb {
107-
color: #d14;
107+
color: #d51144;
108108
}
109109
.highlight .sc {
110-
color: #d14;
110+
color: #d51144;
111111
}
112112
.highlight .sd {
113-
color: #d14;
113+
color: #d51144;
114114
}
115115
.highlight .s2 {
116-
color: #d14;
116+
color: #d51144;
117117
}
118118
.highlight .se {
119-
color: #d14;
119+
color: #d51144;
120120
}
121121
.highlight .sh {
122-
color: #d14;
122+
color: #d51144;
123123
}
124124
.highlight .si {
125-
color: #d14;
125+
color: #d51144;
126126
}
127127
.highlight .sx {
128-
color: #d14;
128+
color: #d51144;
129129
}
130130
.highlight .sr {
131-
color: #009926;
131+
color: #007e26;
132132
}
133133
.highlight .s1 {
134-
color: #d14;
134+
color: #d51144;
135135
}
136136
.highlight .ss {
137137
color: #990073;
138138
}
139139
.highlight .s, .highlight .sa, .highlight .dl {
140-
color: #d14;
140+
color: #d51144;
141141
}
142142
.highlight .na {
143-
color: #008080;
143+
color: #007979;
144144
}
145145
.highlight .bp {
146-
color: #999999;
146+
color: #6c6c6c;
147147
}
148148
.highlight .nb {
149-
color: #0086B3;
149+
color: #0074a1;
150150
}
151151
.highlight .nc {
152152
color: #445588;
153153
font-weight: bold;
154154
}
155155
.highlight .no {
156-
color: #008080;
156+
color: #007979;
157157
}
158158
.highlight .nd {
159159
color: #3c5d5d;
@@ -181,16 +181,16 @@
181181
color: #000080;
182182
}
183183
.highlight .vc {
184-
color: #008080;
184+
color: #007979;
185185
}
186186
.highlight .vg {
187-
color: #008080;
187+
color: #007979;
188188
}
189189
.highlight .vi {
190190
color: #005cc5;
191191
}
192192
.highlight .nv, .highlight .vm {
193-
color: #008080;
193+
color: #007979;
194194
}
195195
.highlight .ow {
196196
color: #000000;
@@ -201,7 +201,7 @@
201201
font-weight: bold;
202202
}
203203
.highlight .w {
204-
color: #bbbbbb;
204+
color: #6c6c6c;
205205
}
206206
.highlight {
207207
background-color: transparent;

0 commit comments

Comments
 (0)