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

Dark Blue

UIColor.pelotonDarkBlue

Yellow

UIColor.pelotonYellow

Dark Yellow

UIColor.pelotonDarkYellow

Medium Orange

UIColor.pelotonMediumOrange

Blue Black

UIColor.pelotonBlueBlack

Slate Gray

UIColor.pelotonSlateGray

Dark Slate Gray

UIColor.pelotonDarkSlateGray

Medium Gray

UIColor.pelotonMediumGray

Medium Dark Gray

UIColor.pelotonMediumDarkGray

Light Gray

UIColor.pelotonLightGray

Light Blue Gray

UIColor.pelotonLightBlueGray

Very Light Gray

UIColor.pelotonVeryLightGray

Background Gray

UIColor.pelotonBackgroundGray

Blue White

UIColor.pelotonBlueWhite

Modal Backdrop Color

UIColor.pelotonModalBackdropColor

Heart Rate Zone 1

UIColor.pelotonHeartRateZone1

Heart Rate Zone 2

UIColor.pelotonHeartRateZone2

Heart Rate Zone 3

UIColor.pelotonHeartRateZone3

Heart Rate Zone 4

UIColor.pelotonHeartRateZone4

Heart Rate Zone 5

UIColor.pelotonHeartRateZone5

Gradient Colors

Spotlight Gradient

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

Light Gray Gradient

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

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