0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 00:28:20 -05:00
penpot/frontend/uxbox/ui/dashboard/builtins.cljs

44 lines
1,003 B
Text
Raw Normal View History

(ns uxbox.ui.dashboard.builtins)
2015-12-21 19:16:39 +02:00
(def ^:static +color-collections+
[{:name "Generic 1"
:id 1
:builtin true
:colors #{"#00f9ff"
"#009fff"
"#0078ff"
"#005eff"
"#0900ff"
"#7502f1"
"#ffe705"
"#00ffab"
"#f52105"
2015-12-21 19:16:39 +02:00
}}
{:name "Generic 2"
:id 2
:builtin true
:colors #{"#20f9ff"
"#209fff"
"#2078ff"
"#205eff"
"#2900ff"
"#3502f1"
"#3fe705"
"#30ffab"
"#352105"
"#209f20"
"#207820"
"#205e20"
"#290020"
"#350220"
"#3fe720"
"#30ff20"
"#352120"
"#352140"
2015-12-21 19:16:39 +02:00
}}])
2015-12-21 19:16:39 +02:00
(def ^:static +color-collections-by-id+
(let [data (transient {})]
(run! #(assoc! data (:id %) %) +color-collections+)
(persistent! data)))