From 1f88c8288a1361f214978dc328654e5d0128e7f1 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Mon, 29 Jul 2024 11:08:15 +0200 Subject: [PATCH] Parse double to preserve opacity --- frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index 1944abe10..738cdbc1e 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -89,7 +89,7 @@ (let [resolved-tokens (reduce (fn [acc ^js cur] (let [value (.-value cur) - resolved-value (d/parse-integer (.-value cur)) + resolved-value (d/parse-double (.-value cur)) original-value (-> cur .-original .-value) id (uuid (.-uuid (.-id cur))) missing-reference? (and (not resolved-value)