Skip to main content
Primer Checkout iOS SDK is currently in beta (v3.0.0-beta.1). The API is subject to change before the stable release.
TypographyOverrides lets you override the typography tokens used across Primer Checkout text styles. Pass it to a PrimerCheckoutTheme through the typography parameter. Every token is optional — any token you leave nil falls back to the internal default, and within a token any nil property falls back to its default value.
All tokens use the Inter font with their documented defaults. You only override the tokens and properties you want to change.

TypographyOverrides

Preview

titleXlarge — The quick brown fox jumps over the lazy dog
titleLarge — The quick brown fox jumps over the lazy dog
bodyLarge — The quick brown fox jumps over the lazy dog
bodyMedium — The quick brown fox jumps over the lazy dog
bodySmall — The quick brown fox jumps over the lazy dog

TypographyStyle

A single typography style. All properties are optional — any nil property falls back to the token default.
TypographyStyle is nested inside TypographyOverrides, so refer to it as TypographyOverrides.TypographyStyle when you need the fully qualified name.

Override example

Override only the tokens and properties you need. Anything you omit keeps its default.
Pass the theme to your checkout the same way you pass any PrimerCheckoutTheme. See PrimerTheme for how to apply it.

See also

PrimerTheme

Assemble and apply a complete theme with all token overrides.

Color Tokens

Override the color tokens used across the checkout UI.

Spacing Tokens

Adjust spacing tokens for padding and layout.

Shape Tokens

Customize corner radius and border width tokens.