Class: Jquard::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/jquard/configuration.rb

Constant Summary collapse

RUBY_RED =
{
  50 => "#fdf4f3",
  100 => "#fce7e5",
  200 => "#f9d2cf",
  300 => "#f4b0ab",
  400 => "#ec817a",
  500 => "#df574e",
  600 => "#cc342d",
  700 => "#ab2822",
  800 => "#8e2420",
  900 => "#762421",
  950 => "#400f0d"
}.freeze
PALETTES =
{ ruby: RUBY_RED }.freeze
REQUIRED_SHADES =
[ 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950 ].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



24
25
26
27
# File 'lib/jquard/configuration.rb', line 24

def initialize
  @brand_name = "Jquard"
  self.primary_color = :ruby
end

Instance Attribute Details

#brand_nameObject

Returns the value of attribute brand_name.



21
22
23
# File 'lib/jquard/configuration.rb', line 21

def brand_name
  @brand_name
end

#primary_colorObject

Returns the value of attribute primary_color.



22
23
24
# File 'lib/jquard/configuration.rb', line 22

def primary_color
  @primary_color
end

#primary_color_paletteObject (readonly)

Returns the value of attribute primary_color_palette.



22
23
24
# File 'lib/jquard/configuration.rb', line 22

def primary_color_palette
  @primary_color_palette
end