From 66641c681c5f2f75964bacfc2ffe9ca73051302e Mon Sep 17 00:00:00 2001 From: Siddhant Khare Date: Fri, 14 Jun 2024 06:09:21 +0530 Subject: [PATCH] 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. --- src/ocamlorg_frontend/css/other/syntax.css | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/ocamlorg_frontend/css/other/syntax.css b/src/ocamlorg_frontend/css/other/syntax.css index 8e682a0027..67d1288320 100644 --- a/src/ocamlorg_frontend/css/other/syntax.css +++ b/src/ocamlorg_frontend/css/other/syntax.css @@ -1,38 +1,39 @@ span[class*="keyword"] { - color: #fede5d; + color: #879A39; } span[class*="constant"] { - color: #fabd2f; + color: #D0A215; } span[class*="function-binding"] { - color: #36f9f6; + color: #DA702C; } span[class*="variable"] { - color: #85ebeb; + color: #4385BE; font-style: italic; } span[class*="support"] { - color: #83a598; + color: #0184BC; } span[class*="comment"] { + color: #6F6E69; font-style: italic; } span[class*="literal"] { - color: #d3869b; + color: #50A14F; } span[class*="string"] { - color: #b8bb26; + color: #3AA99F; } span[class*="numeric"] { - color: #ff5683; + color: #8B7EC8; }