mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 23:31:21 -05:00
add some formatting
This commit is contained in:
parent
62fc2cf652
commit
75bdda6b07
3 changed files with 9 additions and 11 deletions
|
@ -35,8 +35,8 @@
|
||||||
[(keyword (:name token))
|
[(keyword (:name token))
|
||||||
{:value (:value token)
|
{:value (:value token)
|
||||||
:type (:type token)}])]
|
:type (:type token)}])]
|
||||||
(js/console.log grouped-tokens)
|
(js/console.log grouped-tokens)
|
||||||
(js/console.log map-token)
|
(js/console.log map-token)
|
||||||
{:core (into (sorted-map)
|
{:core (into (sorted-map)
|
||||||
(map (fn [[type tokens]]
|
(map (fn [[type tokens]]
|
||||||
[type
|
[type
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
(defn download-tokens-as-json []
|
(defn download-tokens-as-json []
|
||||||
(let [all-tokens (deref refs/workspace-tokens)
|
(let [all-tokens (deref refs/workspace-tokens)
|
||||||
transformed-tokens-json (transform-tokens all-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)))
|
(fb/export-tokens-file transformed-tokens-json)))
|
||||||
|
|
||||||
|
|
||||||
|
@ -192,8 +192,6 @@
|
||||||
[:div {:class (stl/css :sidebar-tab-wrapper)}
|
[:div {:class (stl/css :sidebar-tab-wrapper)}
|
||||||
[:& tokens-explorer]
|
[:& tokens-explorer]
|
||||||
[:button {:class (stl/css :download-json-button)
|
[: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]
|
[:span.separator]
|
||||||
download-icon]
|
download-icon]])
|
||||||
])
|
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@
|
||||||
.download-icon {
|
.download-icon {
|
||||||
@extend .button-icon;
|
@extend .button-icon;
|
||||||
stroke: var(--icon-foreground);
|
stroke: var(--icon-foreground);
|
||||||
width:20px;
|
width: 20px;
|
||||||
height:20px;
|
height: 20px;
|
||||||
margin-left: $s-8;
|
margin-left: $s-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,4 +86,4 @@
|
||||||
background-color: var(--button-primary-foreground-color-rest);
|
background-color: var(--button-primary-foreground-color-rest);
|
||||||
margin-left: $s-8;
|
margin-left: $s-8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
[data]
|
[data]
|
||||||
(-> data
|
(-> data
|
||||||
(clj->js)
|
(clj->js)
|
||||||
(js/JSON.stringify nil 2)))
|
(js/JSON.stringify nil 2)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue