0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Add workspace-tokens helper

This commit is contained in:
Florian Schroedl 2024-06-12 17:14:34 +02:00
parent 9bc48a3a1a
commit 965da83c97

View file

@ -111,6 +111,12 @@
(reset! tokens-state resolved-tokens))))))))
@tokens-state))
(defn use-resolved-workspace-tokens
([] (use-resolved-tokens nil))
([options]
(-> (mf/deref refs/workspace-tokens)
(use-resolved-tokens options))))
;; Testing ---------------------------------------------------------------------
(defn tokens-studio-example []