Class
ColorManager
public final class ColorManager
Colors from the design system.
You should use these rather than hardcoded UIColors from outside the system as these colors can change at anytime. Using these colors will also allow for users to manually switch their app color if need be if they require higher contrast or are color blind. These colors will also allow for app theming if need be.
Usage:
// Returns the associated primary color.
let color = ColorManager.Primary.threeHundred
Properties
Primary
public static let Primary: ColorProvider.Type = Blue.self
The Primary color that will be displayed most frequently.
You should use this rather than the enum directly to support theming.
Neutral
public static let Neutral: ColorProvider.Type = Gray.self
The Neutral color that will be the second most used color. Its hues are used for strokes, backgrounds, text, etc.
You should use this rather than the enum directly to support theming.
Positive
public static let Positive: ColorProvider.Type = Green.self
The Positive color that is used to indicate success.
Negative
public static let Negative: ColorProvider.Type = Red.self
The Negative color that is used for error states or to draw attention to important information.
Warning
public static let Warning: ColorProvider.Type = Yellow.self
The Warning color that is used for warning states or to draw attention to important information
primary
public var primary: UIColor = ColorManager.Primary.fiveHundred
secondary
public var secondary: UIColor = ColorManager.Primary.threeHundred
neutral
public var neutral: UIColor = ColorManager.Neutral.sevenHundred
positive
public var positive: UIColor = ColorManager.Positive.fiveHundred
negative
public var negative: UIColor = ColorManager.Negative.sixHundred
warning
public var warning: UIColor = ColorManager.Warning.threeHundred
accentOne
public var accentOne: UIColor = ColorManager.AccentOne.fiveHundred
accentTwo
public var accentTwo: UIColor = ColorManager.AccentTwo.fiveHundred
accentThree
public var accentThree: UIColor = ColorManager.AccentThree.fiveHundred
accordionBorder
public lazy var accordionBorder: UIColor = ColorManager.Neutral.oneHundred
accordionAccessoryEnabled
public lazy var accordionAccessoryEnabled: UIColor = ColorManager.Neutral.fiveHundred
accordionTextEnabled
public lazy var accordionTextEnabled: UIColor = ColorManager.Neutral.sevenHundred
ctaBackgroundColor
public lazy var ctaBackgroundColor: ColorProvider.Type = Blue.self
ctaCriticalBackgroundColor
public lazy var ctaCriticalBackgroundColor: ColorProvider.Type = Red.self
buttonPrimaryBackground
public lazy var buttonPrimaryBackground: UIColor = ctaBackgroundColor.fiveHundred
buttonPrimaryPressedBackground
public lazy var buttonPrimaryPressedBackground: UIColor = ctaBackgroundColor.sixHundred
buttonPrimaryDisabledBackground
public lazy var buttonPrimaryDisabledBackground: UIColor = ColorManager.Neutral.fifty
buttonPrimaryCriticalBackground
public lazy var buttonPrimaryCriticalBackground: UIColor = ctaCriticalBackgroundColor.fiveHundred
buttonPrimaryCriticalPressedBackground
public lazy var buttonPrimaryCriticalPressedBackground: UIColor =
ctaCriticalBackgroundColor.sixHundred
buttonPrimaryCriticalDisabledBackground
public lazy var buttonPrimaryCriticalDisabledBackground: UIColor = ctaCriticalBackgroundColor.oneHundred
buttonSecondaryBorder
public lazy var buttonSecondaryBorder: UIColor = ColorManager.Neutral.twoHundred
buttonSecondaryTitle
public lazy var buttonSecondaryTitle: UIColor = ctaBackgroundColor.fiveHundred
buttonSecondaryPressedBackground
public lazy var buttonSecondaryPressedBackground: UIColor = ColorManager.Neutral.oneHundred
buttonSecondaryDisabledTitle
public lazy var buttonSecondaryDisabledTitle: UIColor = ColorManager.Neutral.twoHundred
buttonSecondaryCriticalTitle
public lazy var buttonSecondaryCriticalTitle: UIColor = ctaCriticalBackgroundColor.sixHundred
buttonSecondaryCriticalPressedBackground
public lazy var buttonSecondaryCriticalPressedBackground: UIColor =
ctaCriticalBackgroundColor.oneHundred
buttonSecondaryCriticalPressedBorder
public lazy var buttonSecondaryCriticalPressedBorder: UIColor = ctaCriticalBackgroundColor.sixHundred
buttonSecondaryCriticalDisabledTitle
public lazy var buttonSecondaryCriticalDisabledTitle: UIColor = ctaCriticalBackgroundColor.oneHundred
bannerDefaultProvider
public lazy var bannerDefaultProvider: ColorProvider.Type = Blue.self
bannerPositiveProvider
public lazy var bannerPositiveProvider: ColorProvider.Type = Green.self
bannerWarningProvider
public lazy var bannerWarningProvider: ColorProvider.Type = Yellow.self
bannerNegativeProvider
public lazy var bannerNegativeProvider: ColorProvider.Type = Red.self
bannerDefaultBackground
public lazy var bannerDefaultBackground: UIColor = bannerDefaultProvider.fiveHundred
bannerPositiveBackground
public lazy var bannerPositiveBackground: UIColor = bannerPositiveProvider.fifty
bannerNegativeBackground
public lazy var bannerNegativeBackground: UIColor = bannerNegativeProvider.fifty
bannerWarningBackground
public lazy var bannerWarningBackground: UIColor = bannerWarningProvider.fifty
bannerDefaultText
public lazy var bannerDefaultText: UIColor = .white
bannerPositiveText
public lazy var bannerPositiveText: UIColor = bannerPositiveProvider.sevenHundred
bannerWarningText
public lazy var bannerWarningText: UIColor = bannerWarningProvider.sevenHundred
bannerNegativeText
public lazy var bannerNegativeText: UIColor = bannerNegativeProvider.sevenHundred
bannerButtonDefaultText
public lazy var bannerButtonDefaultText: UIColor = .white
bannerButtonPositiveText
public lazy var bannerButtonPositiveText: UIColor = bannerPositiveProvider.sixHundred
bannerButtonWarningText
public lazy var bannerButtonWarningText: UIColor = bannerWarningProvider.sixHundred
bannerButtonNegativeText
public lazy var bannerButtonNegativeText: UIColor = bannerNegativeProvider.sixHundred
chipNeutralColor
public lazy var chipNeutralColor: ColorProvider.Type = Gray.self
chipPrimaryColor
public lazy var chipPrimaryColor: ColorProvider.Type = Blue.self
chipBorder
public lazy var chipBorder: UIColor = chipNeutralColor.fourHundred
chipPrimaryContent
public lazy var chipPrimaryContent: UIColor = chipPrimaryColor.threeHundred
chipNeutralContent
public lazy var chipNeutralContent: UIColor = chipNeutralColor.fiveHundred
contentStateDisabled
public lazy var contentStateDisabled: UIColor = chipNeutralColor.threeHundred
buttonTertiaryCriticalPressedBackground
public lazy var buttonTertiaryCriticalPressedBackground: UIColor = ctaCriticalBackgroundColor.oneHundred
buttonTertiaryPressedBackground
public lazy var buttonTertiaryPressedBackground: UIColor = ColorManager.Neutral.oneHundred
messageIncomingBackground
public lazy var messageIncomingBackground: UIColor = ColorManager.Primary.fifty
messageOutgoingBackground
public lazy var messageOutgoingBackground: UIColor = ColorManager.Primary.fiveHundred
messageIncomingText
public lazy var messageIncomingText: UIColor = ColorManager.Primary.sevenHundred
messageOutgoingText
public lazy var messageOutgoingText: UIColor = .white
textColorProvider
public lazy var textColorProvider: ColorProvider.Type = ColorManager.Neutral
textBody
public lazy var textBody: UIColor = textColorProvider.sevenHundred
tertiaryTextBody
public lazy var tertiaryTextBody: UIColor = textColorProvider.fiveHundred
dividerBackground
public lazy var dividerBackground: UIColor = ColorManager.Neutral.oneHundred
progressIndicatorColorProvider
public lazy var progressIndicatorColorProvider: ColorProvider.Type = ColorManager.Positive
progressIndicatorTrack
public lazy var progressIndicatorTrack = progressIndicatorColorProvider.oneHundred
progressIndicatorTint
public lazy var progressIndicatorTint = progressIndicatorColorProvider.fiveHundred
badgeBackground
public lazy var badgeBackground: UIColor = ColorManager.Negative.fiveHundred
badgeText
public lazy var badgeText: UIColor = .white