mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
Make tokens JSON export DTCG compatible
This commit is contained in:
parent
5ca916f8c4
commit
158d5cba31
1 changed files with 2 additions and 2 deletions
|
@ -150,8 +150,8 @@
|
||||||
(defn transform-tokens-into-json-format [tokens]
|
(defn transform-tokens-into-json-format [tokens]
|
||||||
(let [global (reduce
|
(let [global (reduce
|
||||||
(fn [acc [_ {:keys [name value type]}]]
|
(fn [acc [_ {:keys [name value type]}]]
|
||||||
(assoc acc name {:value value
|
(assoc acc name {:$value value
|
||||||
:type (str/camel type)}))
|
:$type (str/camel type)}))
|
||||||
(sorted-map) tokens)]
|
(sorted-map) tokens)]
|
||||||
{:global global}))
|
{:global global}))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue