https://github.com/imryan/colors
🎨 A simple 100% data-driven collection of color palettes
https://github.com/imryan/colors
colors klart palettes
Last synced: 12 months ago
JSON representation
🎨 A simple 100% data-driven collection of color palettes
- Host: GitHub
- URL: https://github.com/imryan/colors
- Owner: imryan
- License: mit
- Created: 2018-04-12T19:18:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T18:41:34.000Z (almost 7 years ago)
- Last Synced: 2025-03-13T15:16:24.384Z (about 1 year ago)
- Topics: colors, klart, palettes
- Language: Swift
- Homepage: https://klart.io/colors
- Size: 9.98 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Colors
[](https://travis-ci.org/imryan/Colors)
[](http://cocoapods.org/pods/Colors)
[](http://cocoapods.org/pods/Colors)
[](http://cocoapods.org/pods/Colors)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements
## Installation
Colors is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'Colors'
```
## Usage
Fetch all color palettes
```swift
// Fetch all color palettes
Colors.fetchPalettes { (palettes) in
if let palettes = palettes {
// Retrieved palettes
}
}
```
Fetch single color palette by its identifier
```swift
// Fetch one color palette
Colors.fetchPalette(withId: "57cad90de956653b3248cfdb") { (palette) in
if let palette = palette {
// Retrieved palette
}
}
```
## Author
Ryan Cohen, notryancohen@gmail.com
## License
Colors is available under the MIT license. See the LICENSE file for more info.