Skip to content

Commit 66641c6

Browse files
Update code highlighting color scheme (#2496)
Updates the code highlighting color scheme in `src/ocamlorg_frontend/css/other/syntax.css` to a new set of colors based on community voting and WCAG contrast requirements. - Changes color values for `keyword`, `constant`, `function-binding`, `variable`, `support`, `comment`, `literal`, `string`, and `numeric` classes to new, WCAG-compliant colors. - Maintains the existing diff-related styles without changes.
1 parent bfaceff commit 66641c6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/ocamlorg_frontend/css/other/syntax.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
span[class*="keyword"] {
2-
color: #fede5d;
2+
color: #879A39;
33
}
44

55
span[class*="constant"] {
6-
color: #fabd2f;
6+
color: #D0A215;
77
}
88

99
span[class*="function-binding"] {
10-
color: #36f9f6;
10+
color: #DA702C;
1111
}
1212

1313
span[class*="variable"] {
14-
color: #85ebeb;
14+
color: #4385BE;
1515
font-style: italic;
1616
}
1717

1818
span[class*="support"] {
19-
color: #83a598;
19+
color: #0184BC;
2020
}
2121

2222
span[class*="comment"] {
23+
color: #6F6E69;
2324
font-style: italic;
2425
}
2526

2627
span[class*="literal"] {
27-
color: #d3869b;
28+
color: #50A14F;
2829
}
2930

3031
span[class*="string"] {
31-
color: #b8bb26;
32+
color: #3AA99F;
3233
}
3334

3435
span[class*="numeric"] {
35-
color: #ff5683;
36+
color: #8B7EC8;
3637
}
3738

3839

0 commit comments

Comments
 (0)