class Rouge::Themes::Github
Constants
- P_BLUE_1
- P_BLUE_2
- P_BLUE_5
- P_BLUE_6
- P_BLUE_8
- P_GRAY_0
- P_GRAY_1
- P_GRAY_3
- P_GRAY_5
- P_GRAY_8
- P_GRAY_9
- P_GREEN_0
- P_GREEN_1
- P_GREEN_6
- P_GREEN_8
- P_ORANGE_2
- P_ORANGE_6
- P_PURPLE_2
- P_PURPLE_5
- P_RED_0
Primer primitives github.com/primer/primitives/tree/main/src/tokens
- P_RED_3
- P_RED_5
- P_RED_7
- P_RED_8
Public Class Methods
dark!()
click to toggle source
# File lib/rouge/themes/github.rb, line 42 def self.dark! mode :light # indicate that there is a light variant mode! :dark end
light!()
click to toggle source
# File lib/rouge/themes/github.rb, line 37 def self.light! mode :dark # indicate that there is a dark variant mode! :light end
make_dark!()
click to toggle source
# File lib/rouge/themes/github.rb, line 47 def self.make_dark! palette :comment => P_GRAY_3[@mode] palette :constant => P_BLUE_2[@mode] palette :entity => P_PURPLE_2[@mode] palette :heading => P_BLUE_5[@mode] palette :keyword => P_RED_3[@mode] palette :string => P_BLUE_1[@mode] palette :tag => P_GREEN_1[@mode] palette :variable => P_ORANGE_2[@mode] palette :fgDefault => P_GRAY_1[@mode] palette :bgDefault => P_GRAY_8[@mode] palette :fgInserted => P_GREEN_0[@mode] palette :bgInserted => P_GREEN_8[@mode] palette :fgDeleted => P_RED_0[@mode] palette :bgDeleted => P_RED_8[@mode] palette :fgError => P_GRAY_0[@mode] palette :bgError => P_RED_7[@mode] end
make_light!()
click to toggle source
# File lib/rouge/themes/github.rb, line 70 def self.make_light! palette :comment => P_GRAY_5[@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 :variable => P_ORANGE_6[@mode] palette :fgDefault => P_GRAY_9[@mode] palette :bgDefault => P_GRAY_0[@mode] palette :fgInserted => P_GREEN_6[@mode] palette :bgInserted => P_GREEN_0[@mode] palette :fgDeleted => P_RED_7[@mode] palette :bgDeleted => P_RED_0[@mode] palette :fgError => P_GRAY_0[@mode] palette :bgError => P_RED_7[@mode] end