Sources/Source/ColorPalette/ColorPalette.swift (91 lines of code) (raw):
#if os(iOS)
import UIKit
/**
Module that defines the brand colours from [Source documentation](https://design.theguardian.com/#colour-palette).
This currently only holds references to the colours and extensions to assist with defining colours elsewhere.
*/
public enum ColorPalette {
// MARK: Brand
public static let brand100 = UIColor(resource: .brand100)
public static let brand300 = UIColor(resource: .brand300)
public static let brand400 = UIColor(resource: .brand400)
public static let brand500 = UIColor(resource: .brand500)
public static let brand600 = UIColor(resource: .brand600)
public static let brand800 = UIColor(resource: .brand800)
// MARK: Alternative brand
public static let brandAlt200 = UIColor(resource: .brandAlt200)
public static let brandAlt300 = UIColor(resource: .brandAlt300)
public static let brandAlt400 = UIColor(resource: .brandAlt400)
// MARK: Culture
public static let culture50 = UIColor(resource: .culture50)
public static let culture100 = UIColor(resource: .culture100)
public static let culture200 = UIColor(resource: .culture200)
public static let culture300 = UIColor(resource: .culture300)
public static let culture400 = UIColor(resource: .culture400)
public static let culture450 = UIColor(resource: .culture450)
public static let culture500 = UIColor(resource: .culture500)
public static let culture600 = UIColor(resource: .culture600)
public static let culture700 = UIColor(resource: .culture700)
public static let culture800 = UIColor(resource: .culture800)
// MARK: Error
public static let error400 = UIColor(resource: .error400)
public static let error500 = UIColor(resource: .error500)
// MARK: Labs
public static let labs200 = UIColor(resource: .labs200)
public static let labs300 = UIColor(resource: .labs300)
public static let labs400 = UIColor(resource: .labs400)
// MARK: Lifestyle
public static let lifestyle100 = UIColor(resource: .lifestyle100)
public static let lifestyle200 = UIColor(resource: .lifestyle200)
public static let lifestyle300 = UIColor(resource: .lifestyle300)
public static let lifestyle400 = UIColor(resource: .lifestyle400)
public static let lifestyle450 = UIColor(resource: .lifestyle450)
public static let lifestyle500 = UIColor(resource: .lifestyle500)
public static let lifestyle600 = UIColor(resource: .lifestyle600)
public static let lifestyle800 = UIColor(resource: .lifestyle800)
// MARK: Neutral
public static let neutral0 = UIColor(resource: .neutral0)
public static let neutral7 = UIColor(resource: .neutral7)
public static let neutral10 = UIColor(resource: .neutral10)
public static let neutral20 = UIColor(resource: .neutral20)
public static let neutral38 = UIColor(resource: .neutral38)
public static let neutral46 = UIColor(resource: .neutral46)
public static let neutral60 = UIColor(resource: .neutral60)
public static let neutral73 = UIColor(resource: .neutral73)
public static let neutral86 = UIColor(resource: .neutral86)
public static let neutral93 = UIColor(resource: .neutral93)
public static let neutral97 = UIColor(resource: .neutral97)
public static let neutral100 = UIColor(resource: .neutral100)
// MARK: News
public static let news100 = UIColor(resource: .news100)
public static let news200 = UIColor(resource: .news200)
public static let news300 = UIColor(resource: .news300)
public static let news400 = UIColor(resource: .news400)
public static let news500 = UIColor(resource: .news500)
public static let news550 = UIColor(resource: .news550)
public static let news600 = UIColor(resource: .news600)
public static let news700 = UIColor(resource: .news700)
public static let news800 = UIColor(resource: .news800)
// MARK: Opinion
public static let opinion100 = UIColor(resource: .opinion100)
public static let opinion200 = UIColor(resource: .opinion200)
public static let opinion400 = UIColor(resource: .opinion400)
public static let opinion450 = UIColor(resource: .opinion450)
public static let opinion500 = UIColor(resource: .opinion500)
public static let opinion550 = UIColor(resource: .opinion550)
public static let opinion600 = UIColor(resource: .opinion600)
public static let opinion700 = UIColor(resource: .opinion700)
public static let opinion800 = UIColor(resource: .opinion800)
// MARK: Special Report
public static let specialReport100 = UIColor(resource: .specialReport100)
public static let specialReport200 = UIColor(resource: .specialReport200)
public static let specialReport300 = UIColor(resource: .specialReport300)
public static let specialReport400 = UIColor(resource: .specialReport400)
public static let specialReport450 = UIColor(resource: .specialReport450)
public static let specialReport500 = UIColor(resource: .specialReport500)
public static let specialReport700 = UIColor(resource: .specialReport700)
public static let specialReport800 = UIColor(resource: .specialReport800)
// MARK: Special Report Alternative
public static let specialReportAlt100 = UIColor(resource: .specialReportAlt100)
public static let specialReportAlt200 = UIColor(resource: .specialReportAlt200)
public static let specialReportAlt300 = UIColor(resource: .specialReportAlt300)
public static let specialReportAlt700 = UIColor(resource: .specialReportAlt700)
public static let specialReportAlt800 = UIColor(resource: .specialReportAlt800)
// MARK: Sport
public static let sport100 = UIColor(resource: .sport100)
public static let sport200 = UIColor(resource: .sport200)
public static let sport300 = UIColor(resource: .sport300)
public static let sport400 = UIColor(resource: .sport400)
public static let sport500 = UIColor(resource: .sport500)
public static let sport600 = UIColor(resource: .sport600)
public static let sport700 = UIColor(resource: .sport700)
public static let sport800 = UIColor(resource: .sport800)
// MARK: Success
public static let success300 = UIColor(resource: .success300)
public static let success400 = UIColor(resource: .success400)
public static let success500 = UIColor(resource: .success500)
}
#endif