Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

pelotoncycle/Peloton-UIColors

Repository files navigation

Peloton-UIColors

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.