class Playbook::PbTitle::Title

def classname

def classname
  if is_size_responsive
    generate_classname("pb_title_kit", variant, color, is_bold) + generate_responsive_size_classname
  else
    generate_classname("pb_title_kit", size, variant, color, is_bold)
  end
end

def generate_responsive_size_classname

def generate_responsive_size_classname
  css = ""
  if is_size_responsive
    size.each do |key, value|
      css += " pb_title_kit_#{key}_#{value}"
    end
  end
  css unless css.blank?
end

def is_bold

def is_bold
  bold ? nil : "thin"
end

def is_size_responsive

def is_size_responsive
  try(:size).is_a?(::Hash)
end