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 (http://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!, 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


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

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

.light!Object


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

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

.make_dark!Object


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

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

.make_light!Object


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

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