Skip to content

Commit

Permalink
Merge pull request #1047 from phlippieb/feature/document_material_col…
Browse files Browse the repository at this point in the history
…or_codes

Document material color codes
  • Loading branch information
DanielDahan authored Apr 17, 2018
2 parents 52dd955 + 30a79d2 commit 663f67f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Sources/iOS/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,40 @@ import UIKit

@objc(ColorPalette)
public protocol ColorPalette {
/// Material color code: 50
static var lighten5: UIColor { get }
/// Material color code: 100
static var lighten4: UIColor { get }
/// Material color code: 200
static var lighten3: UIColor { get }
/// Material color code: 300
static var lighten2: UIColor { get }
/// Material color code: 400
static var lighten1: UIColor { get }
/// Material color code: 500
static var base: UIColor { get }
/// Material color code: 600
static var darken1: UIColor { get }
/// Material color code: 700
static var darken2: UIColor { get }
/// Material color code: 800
static var darken3: UIColor { get }
/// Material color code: 900
static var darken4: UIColor { get }

/// Material color code: A100
@objc
optional static var accent1: UIColor { get }

/// Material color code: A200
@objc
optional static var accent2: UIColor { get }

/// Material color code: A400
@objc
optional static var accent3: UIColor { get }

/// Material color code: A700
@objc
optional static var accent4: UIColor { get }
}
Expand Down

0 comments on commit 663f67f

Please sign in to comment.