Module: Gemlings::UI::Styles

Defined in:
lib/gemlings/ui.rb

Class Method Summary collapse

Class Method Details

.dim ⇒ Object



57
58
59
# File 'lib/gemlings/ui.rb', line 57

def self.dim
  @dim ||= Lipgloss::Style.new.faint(true)
end

.error ⇒ Object



51
52
53
54
55
# File 'lib/gemlings/ui.rb', line 51

def self.error
  @error ||= Lipgloss::Style.new
    .bold(true)
    .foreground("#FF0000")
end

.error_dot ⇒ Object



70
71
72
# File 'lib/gemlings/ui.rb', line 70

def self.error_dot
  @error_dot ||= Lipgloss::Style.new.foreground("#FF0000")
end

.final_answer ⇒ Object



45
46
47
48
49
# File 'lib/gemlings/ui.rb', line 45

def self.final_answer
  @final_answer ||= Lipgloss::Style.new
    .bold(true)
    .foreground("#2EC4B6")
end

.label ⇒ Object



26
27
28
# File 'lib/gemlings/ui.rb', line 26

def self.label
  @label ||= Lipgloss::Style.new.faint(true)
end

.plan_box ⇒ Object



38
39
40
41
42
43
# File 'lib/gemlings/ui.rb', line 38

def self.plan_box
  @plan_box ||= Lipgloss::Style.new
    .border(:rounded)
    .border_foreground("#FF9F1C")
    .padding(0, 2)
end

.plan_label ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gemlings/ui.rb', line 30

def self.plan_label
  @plan_label ||= Lipgloss::Style.new
    .bold(true)
    .foreground("#011627")
    .background("#FF9F1C")
    .padding(0, 1)
end

.spinner_style ⇒ Object



61
62
63
64
# File 'lib/gemlings/ui.rb', line 61

def self.spinner_style
  @spinner_style ||= Lipgloss::Style.new
    .foreground("#7B61FF")
end

.success_dot ⇒ Object



66
67
68
# File 'lib/gemlings/ui.rb', line 66

def self.success_dot
  @success_dot ||= Lipgloss::Style.new.foreground("#00CC00")
end