Sixteen::Theme
Inherits YAML::Serializable < Struct < Value < Object
Constructors
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Sourcenew
Sourcenew(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
[](key : String) : Color
Source[](key : Int) : Color
Sourceauthor
Sourceauthor=(author : String)
Sourcecontext(separator : String = "-")
The separator is configurable because the base16 spec
requires names like foo-bar but some template systems
don't like those
contrasting(key : Int) : Color
Returns the color in the palette that contrasts better with the given color
description
Sourcedescription=(description : String)
Sourcename
Sourcename=(name : String)
Sourcepalette
Sourcepalette=(palette : Hash(String, Color))
Sourceslug
Sourceslug=(slug : String)
Sourcesystem
Sourcesystem=(system : String)
Sourceterm_palette
Sourceto_s
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.
variant
Sourcevariant=(variant : String)
Source