                             :items get-skins}]
                   :type :user
                   :reaction (fn [this skin]
-                              (when (:skin @styles)
-                                (dom/remove-class (dom/$ :body) (str "skin-" (:skin @styles))))
-                              (dom/add-class (dom/$ :body) (str "skin-" skin))
-                              (object/merge! styles {:skin skin})))
+                              (inject-skin skin)))
+
+(behavior ::provide-skin
+                  :desc "Style: Provide skin"
+                  :triggers #{:skins+}
+                  :type :user
+                  :params [{:label "name"} {:label "path"}]
+                  :reaction (fn [this skins name path]
+                              (assoc skins name (plugins/adjust-path path))))
 
 ;;**********************************************************
 ;; themes

                  :type :user
                  :exclusive true
                  :reaction (fn [this sel]
                              (load-theme sel)
                              (editor/set-options this {:theme sel})))

                  :type :user
                  :params [{:label "name"} {:label "path"}]
                  :reaction (fn [this themes name path]
                              (assoc themes name (plugins/adjust-path path))))

(behavior ::remove-theme
          :triggers #{:deactivated :destroy}
