primary
SourceOpal::Theme
Represents a semantic color and styling theme for consistent, accessible TUI interfaces.
Constructors
Declarative Theme Builder DSL entry point
catppuccin_latte
Sourcecatppuccin_mocha
Sourcecurrent
Sourcecyberpunk
Sourcedefault
Sourcedracula
SourceGenerates a balanced, harmonious theme from a single brand color and dark/light mode
gruvbox
Sourcehigh_contrast
Sourcemonokai
Sourcenew(name : String, primary : Color, secondary : Color, accent : Color, background : Color, surface : Color, text : Color, text_muted : Color, border : Color, success : Color, warning : Color, danger : Color, info : Color, window_border : Border = Border.rounded, box_border : Border = Border.rounded, glyphs : GlyphSet = GlyphSet.new)
Sourcenord
Sourceregister(theme : Theme) : Theme
Sourcesolarized_dark
Sourcetokyo_night
SourceClass methods
all
SourceInstance methods
accent
Sourceaccent=(accent : Color)
Sourcebackground
Sourcebackground=(background : Color)
Sourceborder
Sourceborder=(border : Color)
Sourcebox_border
Sourcebox_border=(box_border : Border)
Sourcedanger
Sourcedanger=(danger : Color)
Sourcederive(name : String, primary : Color | String | Symbol | Nil = nil, secondary : Color | String | Symbol | Nil = nil, accent : Color | String | Symbol | Nil = nil, background : Color | String | Symbol | Nil = nil, surface : Color | String | Symbol | Nil = nil, text : Color | String | Symbol | Nil = nil, text_muted : Color | String | Symbol | Nil = nil, border : Color | String | Symbol | Nil = nil, success : Color | String | Symbol | Nil = nil, warning : Color | String | Symbol | Nil = nil, danger : Color | String | Symbol | Nil = nil, info : Color | String | Symbol | Nil = nil, window_border : Border | Symbol | String | Nil = nil, box_border : Border | Symbol | String | Nil = nil, glyphs : GlyphSet | Nil = nil) : Theme
Returns a new theme derived from this theme with selective overrides
Adjusts text and primary contrast against background to satisfy minimum WCAG ratio
glyphs
Sourceglyphs=(glyphs : GlyphSet)
Sourceinfo
Sourceinfo=(info : Color)
Sourcename
Sourceprimary=(primary : Color)
Sourcesecondary
Sourcesecondary=(secondary : Color)
Sourcesuccess
Sourcesuccess=(success : Color)
Sourcesurface
Sourcesurface=(surface : Color)
Sourcetext
Sourcetext=(text : Color)
Sourcetext_muted
Sourcetext_muted=(text_muted : Color)
Sourcewarning
Sourcewarning=(warning : Color)
Sourcewindow_border
Sourcewindow_border=(window_border : Border)
Source