struct Sixteen::Theme
- Sixteen::Theme
- Struct
- Value
- Object
Included Modules
- YAML::Serializable
Defined in:
sixteen.crConstructors
Instance Method Summary
- #[](key : String) : Color
- #[](key : Int) : Color
- #author : String
- #author=(author : String)
-
#context(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 : String
- #description=(description : String)
- #name : String
- #name=(name : String)
- #palette : Hash(String, Color)
- #palette=(palette : Hash(String, Color))
- #slug : String
- #slug=(slug : String)
- #system : String
- #system=(system : String)
- #term_palette
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #variant : String
- #variant=(variant : String)
Constructor Detail
Instance Method Detail
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
Returns the color in the palette that contrasts better with the given color
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
.