0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Add testing block

This commit is contained in:
Florian Schroedl 2024-11-08 09:58:42 +01:00
parent a757556e9c
commit 072cec7a22

View file

@ -128,6 +128,24 @@
(.buildAllPlatforms "json")
(p/then #(.-allTokens ^js %)))))
(comment
(-> (StyleDictionary. default-config)
(enable-debug)
(add-tokens {"foo" (ctob/make-token :type :border-radius
:value "12px"
:name "foo")
"bar" (ctob/make-token :type :border-radius
:value "{foo} * 2"
:name "foo")
"color" (ctob/make-token :type :color
:value "red"
:name "color")})
(build-dictionary)
(p/finally (fn [x err]
(js/console.log "x err" x err))))
nil)
(defn resolve-tokens-tree+
([tokens-tree get-token]
(resolve-tokens-tree+ tokens-tree get-token (StyleDictionary. default-config)))