mirror of
https://github.com/penpot/penpot.git
synced 2025-12-23 22:48:40 -05:00
Add theme creation
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
:name "Token Set"
|
||||
:tokens []}
|
||||
token-set)]
|
||||
(ptk/reify ::update-create-token
|
||||
(ptk/reify ::create-token-set
|
||||
ptk/WatchEvent
|
||||
(watch [it _ _]
|
||||
(let [changes (-> (pcb/empty-changes it)
|
||||
|
||||
@@ -155,10 +155,14 @@
|
||||
:flex-direction "column"
|
||||
:gap "10px"}}
|
||||
[:& labeled-input {:label "Group name"
|
||||
:input-props {:value @group}}]
|
||||
:input-props {:value @group
|
||||
:on-change #(reset! group (dom/event->value %))}}]
|
||||
[:& labeled-input {:label "Theme name"
|
||||
:input-props {:value @name}}]
|
||||
[:button "Create"]]))
|
||||
:input-props {:value @name
|
||||
:on-change #(reset! name (dom/event->value %))}}]
|
||||
[:button {:on-click #(st/emit! (wdt/create-token-theme {:group @group
|
||||
:name @name}))}
|
||||
"Create"]]))
|
||||
|
||||
(mf/defc token-sets
|
||||
[_props]
|
||||
|
||||
Reference in New Issue
Block a user