Class: Rouge::Themes::Base16

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

Overview

default base16 theme by Chris Kempson (chriskempson.com)

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!

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



34
35
36
37
# File 'lib/rouge/themes/base16.rb', line 34

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

.light!Object



29
30
31
32
# File 'lib/rouge/themes/base16.rb', line 29

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

.make_dark!Object



39
40
41
# File 'lib/rouge/themes/base16.rb', line 39

def self.make_dark!
  style Text, :fg => :base05, :bg => :base00
end

.make_light!Object



43
44
45
# File 'lib/rouge/themes/base16.rb', line 43

def self.make_light!
  style Text, :fg => :base02
end