Class: Rouge::Themes::Gruvbox

Inherits:
CSSTheme show all
Extended by:
HasModes
Defined in:
lib/rouge/themes/gruvbox.rb

Overview

Constant Summary collapse

C_dark0_hard =

global Gruvbox colours {{{

'#1d2021'
C_dark0 =
'#282828'
C_dark0_soft =
'#32302f'
C_dark1 =
'#3c3836'
C_dark2 =
'#504945'
C_dark3 =
'#665c54'
C_dark4 =
'#7c6f64'
C_dark4_256 =
'#7c6f64'
C_gray_245 =
'#928374'
C_gray_244 =
'#928374'
C_light0_hard =
'#f9f5d7'
C_light0 =
'#fbf1c7'
C_light0_soft =
'#f2e5bc'
C_light1 =
'#ebdbb2'
C_light2 =
'#d5c4a1'
C_light3 =
'#bdae93'
C_light4 =
'#a89984'
C_light4_256 =
'#a89984'
C_bright_red =
'#fb4934'
C_bright_green =
'#b8bb26'
C_bright_yellow =
'#fabd2f'
C_bright_blue =
'#83a598'
C_bright_purple =
'#d3869b'
C_bright_aqua =
'#8ec07c'
C_bright_orange =
'#fe8019'
C_neutral_red =
'#cc241d'
C_neutral_green =
'#98971a'
C_neutral_yellow =
'#d79921'
C_neutral_blue =
'#458588'
C_neutral_purple =
'#b16286'
C_neutral_aqua =
'#689d6a'
C_neutral_orange =
'#d65d0e'
C_faded_red =
'#9d0006'
C_faded_green =
'#79740e'
C_faded_yellow =
'#b57614'
C_faded_blue =
'#076678'
C_faded_purple =
'#8f3f71'
C_faded_aqua =
'#427b58'
C_faded_orange =
'#af3a03'

Constants included from Rouge::Token::Tokens

Rouge::Token::Tokens::Num, Rouge::Token::Tokens::Str

Class Method Summary collapse

Methods included from HasModes

get_mode, mode, mode!

Methods inherited from CSSTheme

#initialize, #render, #render_base, #style_for

Methods inherited from Rouge::Theme

base_style, find, #get_own_style, get_own_style, get_style, #get_style, name, palette, #palette, registry, render, style, styles, #styles

Methods included from Rouge::Token::Tokens

token

Constructor Details

This class inherits a constructor from Rouge::CSSTheme

Class Method Details

.dark!Object



66
67
68
69
# File 'lib/rouge/themes/gruvbox.rb', line 66

def self.dark!
  mode :light # indicate that there is a light variant
  mode! :dark
end

.light!Object



61
62
63
64
# File 'lib/rouge/themes/gruvbox.rb', line 61

def self.light!
  mode :dark # indicate that there is a dark variant
  mode! :light
end

.make_dark!Object



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/rouge/themes/gruvbox.rb', line 71

def self.make_dark!
  palette bg0: C_dark0
  palette bg1: C_dark1
  palette bg2: C_dark2
  palette bg3: C_dark3
  palette bg4: C_dark4

  palette gray: C_gray_245

  palette fg0: C_light0
  palette fg1: C_light1
  palette fg2: C_light2
  palette fg3: C_light3
  palette fg4: C_light4

  palette fg4_256: C_light4_256

  palette red: C_bright_red
  palette green: C_bright_green
  palette yellow: C_bright_yellow
  palette blue: C_bright_blue
  palette purple: C_bright_purple
  palette aqua: C_bright_aqua
  palette orange: C_bright_orange

end

.make_light!Object



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/rouge/themes/gruvbox.rb', line 98

def self.make_light!
  palette bg0: C_light0
  palette bg1: C_light1
  palette bg2: C_light2
  palette bg3: C_light3
  palette bg4: C_light4

  palette gray: C_gray_244

  palette fg0: C_dark0
  palette fg1: C_dark1
  palette fg2: C_dark2
  palette fg3: C_dark3
  palette fg4: C_dark4

  palette fg4_256: C_dark4_256

  palette red: C_faded_red
  palette green: C_faded_green
  palette yellow: C_faded_yellow
  palette blue: C_faded_blue
  palette purple: C_faded_purple
  palette aqua: C_faded_aqua
  palette orange: C_faded_orange
end