class

Opal::ThemeBuilder

Inherits Reference < Object

Fluent Builder DSL for defining custom themes with auto-derivation and validation

Constructors

new(name : String)
Source

Instance methods

accent(c : Color | String | Symbol) : self
Source
accent
Source
accent=(accent : Color | Nil)
Source
background(c : Color | String | Symbol) : self
Source
background
Source
background=(background : Color | Nil)
Source
border(c : Color | String | Symbol) : self
Source
border
Source
border=(border : Color | Nil)
Source
borders

Nested borders block

Source
box_border(b : Border | Symbol | String) : self
Source
box_border
Source
box_border=(box_border : Border)
Source
build

Compiles and auto-completes missing values

Source
colors

Nested colors block

Source
danger(c : Color | String | Symbol) : self
Source
danger
Source
danger=(danger : Color | Nil)
Source
glyphs
Source
glyphs
Source
glyphs=(glyphs : GlyphSet)
Source
info(c : Color | String | Symbol) : self
Source
info
Source
info=(info : Color | Nil)
Source
name
Source
name=(name : String)
Source
primary(c : Color | String | Symbol) : self

Fluent setter methods

Source
primary
Source
primary=(primary : Color | Nil)
Source
secondary(c : Color | String | Symbol) : self
Source
secondary
Source
secondary=(secondary : Color | Nil)
Source
success(c : Color | String | Symbol) : self
Source
success
Source
success=(success : Color | Nil)
Source
surface(c : Color | String | Symbol) : self
Source
surface
Source
surface=(surface : Color | Nil)
Source
text(c : Color | String | Symbol) : self
Source
text
Source
text=(text : Color | Nil)
Source
text_muted(c : Color | String | Symbol) : self
Source
text_muted
Source
text_muted=(text_muted : Color | Nil)
Source
warning(c : Color | String | Symbol) : self
Source
warning
Source
warning=(warning : Color | Nil)
Source
window_border(b : Border | Symbol | String) : self
Source
window_border
Source
window_border=(window_border : Border)
Source