Class: Rouge::Themes::Base16

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

Overview

author Chris Kempson base16 default dark https://github.com/chriskempson/base16-default-schemes

Direct Known Subclasses

Monokai, Solarized

Defined Under Namespace

Classes: Monokai, Solarized

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

token

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