Color ramp wip

This commit is contained in:
Florian Schroedl
2024-08-29 12:52:18 +02:00
parent 0b29767c95
commit 2b886c54e0
4 changed files with 44 additions and 13 deletions

View File

@@ -193,3 +193,10 @@
:else (-> (get path-target selector)
(seq)
(boolean)))))
(defn color-token? [token]
(= (:type token) :color))
(defn resolved-value-hex [{:keys [resolved-value] :as token}]
(when (and resolved-value (color-token? token))
(str "#" resolved-value)))