mirror of
https://github.com/penpot/penpot.git
synced 2026-10-17 16:16:33 +00:00
43 lines
1.2 KiB
Clojure
43 lines
1.2 KiB
Clojure
;; 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>
|
|
;; Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
(ns uxbox.main.library
|
|
(:require [uxbox.main.library.colors :as colors]
|
|
[uxbox.main.library.images :as images]
|
|
[uxbox.main.library.icons :as icons]
|
|
[uxbox.main.library.fonts :as fonts]
|
|
[uxbox.util.data :refer (index-by-id)]))
|
|
|
|
;; --- Colors
|
|
|
|
(def +color-collections+ colors/+collections+)
|
|
(def +color-collections-by-id+
|
|
(index-by-id colors/+collections+))
|
|
|
|
;; --- Icons
|
|
|
|
(def +icon-collections+ icons/+collections+)
|
|
(def +icon-collections-by-id+
|
|
(index-by-id icons/+collections+))
|
|
|
|
;; --- Images
|
|
|
|
(def +image-collections+ images/+collections+)
|
|
(def +images+ images/+images+)
|
|
|
|
(def +image-collections-by-id+
|
|
(index-by-id images/+collections+))
|
|
|
|
(def +images-by-id+
|
|
(index-by-id images/+images+))
|
|
|
|
;; --- Fonts
|
|
|
|
(def +fonts+ fonts/+collections+)
|
|
(def +fonts-by-id+
|
|
(index-by-id fonts/+collections+))
|