CheckoutColorStyle used in rules: the checkout reads textPrimary/textSecondary/borderPrimary/etc. at the variables level.
Initializers
init(from:)
Inherited fromDecodable.init(from:).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swift Structure
CheckoutColorStyle used in rules: the checkout reads textPrimary/textSecondary/borderPrimary/etc. at the variables level.
struct CheckoutVariablesColorStyle
Decodable.init(from:).
init(from decoder: any Decoder) throws
init(textPrimary: String? = nil, textSecondary: String? = nil, backgroundPrimary: String? = nil, borderPrimary: String? = nil, danger: String? = nil, warning: String? = nil, accent: String? = nil)
| Property | Type | Description |
|---|---|---|
accent | String? | The accent color for highlights, links, and the selected state. |
backgroundPrimary | String? | The background color of the checkout. |
borderPrimary | String? | The default border color of inputs and containers. |
danger | String? | The color for error states and messages. |
textPrimary | String? | The color of primary text, such as headings and amounts. |
textSecondary | String? | The color of secondary text, such as helper text and captions. |
warning | String? | The color for warning states and messages. |
Was this page helpful?
