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:
parent
5ca916f8c4
commit
158d5cba31
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue