Skip to content

Commit

Permalink
Improve color palette for code examples
Browse files Browse the repository at this point in the history
- comments are now dark green instead of gray

- method invocations are now dark blue instead of dark green

These changes have been checked with the WAVE Evaluation Tool extension
in Google Chrome.

See ##3071
  • Loading branch information
sbrannen committed May 7, 2023
1 parent 174128d commit 3ab4d51
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class JUnit < CSSTheme
P_BLUE_2 = {:dark => '#79c0ff'}
P_BLUE_5 = {:dark => '#1f6feb'}
P_BLUE_6 = {:light => '#0550ae'}
P_BLUE_7 = {:light => '#055099'}
P_BLUE_8 = {:light => '#0a3069'}
P_PURPLE_2 = {:dark => '#d2a8ff'}
P_PURPLE_5 = {:light => '#8250df'}
Expand Down Expand Up @@ -68,13 +69,13 @@ def self.make_dark!
end

def self.make_light!
palette :comment => P_GRAY_5[@mode]
palette :comment => P_GREEN_6[@mode]
palette :constant => P_BLUE_6[@mode]
palette :entity => P_PURPLE_5[@mode]
palette :heading => P_BLUE_6[@mode]
palette :keyword => P_RED_5[@mode]
palette :string => P_BLUE_8[@mode]
palette :tag => P_GREEN_6[@mode]
palette :tag => P_BLUE_7[@mode]
palette :variable => P_ORANGE_6[@mode]

palette :fgDefault => P_GRAY_9[@mode]
Expand Down

0 comments on commit 3ab4d51

Please sign in to comment.