struct Sixteen::Theme

Included Modules

Defined in:

sixteen.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def [](key : String) : Color #

[View source]
def [](key : Int) : Color #

[View source]
def author : String #

[View source]
def author=(author : String) #

[View source]
def context(separator : String = "-") #

The separator is configurable because the base16 spec requires names like foo-bar but some template systems don't like those


[View source]
def contrasting(key : Int) : Color #

Returns the color in the palette that contrasts better with the given color


[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def palette : Hash(String, Color) #

[View source]
def palette=(palette : Hash(String, Color)) #

[View source]
def slug : String #

[View source]
def slug=(slug : String) #

[View source]
def system : String #

[View source]
def system=(system : String) #

[View source]
def term_palette #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def variant : String #

[View source]
def variant=(variant : String) #

[View source]