Class: Rouge::Themes::Base16
- Inherits:
-
CSSTheme
- Object
- Rouge::Theme
- CSSTheme
- Rouge::Themes::Base16
- Extended by:
- HasModes
- Defined in:
- lib/rouge/themes/base16.rb
Overview
author Chris Kempson base16 default dark https://github.com/chriskempson/base16-default-schemes
Defined Under Namespace
Constant Summary
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!, set_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, #name, #palette, palette, register, registry, render, style, #styles, styles
Methods included from Rouge::Token::Tokens
Constructor Details
This class inherits a constructor from Rouge::CSSTheme
Class Method Details
.dark! ⇒ Object
36 37 38 39 |
# File 'lib/rouge/themes/base16.rb', line 36 def self.dark! mode :light # indicate that there is a light variant mode! :dark end |
.light! ⇒ Object
31 32 33 34 |
# File 'lib/rouge/themes/base16.rb', line 31 def self.light! mode :dark # indicate that there is a dark variant mode! :light end |
.make_dark! ⇒ Object
41 42 43 |
# File 'lib/rouge/themes/base16.rb', line 41 def self.make_dark! style Text, :fg => :base05, :bg => :base00 end |
.make_light! ⇒ Object
45 46 47 |
# File 'lib/rouge/themes/base16.rb', line 45 def self.make_light! style Text, :fg => :base02 end |