0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

Convert keyword color representation into string.

This commit is contained in:
Andrey Antukh 2015-12-24 19:34:13 +02:00
parent 2323e8f1c7
commit 16249ccd63
2 changed files with 29 additions and 29 deletions

View file

@ -43,4 +43,3 @@
([schema data] ([schema data]
(when-let [errors (validate schema data)] (when-let [errors (validate schema data)]
(throw (ex-info "Invalid data" errors))))) (throw (ex-info "Invalid data" errors)))))

View file

@ -3,37 +3,38 @@
(def ^:static +color-collections+ (def ^:static +color-collections+
[{:name "Generic 1" [{:name "Generic 1"
:id 1 :id 1
:colors #{:00f9ff :builtin true
:009fff :colors #{"#00f9ff"
:0078ff "#009fff"
:005eff "#0078ff"
:0900ff "#005eff"
:7502f1 "#0900ff"
:ffe705 "#7502f1"
:00ffab "#ffe705"
:f52105 "#00ffab"
"#f52105"
}} }}
{:name "Generic 2" {:name "Generic 2"
:id 2 :id 2
:colors #{:20f9ff :builtin true
:209fff :colors #{"#20f9ff"
:2078ff "#209fff"
:205eff "#2078ff"
:2900ff "#205eff"
:3502f1 "#2900ff"
:3fe705 "#3502f1"
:30ffab "#3fe705"
:352105 "#30ffab"
"#352105"
:209f20 "#209f20"
:207820 "#207820"
:205e20 "#205e20"
:290020 "#290020"
:350220 "#350220"
:3fe720 "#3fe720"
:30ff20 "#30ff20"
:352120 "#352120"
:352140 "#352140"
}}]) }}])
(def ^:static +color-collections-by-id+ (def ^:static +color-collections-by-id+