Class: Rouge::Themes::Base16
- Inherits:
-
CSSTheme
- Object
- Rouge::Theme
- CSSTheme
- Rouge::Themes::Base16
- Extended by:
- HasModes
- Defined in:
- lib/rouge/themes/base16.rb
Overview
default base16 theme by Chris Kempson (chriskempson.com)
Defined Under Namespace
Class Method Summary collapse
Methods included from HasModes
Methods inherited from CSSTheme
#initialize, #render, #style_for
Methods inherited from Rouge::Theme
find, get_own_style, get_style, name, palette, registry, render, style, #styles, styles
Constructor Details
This class inherits a constructor from Rouge::CSSTheme
Class Method Details
.dark! ⇒ Object
32 33 34 35 |
# File 'lib/rouge/themes/base16.rb', line 32 def self.dark! mode :light # indicate that there is a light variant mode! :dark end |
.light! ⇒ Object
27 28 29 30 |
# File 'lib/rouge/themes/base16.rb', line 27 def self.light! mode :dark # indicate that there is a dark variant mode! :light end |
.make_dark! ⇒ Object
37 38 39 |
# File 'lib/rouge/themes/base16.rb', line 37 def self.make_dark! style 'Text', :fg => :base05, :bg => :base00 end |
.make_light! ⇒ Object
41 42 43 |
# File 'lib/rouge/themes/base16.rb', line 41 def self.make_light! style 'Text', :fg => :base02 end |