0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

add some formatting

This commit is contained in:
Akshay Gupta 2024-06-23 00:16:15 +05:30
parent 62fc2cf652
commit 75bdda6b07
No known key found for this signature in database
3 changed files with 9 additions and 11 deletions

View file

@ -35,8 +35,8 @@
[(keyword (:name token))
{:value (:value token)
:type (:type token)}])]
(js/console.log grouped-tokens)
(js/console.log map-token)
(js/console.log grouped-tokens)
(js/console.log map-token)
{:core (into (sorted-map)
(map (fn [[type tokens]]
[type
@ -47,7 +47,7 @@
(defn download-tokens-as-json []
(let [all-tokens (deref refs/workspace-tokens)
transformed-tokens-json (transform-tokens all-tokens)]
(js/console.log transformed-tokens-json)
(js/console.log transformed-tokens-json)
(fb/export-tokens-file transformed-tokens-json)))
@ -192,8 +192,6 @@
[:div {:class (stl/css :sidebar-tab-wrapper)}
[:& tokens-explorer]
[:button {:class (stl/css :download-json-button)
:on-click download-tokens-as-json} "Download Tokens as JSON"
:on-click download-tokens-as-json} "Download Tokens as JSON"
[:span.separator]
download-icon]
])
download-icon]])

View file

@ -75,8 +75,8 @@
.download-icon {
@extend .button-icon;
stroke: var(--icon-foreground);
width:20px;
height:20px;
width: 20px;
height: 20px;
margin-left: $s-8;
}
@ -86,4 +86,4 @@
background-color: var(--button-primary-foreground-color-rest);
margin-left: $s-8;
}
}
}

View file

@ -22,4 +22,4 @@
[data]
(-> data
(clj->js)
(js/JSON.stringify nil 2)))
(js/JSON.stringify nil 2)))