mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
Add workspace-tokens helper
This commit is contained in:
parent
9bc48a3a1a
commit
965da83c97
1 changed files with 6 additions and 0 deletions
|
@ -111,6 +111,12 @@
|
||||||
(reset! tokens-state resolved-tokens))))))))
|
(reset! tokens-state resolved-tokens))))))))
|
||||||
@tokens-state))
|
@tokens-state))
|
||||||
|
|
||||||
|
(defn use-resolved-workspace-tokens
|
||||||
|
([] (use-resolved-tokens nil))
|
||||||
|
([options]
|
||||||
|
(-> (mf/deref refs/workspace-tokens)
|
||||||
|
(use-resolved-tokens options))))
|
||||||
|
|
||||||
;; Testing ---------------------------------------------------------------------
|
;; Testing ---------------------------------------------------------------------
|
||||||
|
|
||||||
(defn tokens-studio-example []
|
(defn tokens-studio-example []
|
||||||
|
|
Loading…
Reference in a new issue