class Noir::Theme

Included Modules

Direct Known Subclasses

Defined in:

noir/theme.cr

Constructors

Class Method Summary

Instance Method Summary

Class methods inherited from module Noir::Tokens

each_token(&) each_token

Constructor Detail

def self.new(scope : String = ".highlight") #

[View source]

Class Method Detail

def self.base_style : Style #

[View source]
def self.name(name : Nil | String) #

[View source]
def self.name : String #

[View source]
def self.name? : String | Nil #

[View source]
def self.palette(color_name, color) #

[View source]
def self.palette(color_name) #

[View source]
def self.style(*tokens, fore = nil, back = nil, bold = false, italic = false, underline = false) #

[View source]
def self.style_for(token : Token) #

[View source]

Instance Method Detail

def base_style #

[View source]
def style_for(token) #

[View source]
def to_s(io) #

[View source]