Latest 0.5.0
Homepage https://github.com/pelotoncycle/Peloton-UIColors
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CircleCI
codecov
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Peloton-UIColors is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Peloton-UIColors"

Usage

To use Peloton-UIColors, include the following import:

import Peloton_UIColors

Colors

Super Red

UIColor.pelotonSuperRed

Peloton-UIColors

Dark Blue

UIColor.pelotonDarkBlue

Peloton-UIColors

Yellow

UIColor.pelotonYellow

Peloton-UIColors

Dark Yellow

UIColor.pelotonDarkYellow

Peloton-UIColors

Medium Orange

UIColor.pelotonMediumOrange

Peloton-UIColors

Blue Black

UIColor.pelotonBlueBlack

Peloton-UIColors

Slate Gray

UIColor.pelotonSlateGray

Peloton-UIColors

Dark Slate Gray

UIColor.pelotonDarkSlateGray

Peloton-UIColors

Medium Gray

UIColor.pelotonMediumGray

Peloton-UIColors

Medium Dark Gray

UIColor.pelotonMediumDarkGray

Peloton-UIColors

Light Gray

UIColor.pelotonLightGray

Peloton-UIColors

Light Blue Gray

UIColor.pelotonLightBlueGray

Peloton-UIColors

Very Light Gray

UIColor.pelotonVeryLightGray

Peloton-UIColors

Background Gray

UIColor.pelotonBackgroundGray

Peloton-UIColors

Blue White

UIColor.pelotonBlueWhite

Peloton-UIColors

Modal Backdrop Color

UIColor.pelotonModalBackdropColor

Peloton-UIColors

Heart Rate Zone 1

UIColor.pelotonHeartRateZone1

Peloton-UIColors

Heart Rate Zone 2

UIColor.pelotonHeartRateZone2

Peloton-UIColors

Heart Rate Zone 3

UIColor.pelotonHeartRateZone3

Peloton-UIColors

Heart Rate Zone 4

UIColor.pelotonHeartRateZone4

Peloton-UIColors

Heart Rate Zone 5

UIColor.pelotonHeartRateZone5

Peloton-UIColors

Gradient Colors

Spotlight Gradient

if let context = UIGraphicsGetCurrentContext() {
  UIColor.drawSpotlightGradient(context, frame: rect)
}

Peloton-UIColors

Light Gray Gradient

if let context = UIGraphicsGetCurrentContext() {
  UIColor.drawLightGrayGradient(context, frame: rect)
}

Peloton-UIColors

Testing

All of the snapshots in the Example test suite are recorded using an iPad Air 2 simulator.

Authors

License

Peloton-UIColors is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Peloton-UIColors",
    "version": "0.5.0",
    "summary": "UIColors for Peloton Apps.",
    "description": "UIColors used in Peloton Apps and libs",
    "homepage": "https://github.com/pelotoncycle/Peloton-UIColors",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ryan Fitzgerald": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pelotoncycle/Peloton-UIColors.git",
        "tag": "0.5.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Peloton-UIColors/Extensions/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This