def apply_previewer_style(theme)
        target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-published.less')
        File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }
        reset_previewer_style
      end
def apply_previewer_style(theme)
        target = Rails.root.join('frontend', 'src','app','stylesheets','theme-previewer-published.less')
        File.open(target, 'w') { |f| f.write(theme_to_less(theme)) }
        reset_previewer_style
      end
Save style to theme-previewer-published.less and discard theme-previewer-tmp.less