Sha256: 05a09aee949f78ab89c953175186d97968443939cfce6bbe1edde064ab16294e

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

module Pwb
  # https://github.com/zilkey/active_hash
  class PresetStyle < ActiveJSON::Base
    set_root_path "#{Pwb::Engine.root}/config/preset_styles"
    use_multiple_files
    set_filenames "purple_teal", "green_amber"
    # , "green_light"

    def class_name(element_name)
      self[:associations][element_name] || ""
    end

    def self.default_values
      Pwb::PresetStyle.first.attributes.as_json
    end
  end
end
# purple teal
# $primary-color-dark:   #7B1FA2
# $primary-color:        #9C27B0
# $primary-color-light:  #E1BEE7
# $primary-color-text:   #FFFFFF
# $accent-color:         #009688
# $primary-text-color:   #212121
# $secondary-text-color: #757575
# $divider-color:        #BDBDBD

# /* Palette generated by Material Palette - materialpalette.com/green/amber */

# $primary-color-dark:   #388E3C
# $primary-color:        #4CAF50
# $primary-color-light:  #C8E6C9
# $primary-color-text:   #FFFFFF
# $accent-color:         #FFC107
# $primary-text-color:   #212121
# $secondary-text-color: #757575
# $divider-color:        #BDBDBD

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pwb-1.4.0 app/models/pwb/preset_style.rb