mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
Make tokens JSON export DTCG compatible
This commit is contained in:
@@ -150,8 +150,8 @@
|
||||
(defn transform-tokens-into-json-format [tokens]
|
||||
(let [global (reduce
|
||||
(fn [acc [_ {:keys [name value type]}]]
|
||||
(assoc acc name {:value value
|
||||
:type (str/camel type)}))
|
||||
(assoc acc name {:$value value
|
||||
:$type (str/camel type)}))
|
||||
(sorted-map) tokens)]
|
||||
{:global global}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user