Colors

public struct Colors : Equatable

Describes the colors in PaymentSheet

  • Creates a PaymentSheet.Appearance.Colors with default values

    Declaration

    Swift

    public init()
  • The primary color used throughout PaymentSheet

    Declaration

    Swift

    public var primary: UIColor
  • The color used for the background of PaymentSheet

    Declaration

    Swift

    public var background: UIColor
  • The color used for the background of inputs, tabs, and other components

    Declaration

    Swift

    public var componentBackground: UIColor
  • The border color used for inputs, tabs, and other components

    Declaration

    Swift

    public var componentBorder: UIColor
  • The color of the divider lines used inside inputs, tabs, and other components

    Declaration

    Swift

    public var componentDivider: UIColor
  • The default text color used in PaymentSheet, appearing over the background color

    Declaration

    Swift

    public var text: UIColor
  • The color used for text of secondary importance. For example, this color is used for the label above input fields

    Declaration

    Swift

    public var textSecondary: UIColor
  • The color of text appearing over componentBackground

    Declaration

    Swift

    public var componentText: UIColor
  • The color used for input placeholder text

    Declaration

    Swift

    public var componentPlaceholderText: UIColor
  • The color used for icons in PaymentSheet, such as the close or back icons

    Declaration

    Swift

    public var icon: UIColor
  • The color used to indicate errors or destructive actions in PaymentSheet

    Declaration

    Swift

    public var danger: UIColor