mirror of https://github.com/penpot/penpot.git
Make tokens JSON export DTCG compatible
This commit is contained in:
parent
5ca916f8c4
commit
158d5cba31
|
|
@ -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}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue