mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
Add builtin color collections.
This commit is contained in:
parent
3cba2cda12
commit
d6fd75f7b9
1 changed files with 61 additions and 0 deletions
61
src/uxbox/main/state/colors.cljs
Normal file
61
src/uxbox/main/state/colors.cljs
Normal file
|
@ -0,0 +1,61 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
|
||||
|
||||
(ns uxbox.main.state.colors
|
||||
(:require [uxbox.util.uuid :as uuid]
|
||||
[uxbox.util.data :refer (index-by)]))
|
||||
|
||||
(def collections-list
|
||||
[{:name "Grays"
|
||||
:id #uuid "00000000-0000-0000-0000-000000000001"
|
||||
:created-at 1
|
||||
:type :builtin
|
||||
:colors #{"#D3D3D3"
|
||||
"#C0C0C0"
|
||||
"#A9A9A9"
|
||||
"#DCDCDC"
|
||||
"#808080"
|
||||
"#696969"
|
||||
"#000000"}}
|
||||
{:name "Silver"
|
||||
:id #uuid "00000000-0000-0000-0000-000000000002"
|
||||
:type :builtin
|
||||
:created-at 2
|
||||
:colors #{"#D3D3D3"
|
||||
"#C0C0C0"
|
||||
"#A9A9A9"
|
||||
"#808080"}}
|
||||
|
||||
{:name "Blues"
|
||||
:id #uuid "00000000-0000-0000-0000-000000000003"
|
||||
:type :builtin
|
||||
:created-at 3
|
||||
:colors #{"#F0F8FF"
|
||||
"#E6E6FA"
|
||||
"#B0E0E6"
|
||||
"#ADD8E6"
|
||||
"#87CEFA"
|
||||
"#87CEEB"
|
||||
"#00BFFF"
|
||||
"#B0C4DE"
|
||||
"#1E90FF"
|
||||
"#6495ED"
|
||||
"#4682B4"
|
||||
"#5F9EA0"
|
||||
"#7B68EE"
|
||||
"#6A5ACD"
|
||||
"#483D8B"
|
||||
"#4169E1"
|
||||
"#0000FF"
|
||||
"#0000CD"
|
||||
"#00008B"
|
||||
"#000080"
|
||||
"#191970"
|
||||
"#8A2BE2"
|
||||
"#4B0082"}}])
|
||||
|
||||
(def collections
|
||||
(index-by collections-list :id))
|
Loading…
Add table
Reference in a new issue