class

Sunstone::Palette

Inherits Reference < Object

Constructors

new(id : String, name : String, colors : Hash(String, String))
Source

Class methods

load_all(json_content : String) : Hash(String, Palette)
Source
load_for_theme(theme_name : String, custom_palettes : Hash(String, Palette) | Nil = nil) : Hash(String, Palette)
Source

Instance methods

accent_color
Source
accent_secondary
Source
accent_tertiary
Source
bg_color

Modern Generic Theme Color Accessors

Source
bg_window

Sol.vin Retro Theme Specific Color Accessors

Source
border_active
Source
border_color
Source
code_bg
Source
colors
Source
css_rule(theme_name : String) : String

Emits CSS declaration block for custom palettes

Source
cube_color
Source
cube_hover
Source
emoji_color_matrix

Computes SVG feColorMatrix matrix for Sol.vin emoji chromatic tinting

Source
hex_to_rgb(hex : String) : Tuple(Float64, Float64, Float64)
Source
name
Source
surface_color
Source
surface_hover
Source
text_muted
Source
text_primary
Source
text_secondary
Source