Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WrathChaos/MaterialColor
A perfect library to use Material Color Palette. Colors are the most important UI kit for every application. MaterialColors is the best and easiest way of color pallette.
https://github.com/WrathChaos/MaterialColor
Last synced: 3 months ago
JSON representation
A perfect library to use Material Color Palette. Colors are the most important UI kit for every application. MaterialColors is the best and easiest way of color pallette.
- Host: GitHub
- URL: https://github.com/WrathChaos/MaterialColor
- Owner: WrathChaos
- License: mit
- Created: 2017-07-26T13:37:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-15T09:48:15.000Z (over 5 years ago)
- Last Synced: 2024-10-10T14:16:38.308Z (4 months ago)
- Language: Swift
- Homepage: http://www.freakycoder.com
- Size: 6.82 MB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-lib-hunt - MaterialColor - Material Color Palette Library (UI)
- awesome-swift-lib-hunt - MaterialColor - Material Color Palette Library (UI)
README
# MaterialColor
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
- iOS 8.0+
- XCode 8.1, 8.2, 8.3
- **XCode 9.0+**
- Swift 3.0, 3.1, 3.2
- **Swift 4.0+**
- **Swift 4.2**
- **Swift 5.0+**## Installation
MaterialColor is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'MaterialColor'
```## Usage
```ruby
import MaterialColor
``````ruby
let tealColor: UIColor = MaterialColor.teal.accent4
let amberColor: UIColor = MaterialColor.amber.base
let deepOrange: UIColor = MaterialColor.deepOrange.dark1
```## Future Enhancements
- [x] Complete a working Example
- [x] Add Carthage installation option
- [ ] Add Swift Package Manager installation option
- [x]XCode 9 compatibility and tests
- [x]Swift 4 compatibility and tests
- [x]Swift 4.2 compatibility and tests
- [x]Swift 5 compatibility and tests## Author
FreakyCoder, [email protected]
## License
-MaterialColor is available under the MIT license. See the LICENSE file for more info.