struct

Sixteen::Theme

Inherits YAML::Serializable < Struct < Value < Object

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

[](key : String) : Color
Source
[](key : Int) : Color
Source
author
Source
author=(author : String)
Source
context(separator : String = "-")

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

Source
contrasting(key : Int) : Color

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

Source
description
Source
description=(description : String)
Source
invert_for_theme(target : Symbol) : Theme

Create a new theme with inverted colors

Source
name
Source
name=(name : String)
Source
palette
Source
palette=(palette : Hash(String, Color))
Source
slug
Source
slug=(slug : String)
Source
system
Source
system=(system : String)
Source
term_palette
Source
to_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.

Source
variant
Source
variant=(variant : String)
Source