diff --git a/frontend/src/app/main/data/tokenscript.cljs b/frontend/src/app/main/data/tokenscript.cljs index cfd8003430..83a09d35e8 100644 --- a/frontend/src/app/main/data/tokenscript.cljs +++ b/frontend/src/app/main/data/tokenscript.cljs @@ -79,7 +79,7 @@ Structured tokens are non-primitive token types like `typography` or `box-shadow`." [^js token-symbol] (if (instance? js/Array (.-value token-symbol)) - (mapv structured-token->penpot-map (.-value token-symbol)) + (mapv tokenscript-symbols->penpot-unit (.-value token-symbol)) (let [entries (es6-iterator-seq (.entries (.-value token-symbol)))] (into {} (map (fn [[k v :as V]] [(keyword k) (tokenscript-symbols->penpot-unit v)]) @@ -88,7 +88,7 @@ (defn tokenscript-symbols->penpot-unit [^js v] (cond (structured-token? v) (structured-token->penpot-map v) - (list-symbol? v) (tokenscript-symbols->penpot-unit (.nth 1 v)) + (list-symbol? v) (structured-token->penpot-map v) (color-symbol? v) (.-value (.to v "hex")) (rem-number-with-unit? v) (rem->px v) :else (.-value v)))