feat: merge a new light theme

This commit is contained in:
charlie
2020-12-11 17:58:19 +08:00
parent 0492b28235
commit 6af12a4faf
6 changed files with 243 additions and 117 deletions

View File

@@ -4,7 +4,7 @@
(rum/defc container
[{:keys [theme on-click] :as props} child]
(rum/use-effect! #(-> js/document.documentElement
(.setAttribute "data-theme" theme))
(.setAttribute "data-theme" (if (= theme "white") "light" theme)))
[theme])
[:div
{:class (str theme "-theme")