mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Color ramp wip
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user