Skip to content

Commit

Permalink
Update code highlighting color scheme (#2496)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Siddhant-K-code authored Jun 14, 2024
1 parent bfaceff commit 66641c6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/ocamlorg_frontend/css/other/syntax.css
Original file line number Diff line number Diff line change
@@ -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;
}


Expand Down

0 comments on commit 66641c6

Please sign in to comment.