color(_:) for a SwiftUI color, or uiColor(_:) for a UIKit color. Use hex(_:) for a hex string, or css(_:) for a different CSS color value.
Some colors change between light and dark mode, such as Color.primary. The checkout uses the value for its mode when it loads. If the mode changes later, the checkout keeps that value.
Initializers
init(from:)
Inherited fromDecodable.init(from:).
Instance Methods
encode(to:)
Inherited fromEncodable.encode(to:).
Type Methods
color(_:)
Creates a color from a SwiftUI color, for example.accentColor.
css(_:)
Creates a color from a CSS color value, for example"rgb(26, 26, 26)".
hex(_:)
Creates a color from a hex string, for example"#1A1A1A" or "#1A1A1A80".
Parameters
uiColor(_:)
Creates a color from a UIKit color, for example.systemBlue.

