Sha256: 1e9016bb857d5088d6bb4ede3400136eb3715f5fce091de7dd4dd1b0a7739af9

Contents?: true

Size: 1.53 KB

Versions: 5

Compression:

Stored size: 1.53 KB

Contents

module ActiveFrontendHelper

  def colors(opacity = 1)
    {
      transparent: { rgba: "rgba(0,0,0,0)", hex: '#FFFFFF' },
      dark_black: { rgba: "rgba(32,42,58,#{opacity})", hex: '#202A3A' },
      black: { rgba: "rgba(39,52,68,#{opacity})", hex: '#273444' },
      light_black: { rgba: "rgba(48,64,80,#{opacity})", hex: '#304050' },
      dark_gray: { rgba: "rgba(108,126,144,#{opacity})",  hex: '#6C7E90' },
      gray: { rgba: "rgba(130,146,164,#{opacity})", hex: '#8292A4' },
      light_gray: { rgba: "rgba(153,166,181,#{opacity})", hex: '#99A6B5' },
      dark_haze: { rgba: "rgba(228,231,238,#{opacity})", hex: '#E4E7EE' },
      haze: { rgba: "rgba(238,240,246,#{opacity})", hex: '#EEF0F6' },
      light_haze: { rgba: "rgba(249,250,252,#{opacity})", hex: '#F9FAFC' },
      white: { rgba: "rgba(255,255,255,#{opacity})", hex: '#FFFFFF' },
      lime: { rgba: "rgba(154,191,91,#{opacity})", hex: '#9ABF5B' },
      green: { rgba: "rgba(50,194,81,#{opacity})", hex: '#32C251' },
      teal: { rgba: "rgba(55,186,212,#{opacity})", hex: '#37BAD4' },
      blue: { rgba: "rgba(36,126,236,#{opacity})", hex: '#247EEC' },
      indigo: { rgba: "rgba(126,97,234,#{opacity})", hex: '#7E61EA' },
      purple: { rgba: "rgba(173,101,228,#{opacity})", hex: '#AD65E4' },
      pink: { rgba: "rgba(241,93,121,#{opacity})", hex: '#F15D79' },
      red: { rgba: "rgba(221,61,63,#{opacity})", hex: '#DD3D3F' },
      orange: { rgba: "rgba(234,133,50,#{opacity})", hex: '#EA8532' },
      yellow: { rgba: "rgba(242,203,36,#{opacity})", hex: '#F2CB24' }
    }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_frontend-14.0.40 app/helpers/active_frontend_helper.rb
active_frontend-14.0.39 app/helpers/active_frontend_helper.rb
active_frontend-14.0.38 app/helpers/active_frontend_helper.rb
active_frontend-14.0.37 app/helpers/active_frontend_helper.rb
active_frontend-14.0.36 app/helpers/active_frontend_helper.rb