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

Make tokens JSON export DTCG compatible

This commit is contained in:
Akshay Gupta 2024-06-26 12:32:07 +05:30
parent 5ca916f8c4
commit 158d5cba31
No known key found for this signature in database

View file

@ -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}))