Overview
The card enrollment and spending authorization flows render a verification modal (passkey prompt) to the user. You can customize the look and feel of this modal using theappearance prop, which both verification components accept.
PaymentMethodAgenticEnrollmentVerification: One-time card enrollment step. Shown when an enrollment’s status is"pending"and needs passkey verification.OrderIntentVerification: Spending authorization step. Shown when an order intent’s phase is"requires-verification".
How to customize the appearance
The appearance object has two top-level keys:variables (global design tokens) and rules (per-element overrides).
- Variables
- Rules
Global design tokens that apply across the entire modal.
| Token | What it controls |
|---|---|
fontFamily | Font stack for all text |
fontSizeUnit | Base body font size (e.g. "14px"). Title, small, error, input, and passkey sizes scale proportionally |
spacingUnit | Base section spacing (e.g. "16px"). Modal, input, button-gap, and option-gap scale proportionally |
borderRadius | Default border radius for modal, input, button, and option elements |
colors.accent | Primary/brand color — buttons, focus rings, radio selected state, spinner |
colors.textPrimary | Main text color and button text |
colors.textSecondary | Secondary and placeholder text |
colors.backgroundPrimary | Surface/card background |
colors.backgroundSecondary | Input background, secondary button background |
colors.border | Default border for modal, inputs, and radio |
colors.danger | Error text, error border, error icon |
colors.success | Success icon, success background |
The SDK auto-infers missing color tokens from the ones you provide. For example, setting only
backgroundPrimary will derive textPrimary, textSecondary, backgroundSecondary, and border automatically.Example
You do not need to specify everything. The SDK infers missing colors:textPrimary, textSecondary, backgroundSecondary, and border from the dark background, and use the accent color for buttons, focus rings, and radio selections.
