Appearance configuration for Shipping Address Element.

interface Appearance {
    colors?: RecursivePartial<
        | PaymentSheet.GlobalColorConfig
        | {
            light: PaymentSheet.GlobalColorConfig;
            dark: PaymentSheet.GlobalColorConfig;
        },
    >;
    primaryButton?: PrimaryButtonConfiguration;
    formInsetValues?: RecursivePartial<PaymentSheet.EdgeInsetsConfig>;
    font?: RecursivePartial<PaymentSheet.FontConfig>;
    shapes?: RecursivePartial<
        {
            borderRadius: number;
            borderWidth: number;
            shadow: PaymentSheet.ShadowConfig;
        },
    >;
}

Properties

colors?: RecursivePartial<
    | PaymentSheet.GlobalColorConfig
    | {
        light: PaymentSheet.GlobalColorConfig;
        dark: PaymentSheet.GlobalColorConfig;
    },
>

Colors used by the shipping address form, in a single or light/dark palette.

Configures the shipping address form's save button.

formInsetValues?: RecursivePartial<PaymentSheet.EdgeInsetsConfig>

Insets around the shipping address form and primary button.

font?: RecursivePartial<PaymentSheet.FontConfig>

Font family and scale for the address form. iOS only.

shapes?: RecursivePartial<
    {
        borderRadius: number;
        borderWidth: number;
        shadow: PaymentSheet.ShadowConfig;
    },
>

Shapes and shadows for the address inputs. iOS only.