PrimerCheckoutTheme:
Every property is an optional
CGFloat?. Values you leave as nil fall back to the SDK’s internal design tokens, so you only override what you need.
All three structs are
Equatable and annotated @available(iOS 15.0, *), matching the platform minimum for Primer Checkout.RadiusOverrides
Corner radius scale, in points. Property names match the SDK’s internalDesignTokens.
BorderWidthOverrides
Border and stroke thickness, in points.SizeOverrides
Fixed component dimensions, in points. Used for icons, touch targets, and other elements with an intrinsic size.Overriding shape tokens
Pass any combination of the three structs toPrimerCheckoutTheme. Unset properties inherit the SDK defaults.
primerTheme:
PrimerCheckoutSession instead. The composable views resolve the merged tokens from the session.
See also
PrimerTheme
Assemble shape, color, spacing, and typography overrides into a theme.
Color Tokens
Override brand, semantic, text, border, and icon colors.
Spacing Tokens
Override the spacing scale used for layout and padding.
Typography Tokens
Override font family, weight, size, and line height per text style.